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

Method __init__

scripts/convert_consistency_decoder.py:237–240  ·  view source on GitHub ↗
(self, in_channels=320, out_channels=6)

Source from the content-addressed store, hash-verified

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)))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected