Upload folder using huggingface_hub
Browse files- README.md +43 -0
- braindiff.pt +3 -0
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- medical-imaging
|
| 5 |
+
- brain-mri
|
| 6 |
+
- radiology-report-generation
|
| 7 |
+
- longitudinal
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# BrainDiff
|
| 11 |
+
|
| 12 |
+
Weights for *Longitudinal Report Generation for Multimodal Brain MRI: A Change-Focused Metric and
|
| 13 |
+
Vision-Language System* ([arXiv:2609.00593](https://arxiv.org/abs/2609.00593)). Code:
|
| 14 |
+
[github.com/jhuldr/BrainDiff](https://github.com/jhuldr/BrainDiff).
|
| 15 |
+
|
| 16 |
+
Input a prior and current brain MRI study (T1w, T1ce, T2w, FLAIR) and the prior report, and the model produces a report describing what changed.
|
| 17 |
+
|
| 18 |
+
`braindiff.pt` holds 429 tensors, 114,939,904 parameters (fp32): Encoder blocks 10-12 and final norm (Stage 1-D, epoch 5), the perceiver connector, the modality embedding and the Qwen3-14B decoder LoRA (status-first Stage 2, epoch 20). The NeuroVFM backbone and the Qwen3-14B base are not included. They come from NeuroVFM's gated repositories. You must accept their terms first.
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
pip install -e braindiff # from the GitHub repository
|
| 22 |
+
huggingface-cli login
|
| 23 |
+
python braindiff/scripts/fetch_weights.py
|
| 24 |
+
torchrun --standalone --nproc_per_node=4 -m braindiff.eval.generate --ckpt <braindiff.pt> \
|
| 25 |
+
--split test --repetition_penalty 1.1 --out out/gen_test.jsonl
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Intended use
|
| 29 |
+
|
| 30 |
+
A research artifact. **Not a medical device**, not validated for clinical use, and not to be
|
| 31 |
+
used to inform patient care.
|
| 32 |
+
|
| 33 |
+
## Citation
|
| 34 |
+
|
| 35 |
+
```bibtex
|
| 36 |
+
@article{patel2026braindiff,
|
| 37 |
+
title = {Longitudinal Report Generation for Multimodal Brain MRI: A Change-Focused Metric and Vision-Language System},
|
| 38 |
+
author = {Patel, Krish and Liu, Peirong},
|
| 39 |
+
journal = {arXiv preprint arXiv:2609.00593},
|
| 40 |
+
year = {2026},
|
| 41 |
+
doi = {10.48550/arXiv.2609.00593}
|
| 42 |
+
}
|
| 43 |
+
```
|
braindiff.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f51cf5c5d139b8fd2c4791e84bb0dad4dc7e2534ad455fb76aa54b620c44717
|
| 3 |
+
size 459911371
|