Instructions to use nmndeep/CLIC-ViT-B-32-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-B-32-224-PixPr-RedCaps with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:nmndeep/CLIC-ViT-B-32-224-PixPr-RedCaps') tokenizer = open_clip.get_tokenizer('hf-hub:nmndeep/CLIC-ViT-B-32-224-PixPr-RedCaps') - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ image = image_processor(Image.open(urlopen(
|
|
| 24 |
model.eval()
|
| 25 |
|
| 26 |
|
| 27 |
-
tokenizer = open_clip.get_tokenizer('hf-hub:nmndeep/CLIC-ViT-B-32-224-
|
| 28 |
|
| 29 |
|
| 30 |
texts= ["a diagram", "a dog", "a cat", "snow"]
|
|
|
|
| 24 |
model.eval()
|
| 25 |
|
| 26 |
|
| 27 |
+
tokenizer = open_clip.get_tokenizer('hf-hub:nmndeep/CLIC-ViT-B-32-224-PixPr-RedCaps')
|
| 28 |
|
| 29 |
|
| 30 |
texts= ["a diagram", "a dog", "a cat", "snow"]
|