Download README.md from hanjang/B-RAD: direct link, hf CLI and curl.
- Browser
- Download file 5.49 kB
-
https://huggingface.co/hanjang/B-RAD/resolve/main/README.md
- Command line
-
hf download hf://hanjang/B-RAD/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/hanjang/B-RAD/resolve/main/README.md
license: cc-by-nc-sa-4.0
library_name: pytorch
pipeline_tag: image-classification
tags:
- medical-imaging
- breast-ultrasound
- bi-rads
- retrieval-augmented-generation
- vision-language
extra_gated_heading: Request access to B-RAD
extra_gated_prompt: >-
B-RAD weights are released under CC BY-NC-SA 4.0 for non-commercial research
use only. Any publication that uses them must cite Jang et al., npj Digital
Medicine (2026), doi:10.1038/s41746-026-03272-3. They are not a medical device
and must not be used for clinical decision making.
extra_gated_fields:
Full name: text
Affiliation (full institution name): text
Type of affiliation:
type: select
options:
- Academia
- Hospital
- Industry
- label: Other
value: other
Country: country
Intended use: text
I agree to use the weights for non-commercial research only: checkbox
I agree to cite the B-RAD paper in any publication that uses these weights: checkbox
I understand the weights are provided as is, without warranty, and the authors are not liable for any use of them: checkbox
extra_gated_button_content: Request access
B-RAD inference checkpoints
Released inference weights for B-RAD, an interpretable multimodal retrieval-augmented diagnosis pipeline for breast ultrasound. B-RAD turns a single breast ultrasound image into an interpretable BI-RADS assessment by chaining four modules: BI-RADS-aware retrieval, retrieval-guided few-shot detection, foundational segmentation, and region-aware classification.
- Paper: npj Digital Medicine (2026)
- DOI: 10.1038/s41746-026-03272-3
- Code: github.com/snuh-rad-aicon/B-RAD
Files
| File | Module | Contents |
|---|---|---|
b_rad_clip.pt |
B-RAD-CLIP | VPT-adapted BiomedCLIP image tower, BioLinkBERT-large text tower, both 512-d projection heads, the BI-RADS ordinal heads, the learned temperature, and the 5-fold image-only BI-RADS classification ensemble (mlp_heads, 512-d input) with its per-fold standard scalers |
b_rad_full.pt |
B-RAD-FULL | VPT-adapted BiomedCLIP image tower, BioLinkBERT-large text tower and projection heads, plus the 5-fold image+text BI-RADS classification ensemble (mlp_heads, 1024-d input) and its per-fold standard scalers |
b_rad_det.pt |
B-RAD-Det | fold-0 stage-2 detector: ViT-B/16 backbone, OWL-ViT-style detection head, and the four learned class queries |
Usage
Access is gated. Log in, submit the request form on this page, and create a read token at https://huggingface.co/settings/tokens.
git clone https://github.com/snuh-rad-aicon/B-RAD && cd B-RAD
conda env create -f environment.yml && conda activate b-rad
export HF_TOKEN=hf_xxx # or: hf auth login
bash B-RAD/ckpts/download_weights.sh # fetches this repo, plus UltraSam.pth
export CLIP_PY=/path/to/b-rad/python # torch + transformers
export SEG_PY=/path/to/b-rad-seg/python # mmdet + mmcv + mmpretrain
bash B-RAD/scripts/inference_full.sh # end-to-end on the bundled sample
notebooks/brad_inference_demo.ipynb runs the same pipeline with a
visualization of every stage. The segmentation module needs its own OpenMMLab
environment; see the repository README.
UltraSam.pth for B-RAD-Seg is not hosted here; download_weights.sh fetches it
from the UltraSam authors.
Where each file is used
B-RAD/
βββ B-RAD-CLIP/ infer_retrieval.py --ckpt b_rad_clip.pt
βββ B-RAD-Det/ inference_single.py --ckpt b_rad_det.pt
βββ B-RAD-Seg/ infer_bbox.py --ckpt UltraSam.pth
βββ B-RAD-FULL/ infer_birads.py --ckpt b_rad_full.pt
βββ ckpts/ download_weights.sh (puts all four here)
Intended use and limitations
Research use only. These weights are not a medical device and must not be used for clinical decision making. They were trained only on public breast-ultrasound cohorts. The single-institution clinical cohort in the paper was used for evaluation only. Performance on scanners, populations, or acquisition protocols beyond those reported in the paper is not characterized.
Citation
@article{jang2026interpretable,
title = {Interpretable multimodal retrieval augmented diagnosis for breast ultrasound with multinational clinical validation and reader study},
author = {Jang, Han and An, Subin and Jung, Sunghyun and Ji, Hye and Kim, Miran and Lee, Soochahn and Choi, Kyu Sung and Ha, Su Min},
journal = {npj Digital Medicine},
year = {2026},
publisher = {Nature Publishing Group UK London},
doi = {10.1038/s41746-026-03272-3},
url = {https://doi.org/10.1038/s41746-026-03272-3}
}
License
CC BY-NC-SA 4.0, matching
the code repository:
non-commercial use only, with attribution, and derivatives under the same
license. Upstream components retain their original licenses: BiomedCLIP,
BioLinkBERT, OWL-ViT, and the timm ViT-B/16 initialization.
The methods behind these weights are covered by Korean patent application 10-2026-0096895. No patent rights are granted by this license. For commercial use or licensing, please contact the corresponding author.