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

Class MotionPixelNorm

models/float/styledecoder.py:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63class MotionPixelNorm(nn.Module):
64 def __init__(self):
65 super().__init__()
66
67 def forward(self, input):
68 return input * torch.rsqrt(torch.mean(input ** 2, dim=2, keepdim=True) + 1e-8)
69
70class Upsample(nn.Module):
71 def __init__(self, kernel, factor=2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected