MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/models/cog_dit.py:24–28  ·  view source on GitHub ↗
(self, dim, dim_cond, single=False)

Source from the content-addressed store, hash-verified

22
23class CogAdaLayerNorm(torch.nn.Module):
24 def __init__(self, dim, dim_cond, single=False):
25 super().__init__()
26 self.single = single
27 self.linear = torch.nn.Linear(dim_cond, dim * (2 if single else 6))
28 self.norm = torch.nn.LayerNorm(dim, elementwise_affine=True, eps=1e-5)
29
30
31 def forward(self, hidden_states, prompt_emb, emb):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected