cornernet.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 CornerNet(SingleStageDetector):
  7. """CornerNet.
  8. This detector is the implementation of the paper `CornerNet: Detecting
  9. Objects as Paired Keypoints <https://arxiv.org/abs/1808.01244>`_ .
  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) -> 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)