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

Method __init__

diffsynth/models/cog_dit.py:12–14  ·  view source on GitHub ↗
(self, dim_in, dim_out, patch_size)

Source from the content-addressed store, hash-verified

10
11class CogPatchify(torch.nn.Module):
12 def __init__(self, dim_in, dim_out, patch_size) -> None:
13 super().__init__()
14 self.proj = torch.nn.Conv3d(dim_in, dim_out, kernel_size=(1, patch_size, patch_size), stride=(1, patch_size, patch_size))
15
16 def forward(self, hidden_states):
17 hidden_states = self.proj(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected