Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

[Feature] Online linear probing #565

Open
YannDubs opened this issue Sep 4, 2022 · 0 comments
Open

[Feature] Online linear probing #565

YannDubs opened this issue Sep 4, 2022 · 0 comments

Comments

@YannDubs
Copy link

YannDubs commented Sep 4, 2022

馃殌 Feature

It would be great to train and evaluate a linear probe on the validation / test set during pretraining. That is especially useful during hyperparameter tuning / development / debugging to have an idea of how well the model is training and possibly whether to kill the job. This would also allow having linear probing evaluation without requiring a second stage (which for ImageNet is actually quite slow as the images have to be encoded at every epoch). This makes a huge difference when you don't have so much compute.

If one uses the same optimizer for the encoder and linear probe then this should be a very easy addition. Using a different optimizer might require a little more work.

Pytorch lightning bolts have a callback for that: https://lightning-bolts.readthedocs.io/en/latest/callbacks/self_supervised.html#sslonlineevaluator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant