MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / MLPProj

Class MLPProj

wan/modules/multitalk_model.py:351–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350
351class MLPProj(torch.nn.Module):
352
353 def __init__(self, in_dim, out_dim):
354 super().__init__()
355
356 self.proj = torch.nn.Sequential(
357 torch.nn.LayerNorm(in_dim), torch.nn.Linear(in_dim, in_dim),
358 torch.nn.GELU(), torch.nn.Linear(in_dim, out_dim),
359 torch.nn.LayerNorm(out_dim))
360
361 def forward(self, image_embeds):
362 clip_extra_context_tokens = self.proj(image_embeds)
363 return clip_extra_context_tokens
364
365
366class AudioProjModel(ModelMixin, ConfigMixin):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected