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

Method __call__

python/dump.py:127–135  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

125 self.conv_out = Conv2d(512, 8, 3, padding=1)
126
127 def __call__(self, x):
128 x = self.conv_in(x)
129
130 for i, l in enumerate(self.down):
131 for b in l['block']: x = b(x)
132 if 'downsample' in l: x = l['downsample']['conv'](x)
133
134 x = self.mid(x)
135 return self.conv_out(self.norm_out(x).swish())
136
137class AutoencoderKL:
138 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected