-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Hello,
I've read in some previous issues that it's possible to specify the parameter encoder_freeze to freeze the encoder weights. However, I couldn't find this parameter anywhere in the repository, and it's also not mentioned in the documentation.
Is this parameter still valid? If so, why doesn't it appear in the code?
Thank you!
Activity
qubvel commentedon Jul 18, 2025
Hello, this is not smth that was added to the API, but you can always do it manually:
P.S. It might be a bit more complicated for batchnorm layers. Would appreciate a PR in case you have bandwidth! 🤗
ricber commentedon Jul 21, 2025
What’s your idea? To introduce an
encoder_freezeparameter in the API? If so, in which class should the parameter be introduced?qubvel commentedon Jul 22, 2025
This method could be added to a base
SegmentationModelclass