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

Method __init__

text2motion/models/transformer.py:62–73  ·  view source on GitHub ↗
(self, latent_dim, time_embed_dim, dropout)

Source from the content-addressed store, hash-verified

60class StylizationBlock(nn.Module):
61
62 def __init__(self, latent_dim, time_embed_dim, dropout):
63 super().__init__()
64 self.emb_layers = nn.Sequential(
65 nn.SiLU(),
66 nn.Linear(time_embed_dim, 2 * latent_dim),
67 )
68 self.norm = nn.LayerNorm(latent_dim)
69 self.out_layers = nn.Sequential(
70 nn.SiLU(),
71 nn.Dropout(p=dropout),
72 zero_module(nn.Linear(latent_dim, latent_dim)),
73 )
74
75 def forward(self, h, emb):
76 """

Callers

nothing calls this directly

Calls 2

zero_moduleFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected