mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
17 lines
395 B
Python
17 lines
395 B
Python
from mmdet.models.backbones import ResNet
|
|
|
|
from mmocr.registry import MODELS
|
|
|
|
|
|
@MODELS.register_module()
|
|
class DummyResNet(ResNet):
|
|
"""Implements a dummy ResNet wrapper for demonstration purpose.
|
|
|
|
Args:
|
|
**kwargs: All the arguments are passed to the parent class.
|
|
"""
|
|
|
|
def __init__(self, **kwargs) -> None:
|
|
print('Hello world!')
|
|
super().__init__(**kwargs)
|