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

Method __init__

src/diffusers/models/adapter.py:569–573  ·  view source on GitHub ↗
(self, channels: int)

Source from the content-addressed store, hash-verified

567 """
568
569 def __init__(self, channels: int):
570 super().__init__()
571 self.block1 = nn.Conv2d(channels, channels, kernel_size=3, padding=1)
572 self.act = nn.ReLU()
573 self.block2 = nn.Conv2d(channels, channels, kernel_size=3, padding=1)
574
575 def forward(self, x: torch.Tensor) -> torch.Tensor:
576 r"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected