Source code for mmdet.core.bbox.assigners.base_assigner
# Copyright (c) OpenMMLab. All rights reserved.fromabcimportABCMeta,abstractmethod
[docs]classBaseAssigner(metaclass=ABCMeta):"""Base assigner that assigns boxes to ground truth boxes."""
[docs]@abstractmethoddefassign(self,bboxes,gt_bboxes,gt_bboxes_ignore=None,gt_labels=None):"""Assign boxes to either a ground truth boxes or a negative boxes."""