efficientdet.py 896 B

12345678910111213141516171819202122232425
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from mmdet.models.detectors.single_stage import SingleStageDetector
  3. from mmdet.registry import MODELS
  4. from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
  5. @MODELS.register_module()
  6. class EfficientDet(SingleStageDetector):
  7. def __init__(self,
  8. backbone: ConfigType,
  9. neck: ConfigType,
  10. bbox_head: ConfigType,
  11. train_cfg: OptConfigType = None,
  12. test_cfg: OptConfigType = None,
  13. data_preprocessor: OptConfigType = None,
  14. init_cfg: OptMultiConfig = None) -> None:
  15. super().__init__(
  16. backbone=backbone,
  17. neck=neck,
  18. bbox_head=bbox_head,
  19. train_cfg=train_cfg,
  20. test_cfg=test_cfg,
  21. data_preprocessor=data_preprocessor,
  22. init_cfg=init_cfg)