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

Class Downsample

python/dump.py:258–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 return ret
257
258class Downsample:
259 def __init__(self, channels):
260 self.op = Conv2d(channels, channels, 3, stride=2, padding=1)
261
262 def __call__(self, x):
263 return self.op(x)
264
265class Upsample:
266 def __init__(self, channels):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected