File size: 672 Bytes
b887ad8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from .unet import MotionCLR


__all__ = ["MotionCLR"]


def build_models(opt, edit_config=None, out_path=None):
    print("\nInitializing model ...")
    model = MotionCLR(
        input_feats=opt.dim_pose,
        text_latent_dim=opt.text_latent_dim,
        base_dim=opt.base_dim,
        dim_mults=opt.dim_mults,
        time_dim=opt.time_dim,
        adagn=not opt.no_adagn,
        zero=True,
        dropout=opt.dropout,
        no_eff=opt.no_eff,
        cond_mask_prob=getattr(opt, "cond_mask_prob", 0.0),
        self_attention=opt.self_attention,
        vis_attn=opt.vis_attn,
        edit_config=edit_config,
        out_path=out_path,
    )

    return model