MCPcopy Index your code
hub / github.com/VisionXLab/OF-Diff / normalization

Function normalization

ldm/modules/diffusionmodules/util.py:202–208  ·  view source on GitHub ↗

Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.

(channels)

Source from the content-addressed store, hash-verified

200
201
202def normalization(channels):
203 """
204 Make a standard normalization layer.
205 :param channels: number of input channels.
206 :return: an nn.Module for normalization.
207 """
208 return GroupNorm32(32, channels)
209
210
211# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls 1

GroupNorm32Class · 0.85

Tested by

no test coverage detected