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
File size: 396 Bytes
30c0e8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {
"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
}
}
}
|