Instructions to use thaottn/OpenCLIP-resnet50-YFCC15M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use thaottn/OpenCLIP-resnet50-YFCC15M with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:thaottn/OpenCLIP-resnet50-YFCC15M') tokenizer = open_clip.get_tokenizer('hf-hub:thaottn/OpenCLIP-resnet50-YFCC15M') - Notebooks
- Google Colab
- Kaggle
Download open_clip_config.json from thaottn/OpenCLIP-resnet50-YFCC15M: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/thaottn/OpenCLIP-resnet50-YFCC15M/resolve/main/open_clip_config.json
- Command line
-
hf download hf://thaottn/OpenCLIP-resnet50-YFCC15M/open_clip_config.json
-
curl -L -o open_clip_config.json https://huggingface.co/thaottn/OpenCLIP-resnet50-YFCC15M/resolve/main/open_clip_config.json
521 Bytes
| { | |
| "model_cfg": { | |
| "embed_dim": 1024, | |
| "vision_cfg": { | |
| "image_size": 224, | |
| "layers": [ | |
| 3, | |
| 4, | |
| 6, | |
| 3 | |
| ], | |
| "width": 64, | |
| "patch_size": null | |
| }, | |
| "text_cfg": { | |
| "context_length": 77, | |
| "vocab_size": 49408, | |
| "width": 512, | |
| "heads": 8, | |
| "layers": 12 | |
| } | |
| }, | |
| "preprocess_cfg": { | |
| "mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ] | |
| } | |
| } |