MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / norm_layer

Function norm_layer

pix2pix/models/networks.py:32–32  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

30 norm_layer = functools.partial(nn.InstanceNorm2d, affine=False, track_running_stats=False)
31 elif norm_type == 'none':
32 def norm_layer(x): return Identity()
33 else:
34 raise NotImplementedError('normalization layer [%s] is not found' % norm_type)
35 return norm_layer

Callers 15

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
_make_layerMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

IdentityClass · 0.85

Tested by

no test coverage detected