bioloom / README.md
multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
c54c2bf verified
|
Raw History Blame Contribute Delete
2.59 kB
metadata
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:

Class prompts and benchmark definitions are from ChartFoundation/BioLoom-EvalSuite.