MCPcopy Create free account
hub / github.com/deepbrainai-research/float / PixelNorm

Class PixelNorm

models/float/styledecoder.py:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55class PixelNorm(nn.Module):
56 def __init__(self):
57 super().__init__()
58
59 def forward(self, input):
60 return input * torch.rsqrt(torch.mean(input ** 2, dim=1, keepdim=True) + 1e-8)
61
62
63class MotionPixelNorm(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected