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

Method __init__

diffsynth/models/hunyuan_dit.py:177–185  ·  view source on GitHub ↗
(
        self,
        patch_size=(2, 2),
        in_chans=4,
        embed_dim=1408,
        bias=True,
    )

Source from the content-addressed store, hash-verified

175
176class PatchEmbed(torch.nn.Module):
177 def __init__(
178 self,
179 patch_size=(2, 2),
180 in_chans=4,
181 embed_dim=1408,
182 bias=True,
183 ):
184 super().__init__()
185 self.proj = torch.nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size, bias=bias)
186
187 def forward(self, x):
188 x = self.proj(x)

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected