reppoints_detector.py 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from mmdet.registry import MODELS
  3. from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
  4. from .single_stage import SingleStageDetector
  5. @MODELS.register_module()
  6. class RepPointsDetector(SingleStageDetector):
  7. """RepPoints: Point Set Representation for Object Detection.
  8. This detector is the implementation of:
  9. - RepPoints detector (https://arxiv.org/pdf/1904.11490)
  10. """
  11. def __init__(self,
  12. backbone: ConfigType,
  13. neck: ConfigType,
  14. bbox_head: ConfigType,
  15. train_cfg: OptConfigType = None,
  16. test_cfg: OptConfigType = None,
  17. data_preprocessor: OptConfigType = None,
  18. init_cfg: OptMultiConfig = None):
  19. super().__init__(
  20. backbone=backbone,
  21. neck=neck,
  22. bbox_head=bbox_head,
  23. train_cfg=train_cfg,
  24. test_cfg=test_cfg,
  25. data_preprocessor=data_preprocessor,
  26. init_cfg=init_cfg)