Spaces:
Sleeping
Sleeping
File size: 867 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 24 25 26 27 28 29 |
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import Registry
from .pose_discriminator import (
FullPoseDiscriminator,
PoseDiscriminator,
ShapeDiscriminator,
SMPLDiscriminator,
)
DISCRIMINATORS = Registry('discriminators')
DISCRIMINATORS.register_module(name='ShapeDiscriminator',
module=ShapeDiscriminator)
DISCRIMINATORS.register_module(name='PoseDiscriminator',
module=PoseDiscriminator)
DISCRIMINATORS.register_module(name='FullPoseDiscriminator',
module=FullPoseDiscriminator)
DISCRIMINATORS.register_module(name='SMPLDiscriminator',
module=SMPLDiscriminator)
def build_discriminator(cfg):
"""Build discriminator."""
if cfg is None:
return None
return DISCRIMINATORS.build(cfg)
|