MCPcopy Create free account
hub / github.com/apple/ml-stable-diffusion / Downsample2D

Class Downsample2D

python_coreml_stable_diffusion/unet.py:496–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495
496class Downsample2D(nn.Module):
497
498 def __init__(self, channels):
499 super().__init__()
500 self.conv = nn.Conv2d(channels, channels, 3, stride=2, padding=1)
501
502 def forward(self, x):
503 return self.conv(x)
504
505
506class SpatialTransformer(nn.Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected