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

Method forward

scripts/convert_consistency_decoder.py:242–243  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected