mmdet.core.bbox.assigners.base_assigner 源代码

from abc import ABCMeta, abstractmethod


[文档]class BaseAssigner(metaclass=ABCMeta): """Base assigner that assigns boxes to ground truth boxes."""
[文档] @abstractmethod def assign(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None): """Assign boxes to either a ground truth boxes or a negative boxes."""