Closed saifhassan closed 1 year ago
Hey @saifhassan. I think you tagged the wrong people :). Anyways, from what I understood, you just wanna run the offline linear eval on a custom dataset. Can you share your full script?From the error, it looks like you are missing the --dataset parameter.
Hey @saifhassan. I think you tagged the wrong people :). Anyways, from what I understood, you just wanna run the offline linear eval on a custom dataset. Can you share your full script?From the error, it looks like you are missing the --dataset parameter.
being tagged wrong, you replied very fast. Thank you for that.
however that error is solved, Can you just guide me regarding the down-stream task, Like I have pretrained model using BYOL, Barlows, and others with ResNet18 and now want to apply on down-stream task (Image Classification)?
Hey @saifhassan. I think you tagged the wrong people :). Anyways, from what I understood, you just wanna run the offline linear eval on a custom dataset. Can you share your full script?From the error, it looks like you are missing the --dataset parameter.
I assumed that main_linear.py
in repo means performing down-stream task, am I correct? if not, can you please guide me regarding how to perform down-stream task on pre-trained model which I have achieved using main_pretrain.py
.
Thanks @vturrisi in advance
Yes, the main_linear.py
file is used for downstream tasks. You just need to pass the downstream dataset and the pre-trained model in the config file. See an example here https://github.com/vturrisi/solo-learn/blob/main/scripts/linear/imagenet-100/barlow.yaml.
Yes, the
main_linear.py
file is used for downstream tasks. You just need to pass the downstream dataset and the pre-trained model in the config file. See an example here https://github.com/vturrisi/solo-learn/blob/main/scripts/linear/imagenet-100/barlow.yaml.
Thank you @DonkeyShot21. I have applied, worked! Thanks again.
Yes, the
main_linear.py
file is used for downstream tasks. You just need to pass the downstream dataset and the pre-trained model in the config file. See an example here https://github.com/vturrisi/solo-learn/blob/main/scripts/linear/imagenet-100/barlow.yaml.
and what about finetune
folder? what's the actual work of it?
and how can we use model for predicting/testing on test dataset and generate confusion matrix using the model trained using main_linear.py
? Please guide.
Thanks
@saifhassan you can also use main_linear.py
to fine-tune the whole model instead of just training a linear classifier on top of the frozen backbone. For that, just follow the examples inside finetune
. We don't support generating a confusion matrix, but you can easily implement it with lightning bolts or something like this.
@saifhassan you can also use
main_linear.py
to fine-tune the whole model instead of just training a linear classifier on top of the frozen backbone. For that, just follow the examples insidefinetune
. We don't support generating a confusion matrix, but you can easily implement it with lightning bolts or something like this.
Can you explain more regarding finetune
. Actually that folder contains same .yaml
file, How it can be used for finetuning?
or can you please guide, how can I finetune model generated by main_linear.py
? some code snippet?
The files there have a flag --finetune
. For example here: https://github.com/vturrisi/solo-learn/blob/6a891ee9af6e28ae071313b596f8e553b7227b64/scripts/finetune/imagenet/mae.yaml#L44
Hei @turian @Froskekongen @Froskekongen @Borda @ojss,
It's really a nice repo on using self-supervised learning, like ALL-in-1.
I am new to SSL, however I have implemented your repo and developed model using
main_pretrain.py
code on Image classification dataset. Now I have pretrained model saybyol-resnet-custom.ckpt
, so how do I have to use this as down-stream task on my dataset? Please guide, I gone throughmain_linear.py
but causing following errors:Please guide regarding down-stream task, steps.
Thanks in advance.