Spaces:
Running
on
L40S
Running
on
L40S
File size: 435 Bytes
d7e58f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import Registry
from .smplify import SMPLify
from .smplifyx import SMPLifyX
REGISTRANTS = Registry('registrants')
REGISTRANTS.register_module(name='SMPLify', module=SMPLify)
REGISTRANTS.register_module(name='SMPLifyX', module=SMPLifyX)
def build_registrant(cfg):
"""Build registrant."""
if cfg is None:
return None
return REGISTRANTS.build(cfg)
|