MCPcopy Index your code
hub / github.com/XPixelGroup/DiffBIR / Normalize

Function Normalize

diffbir/model/vae.py:18–21  ·  view source on GitHub ↗
(in_channels, num_groups=32)

Source from the content-addressed store, hash-verified

16
17
18def Normalize(in_channels, num_groups=32):
19 return torch.nn.GroupNorm(
20 num_groups=num_groups, num_channels=in_channels, eps=1e-6, affine=True
21 )
22
23
24class Upsample(nn.Module):

Callers 7

__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
get_transformFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected