Instructions to use juns/CS-CLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use juns/CS-CLIP with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:juns/CS-CLIP') tokenizer = open_clip.get_tokenizer('hf-hub:juns/CS-CLIP') - Notebooks
- Google Colab
- Kaggle
File size: 484 Bytes
9fa07da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"_name_or_path": "openai/clip-vit-base-patch32",
"architectures": [
"CLIPModel"
],
"initializer_factor": 1.0,
"logit_scale_init_value": 2.6592,
"model_type": "clip",
"projection_dim": 512,
"text_config": {
"bos_token_id": 0,
"dropout": 0.0,
"eos_token_id": 2,
"model_type": "clip_text_model"
},
"torch_dtype": "float32",
"transformers_version": "4.44.2",
"vision_config": {
"dropout": 0.0,
"model_type": "clip_vision_model"
}
}
|