MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / ImageUnembedding

Class ImageUnembedding

diffusers/scripts/convert_consistency_decoder.py:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236class ImageUnembedding(nn.Module):
237 def __init__(self, in_channels=320, out_channels=6) -> None:
238 super().__init__()
239 self.gn = nn.GroupNorm(32, in_channels)
240 self.f = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1)
241
242 def forward(self, x) -> torch.Tensor:
243 return self.f(F.silu(self.gn(x)))
244
245
246class ConvResblock(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected