Instructions to use nmndeep/CLIC-ViT-L-14-224-PixPr-RedCaps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use nmndeep/CLIC-ViT-L-14-224-PixPr-RedCaps with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:nmndeep/CLIC-ViT-L-14-224-PixPr-RedCaps') tokenizer = open_clip.get_tokenizer('hf-hub:nmndeep/CLIC-ViT-L-14-224-PixPr-RedCaps') - Notebooks
- Google Colab
- Kaggle
Improve model card: Add metadata, external links, and fix sample usage
#1
by nielsr HF Staff - opened
This PR enhances the model card for nmndeep/CLIC-ViT-L-14-224-PixPr-RedCaps by adding crucial information and ensuring the sample usage is runnable.
Specifically, it:
- Adds
license: apache-2.0. - Sets the
pipeline_tagtozero-shot-image-classificationfor better discoverability on the Hub. - Specifies
library_name: open_clip, which enables the automated "How to use" widget on the model page. - Adds links to the official paper (Advancing Compositional Awareness in CLIP with Efficient Fine-Tuning), the project page (
https://clic-compositional-clip.github.io/), and the GitHub repository (https://github.com/AmitPeleg/CLIC). - Corrects the sample usage code snippet by adding the necessary
from urllib.request import urlopenimport, making it fully runnable.