Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Parameters initilization of BatchNorm #34

Open
EddieEduardo opened this issue Nov 4, 2019 · 0 comments
Open

Parameters initilization of BatchNorm #34

EddieEduardo opened this issue Nov 4, 2019 · 0 comments

Comments

@EddieEduardo
Copy link

Should parametres in BatchNorm not be initialized ? I just read the way of initializing for the params in Conv2d like follows :
"""
def weights_init(m):
if isinstance(m, nn.Conv2d):
xavier(m.weight.data)
m.bias.data.zero_()
"""
What about the initialization for the params in BN ? But I did read the net construction with
"def add_extras(cfg, i, batch_norm=True):"
and
"def selector(vgg, extra_layers, batch_normal=True):"
and corresponding calling to them
"return SST(phase, *selector(vgg(base[str(size)], 3),add_extras(extras[str(size)],
1024)),add_final(final[str(size)]), use_gpu )",
or is there something that I mistook ? Welcom to leave your perspectives , thanks a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant