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

Method __init__

models/transformer/wan/modules/t2m_model.py:481–487  ·  view source on GitHub ↗
(self, in_dim, out_dim)

Source from the content-addressed store, hash-verified

479class MLPProj(torch.nn.Module):
480
481 def __init__(self, in_dim, out_dim):
482 super().__init__()
483
484 self.proj = torch.nn.Sequential(
485 torch.nn.LayerNorm(in_dim), torch.nn.Linear(in_dim, in_dim),
486 torch.nn.GELU(), torch.nn.Linear(in_dim, out_dim),
487 torch.nn.LayerNorm(out_dim))
488
489 def forward(self, image_embeds):
490 clip_extra_context_tokens = self.proj(image_embeds)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected