MCPcopy Create free account
hub / github.com/IceClear/StableSR / Normalize

Function Normalize

ldm/modules/diffusionmodules/model.py:76–77  ·  view source on GitHub ↗
(in_channels, num_groups=32)

Source from the content-addressed store, hash-verified

74
75
76def Normalize(in_channels, num_groups=32):
77 return torch.nn.GroupNorm(num_groups=num_groups, num_channels=in_channels, eps=1e-6, affine=True)
78
79
80class Upsample(nn.Module):

Callers 11

__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected