Instructions to use laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k') tokenizer = open_clip.get_tokenizer('hf-hub:laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k') - Notebooks
- Google Colab
- Kaggle
Download unknown.png from laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k: direct link, hf CLI and curl.
- Browser
- Download file 99.8 kB
-
https://huggingface.co/laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k/resolve/main/unknown.png
- Command line
-
hf download hf://laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k/unknown.png
-
curl -L -o unknown.png https://huggingface.co/laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k/resolve/main/unknown.png
99.8 kB
