MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / __init__

Method __init__

mogen/models/rnns/t2m_bigru.py:270–275  ·  view source on GitHub ↗
(self, motion_encoder=None, text_encoder=None, init_cfg=None)

Source from the content-addressed store, hash-verified

268class T2MContrastiveModel(BaseModule):
269
270 def __init__(self, motion_encoder=None, text_encoder=None, init_cfg=None):
271 super().__init__()
272 self.motion_encoder = T2MMotionEncoder(**motion_encoder)
273 self.text_encoder = T2MTextEncoder(**text_encoder)
274 assert init_cfg['type'] == 'Pretrained'
275 self.load_pretrained(init_cfg['checkpoint'])
276
277 def encode_motion(self,
278 motion,

Callers

nothing calls this directly

Calls 4

load_pretrainedMethod · 0.95
T2MMotionEncoderClass · 0.85
T2MTextEncoderClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected