Instructions to use nmndeep/CLIC-CLIPA-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-CLIPA-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-CLIPA-ViT-L-14-224-PixPr-RedCaps') tokenizer = open_clip.get_tokenizer('hf-hub:nmndeep/CLIC-CLIPA-ViT-L-14-224-PixPr-RedCaps') - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ image = image_processor(Image.open(urlopen(
|
|
| 22 |
|
| 23 |
model.eval()
|
| 24 |
|
| 25 |
-
tokenizer = open_clip.get_tokenizer(f'hf-hub:nmndeep/CLIC-CLIPA-ViT-L-14-224-
|
| 26 |
|
| 27 |
texts= ["a diagram", "a dog", "a cat", "snow"]
|
| 28 |
text = tokenizer(texts)
|
|
|
|
| 22 |
|
| 23 |
model.eval()
|
| 24 |
|
| 25 |
+
tokenizer = open_clip.get_tokenizer(f'hf-hub:nmndeep/CLIC-CLIPA-ViT-L-14-224-PixPr-RedCaps')
|
| 26 |
|
| 27 |
texts= ["a diagram", "a dog", "a cat", "snow"]
|
| 28 |
text = tokenizer(texts)
|