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

Class ImageEmbedding

diffusers/scripts/convert_consistency_decoder.py:227–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227class ImageEmbedding(nn.Module):
228 def __init__(self, in_channels=7, out_channels=320) -> None:
229 super().__init__()
230 self.f = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1)
231
232 def forward(self, x) -> torch.Tensor:
233 return self.f(x)
234
235
236class ImageUnembedding(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected