MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __init__

Method __init__

scripts/convert_consistency_decoder.py:228–230  ·  view source on GitHub ↗
(self, in_channels=7, out_channels=320)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected