Instructions to use recallapp/MobileCLIP-B-OpenCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use recallapp/MobileCLIP-B-OpenCLIP with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:recallapp/MobileCLIP-B-OpenCLIP') tokenizer = open_clip.get_tokenizer('hf-hub:recallapp/MobileCLIP-B-OpenCLIP') - Notebooks
- Google Colab
- Kaggle
Download open_clip_config.json from recallapp/MobileCLIP-B-OpenCLIP: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/recallapp/MobileCLIP-B-OpenCLIP/resolve/main/open_clip_config.json
- Command line
-
hf download hf://recallapp/MobileCLIP-B-OpenCLIP/open_clip_config.json
-
curl -L -o open_clip_config.json https://huggingface.co/recallapp/MobileCLIP-B-OpenCLIP/resolve/main/open_clip_config.json
673 Bytes
| { | |
| "model_cfg": { | |
| "embed_dim": 512, | |
| "vision_cfg": { | |
| "timm_model_name": "vit_base_mci_224", | |
| "timm_model_pretrained": false, | |
| "timm_pool": "token", | |
| "timm_proj": null, | |
| "timm_drop": 0.0, | |
| "timm_drop_path": 0.0, | |
| "image_size": 224 | |
| }, | |
| "text_cfg": { | |
| "context_length": 77, | |
| "vocab_size": 49408, | |
| "width": 512, | |
| "heads": 8, | |
| "layers": 12, | |
| "no_causal_mask": false | |
| }, | |
| "custom_text": true | |
| }, | |
| "preprocess_cfg": { | |
| "mean": [ | |
| 0.0, | |
| 0.0, | |
| 0.0 | |
| ], | |
| "std": [ | |
| 1.0, | |
| 1.0, | |
| 1.0 | |
| ], | |
| "interpolation": "bilinear", | |
| "resize_mode": "shortest" | |
| } | |
| } |