CLIP
CLIP copied to clipboard
Linear prob evaluation on ImageNet
Thanks for your wonderful work!
I have some questions about linear prob evaluation on ImageNet:
- how do you conduct linear prob evaluation on ImageNet? using
sklearn.linear_model.LogisticRegression
or finetuning fc layer like this script - if answer of 1) is Yes. I found do LogisticRegression on ImageNet is very costly. Can I ask for your time spend on ImageNet linear prob evaluation experiment ?
Hi,
- Yes, but we later found that a PyTorch version can work as equivalently on linear probes.
- Please see https://github.com/openai/CLIP/issues/64#issuecomment-804444364 for more details
a PyTorch version can work as equivalently on linear probes. Hi @jongwook , could you share the details or script for the PyTorch version? Thanks.
Did you found the equivalently pytorch verson?
These both worked well for us:
- PyTorch's stock LBFGS: https://pytorch.org/docs/stable/generated/torch.optim.LBFGS.html
- A third-party implementation that has more features: https://github.com/hjmshi/PyTorch-LBFGS