Zero-Shot Image Classification
OpenCLIP
biomedical
contrastive-learning
image-text-retrieval
zero-shot-classification
Instructions to use ChartFoundation/BioLoom-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use ChartFoundation/BioLoom-models with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:ChartFoundation/BioLoom-models') tokenizer = open_clip.get_tokenizer('hf-hub:ChartFoundation/BioLoom-models') - Notebooks
- Google Colab
- Kaggle
Download Initialization/CommonPool/open_clip_config.json from ChartFoundation/BioLoom-models: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Initialization/CommonPool/open_clip_config.json
- Command line
-
hf download hf://ChartFoundation/BioLoom-models/Initialization/CommonPool/open_clip_config.json
-
curl -L -o open_clip_config.json https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Initialization/CommonPool/open_clip_config.json
396 Bytes
| { | |
| "model_cfg": { | |
| "embed_dim": 768, | |
| "vision_cfg": { | |
| "image_size": 224, | |
| "layers": 24, | |
| "width": 1024, | |
| "patch_size": 14 | |
| }, | |
| "text_cfg": { | |
| "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", | |
| "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", | |
| "hf_pooler_type": "mean_pooler", | |
| "context_length": 512 | |
| } | |
| } | |
| } | |