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/results/biomedflickr-retrieval.json from ChartFoundation/BioLoom-models: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Initialization/CommonPool/results/biomedflickr-retrieval.json
- Command line
-
hf download hf://ChartFoundation/BioLoom-models/Initialization/CommonPool/results/biomedflickr-retrieval.json
-
curl -L -o biomedflickr-retrieval.json https://huggingface.co/ChartFoundation/BioLoom-models/resolve/main/Initialization/CommonPool/results/biomedflickr-retrieval.json
1.11 kB
| { | |
| "benchmark": "BioMedFlickr", | |
| "num_pairs": 7185, | |
| "units": "percent", | |
| "revised_same_caption": { | |
| "n_unique_captions": 4281, | |
| "image_to_text": { | |
| "R@1": 9.547668695449829, | |
| "R@5": 19.540709257125854, | |
| "R@10": 25.247040390968323, | |
| "R@100": 50.271397829055786, | |
| "R@1000": 82.08767771720886 | |
| }, | |
| "text_to_image": { | |
| "R@1": 11.830200999975204, | |
| "R@5": 24.954766035079956, | |
| "R@10": 32.818371057510376, | |
| "R@100": 66.58315658569336, | |
| "R@1000": 92.41474866867065 | |
| } | |
| }, | |
| "exact_pair": { | |
| "image_to_text": { | |
| "R@1": 8.239387613082812, | |
| "R@5": 18.14892136395268, | |
| "R@10": 23.952679192762698, | |
| "R@100": 49.81210855949896, | |
| "R@1000": 82.03201113430758, | |
| "mean_rank": 582.7376478775226, | |
| "median_rank": 103.0 | |
| }, | |
| "text_to_image": { | |
| "R@1": 7.89144050104384, | |
| "R@5": 17.745302713987474, | |
| "R@10": 24.175365344467643, | |
| "R@100": 51.06471816283925, | |
| "R@1000": 83.13152400835074, | |
| "mean_rank": 537.9846903270703, | |
| "median_rank": 92.0 | |
| } | |
| }, | |
| "model": "CommonPool" | |
| } | |