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

Most parameters are frozen #3

Open
zheangh opened this issue Nov 8, 2023 · 0 comments
Open

Most parameters are frozen #3

zheangh opened this issue Nov 8, 2023 · 0 comments

Comments

@zheangh
Copy link

zheangh commented Nov 8, 2023

BMD/main_target.py

Lines 184 to 188 in 3723b32

for k, v in model.backbone_layer.named_parameters():
if "bn" in k:
param_group += [{'params': v, 'lr': args.lr*0.1}]
else:
v.requires_grad = False

Hello, thanks for sharing your code. In the above a few lines, only parameters in BN layers will be updated and all the other parameters are frozen. Does this mean only BN parameters are trained?

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

1 participant