MCPcopy Index your code
hub / github.com/MotrixLab/MotionDiffuse / build_models

Function build_models

text2motion/tools/evaluation.py:19–27  ·  view source on GitHub ↗
(opt, dim_pose)

Source from the content-addressed store, hash-verified

17
18
19def build_models(opt, dim_pose):
20 encoder = MotionTransformer(
21 input_feats=dim_pose,
22 num_frames=opt.max_motion_length,
23 num_layers=opt.num_layers,
24 latent_dim=opt.latent_dim,
25 no_clip=opt.no_clip,
26 no_eff=opt.no_eff)
27 return encoder
28
29
30torch.multiprocessing.set_sharing_strategy('file_system')

Callers 1

evaluation.pyFile · 0.70

Calls 1

MotionTransformerClass · 0.90

Tested by

no test coverage detected