MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / __init__

Method __init__

python/dump.py:68–71  ·  view source on GitHub ↗
(self, block_in)

Source from the content-addressed store, hash-verified

66
67class Mid:
68 def __init__(self, block_in):
69 self.block_1 = ResnetBlock(block_in, block_in)
70 self.attn_1 = AttnBlock(block_in)
71 self.block_2 = ResnetBlock(block_in, block_in)
72
73 def __call__(self, x):
74 return x.sequential([self.block_1, self.attn_1, self.block_2])

Callers

nothing calls this directly

Calls 2

AttnBlockClass · 0.85
ResnetBlockClass · 0.70

Tested by

no test coverage detected