-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to find pre-trained model weights #13
Comments
Hey @moon001light. The command you posted is meant for running interpolation provided you already have both the zero-shot and fine-tuned checkpoints (hence you need to pass both paths). If you're trying to fine-tune the model yourself (instead of loading an existing fine-tuned checkpoint), your command should look more like the second part of this doc https://github.com/mlfoundations/wise-ft/tree/master#run-wise-ft, as below
Note that you only specify the model here with
Hope this helps! PS: we have a better ViT-L/14 model now which you might want to check out, |
Thank you for the quick response @gabrielilharco. May I ask that since I am using a custom dataset (I just have images with labels), how should I structure the data/folder so that I can input it into the |
You'll need to write some code for that to create the dataloader either way, so most folder structures will do as long as you write the correct code to load from it. A typical one is to have one subfolder per class that stores all images from that class. There are many examples here, e.g. https://github.com/mlfoundations/wise-ft/blob/master/src/datasets/imagenet.py#L8 |
@gabrielilharco |
Yes, you can |
Hi newbie here, I am trying to fine tune this model of yours which was uploaded to huggingface: https://huggingface.co/laion/CLIP-ViT-L-14-laion2B-s32B-b82K
I want to fine-tune it on my custom dataset.
Looking from the example below, the "checkpoint" to load are of
.pt
. May I ask where can I find these checkpoints for the pre-trained model specified in the link?Side question: why do I need to pass the
finetuned.pt
checkpoints for fine tuning? Won't I be missing the fine-tune weights before I start fine-tuning on my custom dataset?The text was updated successfully, but these errors were encountered: