MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

k_diffusion/layers.py:436–440  ·  view source on GitHub ↗
(self, d_blocks, u_blocks, skip_stages=0)

Source from the content-addressed store, hash-verified

434
435class UNet(ConditionedModule):
436 def __init__(self, d_blocks, u_blocks, skip_stages=0):
437 super().__init__()
438 self.d_blocks = nn.ModuleList(d_blocks)
439 self.u_blocks = nn.ModuleList(u_blocks)
440 self.skip_stages = skip_stages
441
442 def forward(self, input, cond):
443 skips = []

Callers 10

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected