Spaces:
Running
Running
File size: 363 Bytes
29f689c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
__all__ = ['build_backbone']
def build_backbone(config):
# det backbone
from .repvit import RepSVTR_det
support_dict = ['RepSVTR_det']
module_name = config.pop('name')
assert module_name in support_dict, Exception(
'head only support {}'.format(support_dict))
module_class = eval(module_name)(**config)
return module_class
|