Instructions to use laion/CLIP-convnext_base_w-laion2B-s13B-b82K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use laion/CLIP-convnext_base_w-laion2B-s13B-b82K with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:laion/CLIP-convnext_base_w-laion2B-s13B-b82K') tokenizer = open_clip.get_tokenizer('hf-hub:laion/CLIP-convnext_base_w-laion2B-s13B-b82K') - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_cfg": { | |
| "embed_dim": 640, | |
| "vision_cfg": { | |
| "timm_model_name": "convnext_base", | |
| "timm_model_pretrained": false, | |
| "timm_pool": "", | |
| "timm_proj": "linear", | |
| "timm_drop": 0.0, | |
| "timm_drop_path": 0.1, | |
| "image_size": 256 | |
| }, | |
| "text_cfg": { | |
| "context_length": 77, | |
| "vocab_size": 49408, | |
| "width": 640, | |
| "heads": 10, | |
| "layers": 12 | |
| } | |
| }, | |
| "preprocess_cfg": { | |
| "mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ] | |
| } | |
| } |