MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / Normalize

Function Normalize

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

Source from the content-addressed store, hash-verified

51
52
53def Normalize(in_channels, num_groups=32):
54 return torch.nn.GroupNorm(num_groups=num_groups, num_channels=in_channels, eps=1e-6, affine=True)
55
56
57class 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