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 Main/Scratch/open_clip_config.json from ChartFoundation/BioLoom-models: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Main/Scratch/open_clip_config.json
- Command line
-
hf download hf://ChartFoundation/BioLoom-models/Main/Scratch/open_clip_config.json
-
curl -L -o open_clip_config.json https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Main/Scratch/open_clip_config.json
539 Bytes
| { | |
| "model_cfg": { | |
| "embed_dim": 768, | |
| "vision_cfg": { | |
| "timm_model_name": "vit_large_patch14_clip_224.dfn2b_s39b", | |
| "timm_model_pretrained": true, | |
| "timm_pool": "", | |
| "timm_proj": "linear", | |
| "timm_drop": 0.0, | |
| "timm_drop_path": 0.1, | |
| "image_size": 224 | |
| }, | |
| "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 | |
| } | |
| } | |
| } | |