MCPcopy Create free account
hub / github.com/MegaScenes/nvs / Normalize

Function Normalize

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

Source from the content-addressed store, hash-verified

36
37
38def Normalize(in_channels, num_groups=32):
39 return torch.nn.GroupNorm(num_groups=num_groups, num_channels=in_channels, eps=1e-6, affine=True)
40
41
42class Upsample(nn.Module):

Callers 8

__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