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

Freeze Layers for Training #57

Open
akshay-bapat-magna opened this issue Apr 17, 2023 · 2 comments
Open

Freeze Layers for Training #57

akshay-bapat-magna opened this issue Apr 17, 2023 · 2 comments

Comments

@akshay-bapat-magna
Copy link

Have you implemented a way to freeze training for certain layers of the network?
I have the backbone and geometric feature portion of the network trained, I would like to fine-tune the Patch-PnP and the head.

If you have not implemented this, would you recommend editing the model itself, or do it some other way?

@shanice-l
Copy link
Owner

shanice-l commented Apr 19, 2023

You can set the parameter "FREEZE" to True.

@akshay-bapat-magna
Copy link
Author

But this does not work if I need to train up to a checkpoint with all layers trainable, then freezing some and resuming the training. I think the optimizer finds a mismatch in parameters from the checkpoint.

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