Spaces:
Runtime error
Runtime error
# Copyright (c) OpenMMLab. All rights reserved. | |
from ..builder import DETECTORS | |
from .single_stage import SingleStageDetector | |
class TOOD(SingleStageDetector): | |
r"""Implementation of `TOOD: Task-aligned One-stage Object Detection. | |
<https://arxiv.org/abs/2108.07755>`_.""" | |
def __init__(self, | |
backbone, | |
neck, | |
bbox_head, | |
train_cfg=None, | |
test_cfg=None, | |
pretrained=None, | |
init_cfg=None): | |
super(TOOD, self).__init__(backbone, neck, bbox_head, train_cfg, | |
test_cfg, pretrained, init_cfg) | |
def set_epoch(self, epoch): | |
self.bbox_head.epoch = epoch | |