MCPcopy
hub / github.com/ermongroup/ddim / Normalize

Function Normalize

models/diffusion.py:32–33  ·  view source on GitHub ↗
(in_channels)

Source from the content-addressed store, hash-verified

30
31
32def Normalize(in_channels):
33 return torch.nn.GroupNorm(num_groups=32, num_channels=in_channels, eps=1e-6, affine=True)
34
35
36class Upsample(nn.Module):

Callers 3

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected