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

Method __init__

python/dump.py:25–30  ·  view source on GitHub ↗
(self, in_channels)

Source from the content-addressed store, hash-verified

23
24class AttnBlock:
25 def __init__(self, in_channels):
26 self.norm = GroupNorm(32, in_channels)
27 self.q = Conv2d(in_channels, in_channels, 1)
28 self.k = Conv2d(in_channels, in_channels, 1)
29 self.v = Conv2d(in_channels, in_channels, 1)
30 self.proj_out = Conv2d(in_channels, in_channels, 1)
31
32 # copied from AttnBlock in ldm repo
33 def __call__(self, x):

Callers

nothing calls this directly

Calls 1

GroupNormClass · 0.85

Tested by

no test coverage detected