gdrnpp_bop2022 icon indicating copy to clipboard operation
gdrnpp_bop2022 copied to clipboard

Freeze Layers for Training

Open akshay-bapat-magna opened this issue 1 year ago • 2 comments

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?

akshay-bapat-magna avatar Apr 17 '23 16:04 akshay-bapat-magna

You can set the parameter "FREEZE" to True.

shanice-l avatar Apr 19 '23 08:04 shanice-l

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.

akshay-bapat-magna avatar Apr 19 '23 12:04 akshay-bapat-magna