We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed that you used
class StdConv2d(nn.Conv2d):
def forward(self, x): w = self.weight v, m = torch.var_mean(w, dim=[1, 2, 3], keepdim=True, unbiased=False) w = (w - m) / torch.sqrt(v + 1e-5) return F.conv2d(x, w, self.bias, self.stride, self.padding, self.dilation, self.groups)
Why 'w' is normalized here? Any special consideration for implementing in this way? Thanks
The text was updated successfully, but these errors were encountered:
In CNN, weight standardization is suggested in Big Transfer (BiT): General Visual Representation Learning. See section 4.3 of paper.
Sorry, something went wrong.
No branches or pull requests
I noticed that you used
class StdConv2d(nn.Conv2d):
Why 'w' is normalized here? Any special consideration for implementing in this way? Thanks
The text was updated successfully, but these errors were encountered: