| 53 | |
| 54 | |
| 55 | class 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 | |
| 63 | class MotionPixelNorm(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected