Spaces:
Starting
on
L40S
Starting
on
L40S
File size: 705 Bytes
d7e58f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import Registry
from .hrnet import PoseHighResolutionNet, PoseHighResolutionNetExpose
from .resnet import ResNet, ResNetV1d
BACKBONES = Registry('backbones')
BACKBONES.register_module(name='ResNet', module=ResNet)
BACKBONES.register_module(name='ResNetV1d', module=ResNetV1d)
BACKBONES.register_module(name='PoseHighResolutionNet',
module=PoseHighResolutionNet)
BACKBONES.register_module(name='PoseHighResolutionNetExpose',
module=PoseHighResolutionNetExpose)
def build_backbone(cfg):
"""Build backbone."""
if cfg is None:
return None
return BACKBONES.build(cfg)
|