Skip to content
New issue

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

BN layer weights and biases are not updated #77

Open
kregmi opened this issue Mar 25, 2022 · 1 comment
Open

BN layer weights and biases are not updated #77

kregmi opened this issue Mar 25, 2022 · 1 comment

Comments

@kregmi
Copy link

kregmi commented Mar 25, 2022

Thanks for sharing this repo, great work!

I trained BYOL on my data and noticed that the weights and biases for BN layers are not updated on the saved model. I used resnet18 without pretrained weights resnet = models.resnet50(pretrained=False). After training for multiple epochs, the saved model has bn1.weight all equal to 1.0 and bn1.bias all equal to 0.0 .

Is this the expected behavior or am I missing something? Appreciate your response!

@chingisooinar
Copy link

Hi @kregmi , I am not maintaining this repo but I am also using this implementation. I trained BYOL and did not experience this issue. I am not sure why it happened to you. Are you sure you saved the network correctly?
image

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

No branches or pull requests

2 participants