dummy_resnet.py 441 B

123456789101112131415
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from mmdet.models.backbones import ResNet
  3. from mmdet.registry import MODELS
  4. @MODELS.register_module()
  5. class DummyResNet(ResNet):
  6. """Implements a dummy ResNet wrapper for demonstration purpose.
  7. Args:
  8. **kwargs: All the arguments are passed to the parent class.
  9. """
  10. def __init__(self, **kwargs) -> None:
  11. print('Hello world!')
  12. super().__init__(**kwargs)