|
Download README.md from EnyaWoooo/VeloRad: direct link, hf CLI and curl.
- Browser
- Download file 1.96 kB
-
https://huggingface.co/EnyaWoooo/VeloRad/resolve/main/README.md
- Command line
-
hf download hf://EnyaWoooo/VeloRad/README.md
-
curl -L -o README.md https://huggingface.co/EnyaWoooo/VeloRad/resolve/main/README.md
1.96 kB
| license: mit | |
| library_name: pytorch | |
| pipeline_tag: image-to-text | |
| tags: | |
| - radiology-report-generation | |
| - medical-imaging | |
| - ct | |
| - flow-matching | |
| - non-autoregressive | |
| datasets: | |
| - ibrahimhamamci/CT-RATE | |
| # VeloRad (CT-RATE, step 40k) | |
| Weights of **VeloRad**, a non-autoregressive radiology report generator that synthesises the | |
| Findings section by integrating a flow-matching ODE in a frozen T5-small latent space, with no LLM decoder. | |
| Code: **https://github.com/WongJiayi/VeloRad** | |
| ## Files | |
| | File | Content | | |
| |---|---| | |
| | `velorad_ctrate_40k.pt` | EMA weights of the report generator (~0.8B: flow-matching backbone + Perceiver/cross-attention conditioning), step 40k. Keys: `params`, `ct_proj`, `step`. Optimizer state removed. | | |
| | `config.yml` | Training config of this checkpoint (data paths replaced by placeholders). | | |
| The frozen [SigVLP](https://arxiv.org/abs/2602.21735) 3D CT encoder (~0.3B) that produces the | |
| input patch tokens is **not** included; obtain it from the SigVLP release. | |
| ## Results (CT-RATE validation, 3,039 volumes) | |
| RadBERT 18-class, support-weighted: precision 0.437, recall 0.377, **F1 0.403** | |
| (64 ODE steps, CFG 1, self-conditioning CFG 1). | |
| ## Usage | |
| ```bash | |
| git clone https://github.com/WongJiayi/VeloRad && cd VeloRad | |
| pip install -r requirements.txt | |
| huggingface-cli download EnyaWoooo/VeloRad --local-dir weights | |
| cat > samp_paper.yml <<'YML' | |
| - sampling_method: ode | |
| num_sampling_steps: [64] | |
| cfgs: [1] | |
| self_cond_cfg_scales: [1] | |
| time_schedule: logit_normal | |
| YML | |
| python scripts/gen_full_val.py \ | |
| --checkpoint weights/velorad_ctrate_40k.pt \ | |
| --samp_cfg samp_paper.yml \ | |
| --parquet /path/to/patch_token_index_valid.parquet \ | |
| --report_csv /path/to/CT-RATE/radiology_text_reports/validation_reports.csv \ | |
| --out eval_results/full_val_generated.jsonl | |
| ``` | |
| The checkpoint loads with `torch.load(path, map_location="cpu", weights_only=True)`. | |
| ## Citation | |
| BibTeX will be added after publication. | |