You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In contrastive learning, we normally train a representation learning backbone then adding the classifier. Sometimes, I wish to play with different classifiers. It would be best to have strict=False exposed to make the model still load with a user's permission.
This feature would also be very useful for LightningModule instances that add a bunch of layers at setup time (as load_from_checkpoint does not seem to call setup).
yeah seems pretty straight forward. Add a strict arg with default True to load_from_checkpoint that gets passed into _load_model_state and into model.load_state_dicthere
🚀 Feature
In contrastive learning, we normally train a representation learning backbone then adding the classifier. Sometimes, I wish to play with different classifiers. It would be best to have
strict=False
exposed to make the model still load with a user's permission.The implementation is intuitive but an extremely useful feature in my case. Thank you!
The text was updated successfully, but these errors were encountered: