Image-to-Text
Transformers
Safetensors
lana_radgen
feature-extraction
medical-ai
radiology
chest-xray
report-generation
segmentation
anatomical-attention
custom_code
Instructions to use manu02/LAnA-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use manu02/LAnA-v4 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="manu02/LAnA-v4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("manu02/LAnA-v4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload benchmarked LANA model
Browse filesFiles changed (3)
- README.md+35-42
- model.safetensors+1-1
- run_summary.json+12-129
97 unmodified lines989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713821 unmodified lines16016116216316416516616716816917017117217317417517617717817918018118218397 unmodified linesFrontal-only evaluation using `PA/AP` studies only.These comparison tables are refreshed across the full LAnA collection whenever any collection model is evaluated.### Cross-Model Comparison: All Frontal Test Studies| Metric | LAnA-MIMIC-CHEXPERT | LAnA-MIMIC | LAnA | LAnA-v2 | LAnA-v3 | LAnA-v4 || --- | --- | --- | --- | --- | --- | --- || Number of studies | `3041` | `3041` | `3041` | `3041` | `3041` | `3041` || ROUGE-L | `0.1513` | `0.1653` | `0.1686` | `0.1670` | `0.1745` | `0.1572` || BLEU-1 | `0.1707` | `0.1916` | `0.2091` | `0.2174` | `0.2346` | `0.2036` || BLEU-4 | `0.0357` | `0.0386` | `0.0417` | `0.0417` | `0.0484` | `0.0357` || METEOR | `0.2079` | `0.2202` | `0.2298` | `0.2063` | `0.2129` | `0.1704` || RadGraph F1 | `0.0918` | `0.0921` | `0.1024` | `0.1057` | `0.0939` | `0.0818` || RadGraph entity F1 | `0.1399` | `0.1459` | `0.1587` | `0.1569` | `0.1441` | `0.1278` || RadGraph relation F1 | `0.1246` | `0.1322` | `0.1443` | `0.1474` | `0.1280` | `0.1198` || CheXpert F1 14-micro | `0.1829` | `0.1565` | `0.2116` | `0.1401` | `0.3116` | `0.1111` || CheXpert F1 5-micro | `0.2183` | `0.1530` | `0.2512` | `0.2506` | `0.2486` | `0.0140` || CheXpert F1 14-macro | `0.1095` | `0.0713` | `0.1095` | `0.0401` | `0.1363` | `0.0439` || CheXpert F1 5-macro | `0.1634` | `0.1007` | `0.1644` | `0.1004` | `0.1686` | `0.0105` |### Cross-Model Comparison: Findings-Only Frontal Test Studies| Metric | LAnA-MIMIC-CHEXPERT | LAnA-MIMIC | LAnA | LAnA-v2 | LAnA-v3 | LAnA-v4 || --- | --- | --- | --- | --- | --- | --- || Number of studies | `2210` | `2210` | `2210` | `2210` | `2210` | `2210` || ROUGE-L | `0.1576` | `0.1720` | `0.1771` | `0.1771` | `0.1848` | `0.1668` || BLEU-1 | `0.1754` | `0.2003` | `0.2177` | `0.2263` | `0.2480` | `0.2206` || BLEU-4 | `0.0405` | `0.0449` | `0.0484` | `0.0487` | `0.0573` | `0.0423` || METEOR | `0.2207` | `0.2347` | `0.2466` | `0.2240` | `0.2310` | `0.1864` || RadGraph F1 | `0.1010` | `0.1000` | `0.1119` | `0.1181` | `0.1046` | `0.0942` || RadGraph entity F1 | `0.1517` | `0.1577` | `0.1713` | `0.1739` | `0.1584` | `0.1444` || RadGraph relation F1 | `0.1347` | `0.1413` | `0.1549` | `0.1628` | `0.1405` | `0.1351` || CheXpert F1 14-micro | `0.1651` | `0.1442` | `0.1907` | `0.1365` | `0.2921` | `0.1101` || CheXpert F1 5-micro | `0.2152` | `0.1716` | `0.2415` | `0.2455` | `0.2394` | `0.0158` || CheXpert F1 14-macro | `0.1047` | `0.0700` | `0.1039` | `0.0381` | `0.1326` | `0.0435` || CheXpert F1 5-macro | `0.1611` | `0.1112` | `0.1578` | `0.0952` | `0.1636` | `0.0124` |## Data21 unmodified lines- Scheduler: `cosine`- Warmup steps: `165`- Weight decay: `0.01`- Steps completed: `1457`- Planned total steps: `3297`- Images seen: `186757`- Total training time: `3.5000` hours- Hardware: `NVIDIA GeForce RTX 5070`- Final train loss: `1.1516`- Validation loss: `1.7666`## Status- Project status: `Training in progress`- Release status: `Research preview checkpoint`- Current checkpoint status: `Not final`- Training completion toward planned run: `44.29%` (`1` / `3` epochs)- Current published metrics are intermediate and will change as training continues.## Notes- Set `HF_TOKEN` with permission to access the DINOv3 repositories required by this model before downloading or running inference.- `segmenters/` contains the lung and heart segmentation checkpoints used to build anatomical attention masks.- `evaluations/mimic_test_metrics.json` contains the latest saved MIMIC test metrics.97 unmodified lines989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013121 unmodified lines15315415515615715815916016116216316416516616716816917017117217317417517697 unmodified linesFrontal-only evaluation using `PA/AP` studies only.### Current Checkpoint Results| Metric | Value || --- | --- || Number of studies | TBD || RadGraph F1 | TBD || RadGraph entity F1 | TBD || RadGraph relation F1 | TBD || CheXpert F1 14-micro | TBD || CheXpert F1 5-micro | TBD || CheXpert F1 14-macro | TBD || CheXpert F1 5-macro | TBD |### Final Completed Training ResultsThe final table will be populated when the planned training run is completed. Until then, final-report metrics remain `TBD`.| Metric | Value || --- | --- || Number of studies | TBD || RadGraph F1 | TBD || RadGraph entity F1 | TBD || RadGraph relation F1 | TBD || CheXpert F1 14-micro | TBD || CheXpert F1 5-micro | TBD || CheXpert F1 14-macro | TBD || CheXpert F1 5-macro | TBD |## Data21 unmodified lines- Scheduler: `cosine`- Warmup steps: `165`- Weight decay: `0.01`- Steps completed: `1898`- Planned total steps: `3297`- Images seen: `243260`- Total training time: `4.5000` hours- Hardware: `NVIDIA GeForce RTX 5070`- Final train loss: `2.1343`- Validation loss: `1.6996`## Status- Project status: `Training in progress`- Release status: `Research preview checkpoint`- Current checkpoint status: `Not final`- Training completion toward planned run: `57.68%` (`2` / `3` epochs)- Current published metrics are intermediate and will change as training continues.## Notes- Set `HF_TOKEN` with permission to access the DINOv3 repositories required by this model before downloading or running inference.- `segmenters/` contains the lung and heart segmentation checkpoints used to build anatomical attention masks.- `evaluations/mimic_test_metrics.json` contains the latest saved MIMIC test metrics.
123version https://git-lfs.github.com/spec/v1oid sha256:116807097f7de5aae802258f87da50ecc6e03682c3b4c67704c2631becd3d8fcsize 1152546464123version https://git-lfs.github.com/spec/v1oid sha256:33582f464b0a7b94e8f3d2e1dfb77f3a3d80a092f787f9b6b9222c6fe1acad1asize 1152546464
12345678910111213141516171818 unmodified lines373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165{"method": "full_adamw","run_name": "LAnA-v4","steps": 1457,"epochs_completed": 1,"epoch_index": 1,"target_epochs": 3,"progress_epochs": 1.3285788473987863,"training_completion_percent": 44.28596157995954,"elapsed_seconds": 12600.109251199998,"images_seen": 186757,"train_loss_last": 1.1515578031539917,"train_loss_mean": 2.5229984519101953,"val_loss": 1.7665886163711548,"images_per_second": 14.821855610673678,"trainable_params": 125522688,"vision_model_name": "facebook/dinov3-vits16-pretrain-lvd1689m","text_model_name": "gpt2",18 unmodified lines"seed": 42,"resume_supported": true,"checkpoint_every_n_steps": 1000,"cumulative_loss_sum": 471187.62188339233,"cumulative_loss_count": 186757,"completed": false,"target_duration_seconds": 3600,"target_duration_mode": "per_invocation","repo_id": "manu02/LAnA-v4","train_datasets": "MIMIC-CXR (findings-only)","validation_datasets": "MIMIC-CXR (findings-only)","repo_url": "https://huggingface.co/manu02/LAnA-v4","latest_evaluation": {"split": "test","subset": "all frontal studies","dataset": "mimic-cxr","view_filter": "frontal-only (PA/AP)","num_examples": 3041,"bleu_1": 0.2035529619114276,"bleu_4": 0.03566560286143402,"meteor": 0.17035170732856697,"rouge_l": 0.15720175882244958,"chexpert_f1_14_micro": 0.1111376673040153,"chexpert_f1_5_micro": 0.013994169096209912,"chexpert_f1_14_macro": 0.04393213971316479,"chexpert_f1_5_macro": 0.01053787047200878,"chexpert_f1_micro": 0.1111376673040153,"chexpert_f1_macro": 0.04393213971316479,"chexpert_per_label_f1": {"Enlarged Cardiomediastinum": 0.0,"Cardiomegaly": 0.052689352360043906,"Lung Opacity": 0.01015228426395939,"Lung Lesion": 0.0,"Edema": 0.0,"Consolidation": 0.0,"Pneumonia": 0.0,"Atelectasis": 0.0,"Pneumothorax": 0.0,"Pleural Effusion": 0.0,"Pleural Other": 0.0,"Fracture": 0.0,"Support Devices": 0.3374432186891629,"No Finding": 0.21476510067114093},"radgraph_f1": 0.08184292683961185,"radgraph_f1_entity": 0.1277631413335613,"radgraph_f1_relation": 0.11983805275868396,"radgraph_available": true,"radgraph_error": null},"latest_evaluations": {"all_test": {"split": "test","subset": "all frontal studies","dataset": "mimic-cxr","view_filter": "frontal-only (PA/AP)","num_examples": 3041,"bleu_1": 0.2035529619114276,"bleu_4": 0.03566560286143402,"meteor": 0.17035170732856697,"rouge_l": 0.15720175882244958,"chexpert_f1_14_micro": 0.1111376673040153,"chexpert_f1_5_micro": 0.013994169096209912,"chexpert_f1_14_macro": 0.04393213971316479,"chexpert_f1_5_macro": 0.01053787047200878,"chexpert_f1_micro": 0.1111376673040153,"chexpert_f1_macro": 0.04393213971316479,"chexpert_per_label_f1": {"Enlarged Cardiomediastinum": 0.0,"Cardiomegaly": 0.052689352360043906,"Lung Opacity": 0.01015228426395939,"Lung Lesion": 0.0,"Edema": 0.0,"Consolidation": 0.0,"Pneumonia": 0.0,"Atelectasis": 0.0,"Pneumothorax": 0.0,"Pleural Effusion": 0.0,"Pleural Other": 0.0,"Fracture": 0.0,"Support Devices": 0.3374432186891629,"No Finding": 0.21476510067114093},"radgraph_f1": 0.08184292683961185,"radgraph_f1_entity": 0.1277631413335613,"radgraph_f1_relation": 0.11983805275868396,"radgraph_available": true,"radgraph_error": null},"findings_only_test": {"split": "test","subset": "findings-only frontal studies","dataset": "mimic-cxr","view_filter": "frontal-only (PA/AP), structured Findings section only","num_examples": 2210,"bleu_1": 0.22059644662953773,"bleu_4": 0.04229623078002363,"meteor": 0.18638338864274354,"rouge_l": 0.16680291017726653,"chexpert_f1_14_micro": 0.11007836704938946,"chexpert_f1_5_micro": 0.015799256505576207,"chexpert_f1_14_macro": 0.04345646420379053,"chexpert_f1_5_macro": 0.01243144424131627,"chexpert_f1_micro": 0.11007836704938946,"chexpert_f1_macro": 0.04345646420379053,"chexpert_per_label_f1": {"Enlarged Cardiomediastinum": 0.0,"Cardiomegaly": 0.062157221206581355,"Lung Opacity": 0.011510791366906475,"Lung Lesion": 0.0,"Edema": 0.0,"Consolidation": 0.0,"Pneumonia": 0.0,"Atelectasis": 0.0,"Pneumothorax": 0.0,"Pleural Effusion": 0.0,"Pleural Other": 0.0,"Fracture": 0.0,"Support Devices": 0.29296424452133796,"No Finding": 0.24175824175824176},"radgraph_f1": 0.09418907693705011,"radgraph_f1_entity": 0.14441652320615356,"radgraph_f1_relation": 0.1351059060005346,"radgraph_available": true,"radgraph_error": null}}}12345678910111213141516171818 unmodified lines373839404142434445464748{"method": "full_adamw","run_name": "LAnA-v4","steps": 1898,"epochs_completed": 1,"epoch_index": 1,"target_epochs": 3,"progress_epochs": 1.730538027587875,"training_completion_percent": 57.68460091959583,"elapsed_seconds": 16200.123888499998,"images_seen": 243260,"train_loss_last": 2.1343021392822266,"train_loss_mean": 2.3213024195590237,"val_loss": 1.6995501279830934,"images_per_second": 15.015934549283495,"trainable_params": 125522688,"vision_model_name": "facebook/dinov3-vits16-pretrain-lvd1689m","text_model_name": "gpt2",18 unmodified lines"seed": 42,"resume_supported": true,"checkpoint_every_n_steps": 1000,"cumulative_loss_sum": 564680.0265819281,"cumulative_loss_count": 243260,"completed": false,"target_duration_seconds": 3600,"target_duration_mode": "per_invocation","repo_id": "manu02/LAnA-v4","train_datasets": "MIMIC-CXR (findings-only)","validation_datasets": "MIMIC-CXR (findings-only)"}
README.md+35-42
model.safetensors+1-1
run_summary.json+12-129