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 index.json from ChartFoundation/BioLoom-models: direct link, hf CLI and curl.
- Browser
- Download file 5.42 kB
-
https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/index.json
- Command line
-
hf download hf://ChartFoundation/BioLoom-models/index.json
-
curl -L -o index.json https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/index.json
5.42 kB
| { | |
| "Main/Scratch": { | |
| "name": "BioLoom (Scratch)", | |
| "paper_location": "Main/Supplement results; Table 5; Figure 5 reference", | |
| "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", | |
| "checkpoint": "Main/Scratch/open_clip_pytorch_model.bin", | |
| "sha256": "c33050042089d02c57313c89d5c9cbaf025be5ee359303aab419ad6337f655ad", | |
| "bytes": 1816835925, | |
| "paper_metrics_percent": { | |
| "zero_shot": 52.89, | |
| "bioloombench": 57.13, | |
| "biomedflickr": 8.42 | |
| }, | |
| "results": { | |
| "zero_shot": "Main/Scratch/results/zero-shot.json", | |
| "biomedflickr": "Main/Scratch/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Main/Scratch/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Main/Scratch/open_clip_config.json" | |
| }, | |
| "Main/DFN-2B": { | |
| "name": "BioLoom (DFN-2B)", | |
| "paper_location": "Main/Supplement results; Table 5 (DFN-2B)", | |
| "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", | |
| "checkpoint": "Main/DFN-2B/open_clip_pytorch_model.bin", | |
| "sha256": "44c00c876cd54a0a673ec1c5741d32763fff0f063691caac48072431edfc6fff", | |
| "bytes": 1816835486, | |
| "paper_metrics_percent": { | |
| "zero_shot": 56.82, | |
| "bioloombench": 63.2, | |
| "biomedflickr": 10.59 | |
| }, | |
| "results": { | |
| "zero_shot": "Main/DFN-2B/results/zero-shot.json", | |
| "biomedflickr": "Main/DFN-2B/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Main/DFN-2B/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Main/DFN-2B/open_clip_config.json" | |
| }, | |
| "Initialization/CommonPool": { | |
| "name": "CommonPool", | |
| "paper_location": "Main results / Table 5", | |
| "architecture": "BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext", | |
| "checkpoint": "Initialization/CommonPool/open_clip_pytorch_model.bin", | |
| "sha256": "65e2791e76ae16ce06dc2d020d1b097d8321a26571017236703388c236199e03", | |
| "bytes": 1816825530, | |
| "paper_metrics_percent": { | |
| "zero_shot": 53.66, | |
| "bioloombench": 61.53, | |
| "biomedflickr": 10.69 | |
| }, | |
| "results": { | |
| "zero_shot": "Initialization/CommonPool/results/zero-shot.json", | |
| "biomedflickr": "Initialization/CommonPool/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Initialization/CommonPool/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Initialization/CommonPool/open_clip_config.json" | |
| }, | |
| "Initialization/DINOv2": { | |
| "name": "DINOv2", | |
| "paper_location": "Main results / Table 5", | |
| "architecture": "BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext", | |
| "checkpoint": "Initialization/DINOv2/open_clip_pytorch_model.bin", | |
| "sha256": "de2ca653c5e6c4f90cf64e854f15e4238366225c72e2f929ae07e81260b53342", | |
| "bytes": 1817043017, | |
| "paper_metrics_percent": { | |
| "zero_shot": 54.94, | |
| "bioloombench": 61.2, | |
| "biomedflickr": 10.19 | |
| }, | |
| "results": { | |
| "zero_shot": "Initialization/DINOv2/results/zero-shot.json", | |
| "biomedflickr": "Initialization/DINOv2/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Initialization/DINOv2/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Initialization/DINOv2/open_clip_config.json" | |
| }, | |
| "Model-size/ViT-S-14": { | |
| "name": "ViT-S", | |
| "paper_location": "Figure 5", | |
| "architecture": "BioClinicalModernBERT-large-ViT-S-14-randvision", | |
| "checkpoint": "Model-size/ViT-S-14/open_clip_pytorch_model.bin", | |
| "sha256": "d08fdfa5cf95159ba853fa0af0f36a1afe926ab48525708a2f1f35086e5556c5", | |
| "bytes": 688561436, | |
| "paper_metrics_percent": { | |
| "zero_shot": 50.85, | |
| "bioloombench": 48.19, | |
| "biomedflickr": 7.13 | |
| }, | |
| "results": { | |
| "zero_shot": "Model-size/ViT-S-14/results/zero-shot.json", | |
| "biomedflickr": "Model-size/ViT-S-14/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Model-size/ViT-S-14/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Model-size/ViT-S-14/open_clip_config.json" | |
| }, | |
| "Model-size/ViT-B-14": { | |
| "name": "ViT-B", | |
| "paper_location": "Figure 5", | |
| "architecture": "BioClinicalModernBERT-large-ViT-B-14-randvision", | |
| "checkpoint": "Model-size/ViT-B-14/open_clip_pytorch_model.bin", | |
| "sha256": "e4f448c745fc2e2ebe0dc95198a26e672199d4656e09af862d95743cb16dba97", | |
| "bytes": 946090268, | |
| "paper_metrics_percent": { | |
| "zero_shot": 51.36, | |
| "bioloombench": 50.61, | |
| "biomedflickr": 7.21 | |
| }, | |
| "results": { | |
| "zero_shot": "Model-size/ViT-B-14/results/zero-shot.json", | |
| "biomedflickr": "Model-size/ViT-B-14/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Model-size/ViT-B-14/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Model-size/ViT-B-14/open_clip_config.json" | |
| }, | |
| "Model-size/ViT-H-14": { | |
| "name": "ViT-H", | |
| "paper_location": "Figure 5", | |
| "architecture": "BioClinicalModernBERT-large-ViT-H-14-randvision", | |
| "checkpoint": "Model-size/ViT-H-14/open_clip_pytorch_model.bin", | |
| "sha256": "54c61b3f704e2a83689bc4b3ae9dc24266521e818f7e0a93033bdda6fb389969", | |
| "bytes": 3127994860, | |
| "paper_metrics_percent": { | |
| "zero_shot": 51.7, | |
| "bioloombench": 55.86, | |
| "biomedflickr": 8.15 | |
| }, | |
| "results": { | |
| "zero_shot": "Model-size/ViT-H-14/results/zero-shot.json", | |
| "biomedflickr": "Model-size/ViT-H-14/results/biomedflickr-retrieval.json", | |
| "bioloombench": "Model-size/ViT-H-14/results/bioloom-retrieval.json" | |
| }, | |
| "config": "Model-size/ViT-H-14/open_clip_config.json" | |
| } | |
| } | |