Skip to content
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

fine tuning CLIP for embedding generation #13

Open
imneonizer opened this issue Sep 9, 2024 · 1 comment
Open

fine tuning CLIP for embedding generation #13

imneonizer opened this issue Sep 9, 2024 · 1 comment

Comments

@imneonizer
Copy link

imneonizer commented Sep 9, 2024

@ellie-sleightholm

Based on this notebook:
https://github.com/marqo-ai/fine-tuning-embedding-models-course/blob/main/10_fine_tuning_CLIP_models.ipynb

I went through the code, It's a nice write-up, kudos to the team!
However, features are calculated without gradients meaning only the last classification Linear node is actually being trained that too with fixed number of classes that makes it more like a How to train CLIP for image classification instead of finetuning the CLIP model and solving the original purpose of the CLIP model that is to compute custom embeddings aligned with the data for ranking purposes.

I would really appreciate If you can put a notebook to do that aswell.

@imneonizer imneonizer changed the title fine tuning CLIP for embedding gereration fine tuning CLIP for embedding generation Sep 9, 2024
@ellie-sleightholm
Copy link
Collaborator

Hey @imneonizer , thank you for your message. Absolutely! As we state in the article and Google Colab notebook, this is specific for image classification. We will work on a notebook for generally fine-tuning CLIP and update you when this is available 😊

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

No branches or pull requests

2 participants