Spaces:
Running on Zero
Download README.md from hugging-apps/bioloom: direct link, hf CLI and curl.
- Browser
- Download file 2.59 kB
-
https://huggingface.co/spaces/hugging-apps/bioloom/resolve/main/README.md
- Command line
-
hf download hf://spaces/hugging-apps/bioloom/README.md
-
curl -L -o README.md https://huggingface.co/spaces/hugging-apps/bioloom/resolve/main/README.md
title: BioLoom — Zero-Shot Biomedical Image Classification
emoji: 🔬
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 6.32.0
app_file: app.py
short_description: BioLoom CLIP zero-shot biomedical image classification
python_version: '3.12'
startup_duration_timeout: 30m
🔬 BioLoom — zero-shot biomedical image classification
This Space runs BioLoom (DFN-2B) — a ~454M-parameter biomedical CLIP-style dual encoder (ViT-L/14 vision tower + BioClinical ModernBERT text tower) trained on 52.4M figure–caption pairs from scientific articles — as an interactive zero-shot classifier.
How to use: upload a biomedical image, pick a benchmark preset (or type your own candidate classes, one per line), and hit Classify. Each class is described by two prompt views; the two normalized view embeddings are averaged and re-normalized into a class prototype, and the normalized image embedding is scored against every prototype by cosine similarity — the exact protocol from the BioLoom evaluation suite. Preset prompts are verbatim from the suite; example images are benchmark test inputs paired with their task's class list.
Links: paper · code · project page
Model loading
The checkpoint is fetched at runtime from ChartFoundation/BioLoom-models
(Main/DFN-2B/open_clip_pytorch_model.bin, ~1.8 GB) and loaded through the authors'
open_clip fork (vendored in this Space under
open_clip/, MIT licence) — the same route as the official
evaluation/common.py.
Example image credits
The bundled example images come from the BioLoom evaluation suite and are redistributed under their upstream licences:
- HyperKvasir — CC BY 4.0, Borgli et al. 2020
- GastroVision — CC BY 4.0, Jirawale et al. 2023
- DERM12345 — CC BY, Rochameduda et al. 2024; images are ISIC Archive derivative works — attribution to the ISIC Archive is retained as required.
Class prompts and benchmark definitions are from ChartFoundation/BioLoom-EvalSuite.