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 MIMIC test evaluation results
Browse filesFiles changed (6)
97 unmodified lines989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712810110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713841 unmodified lines18018118217618397 unmodified lines
Frontal-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 Results
The 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 |
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 | LAnA-MIMIC | LAnA-MIMIC-CHEXPERT | LAnA-v2 | LAnA-v4 |
| --- | --- | --- | --- | --- | --- |
| Number of studies | `3041` | `3041` | `3041` | `3041` | `3041` |
| ROUGE-L | `0.1686` | `0.1653` | `0.1513` | `0.1670` | `0.1392` |
| BLEU-1 | `0.2091` | `0.1916` | `0.1707` | `0.2174` | `0.1356` |
| BLEU-4 | `0.0417` | `0.0386` | `0.0357` | `0.0417` | `0.0253` |
| METEOR | `0.2298` | `0.2202` | `0.2079` | `0.2063` | `0.1348` |
| RadGraph F1 | `0.1024` | `0.0921` | `0.0918` | `0.1057` | `0.0796` |
| RadGraph entity F1 | `0.1587` | `0.1459` | `0.1399` | `0.1569` | `0.1001` |
| RadGraph relation F1 | `0.1443` | `0.1322` | `0.1246` | `0.1474` | `0.0928` |
| CheXpert F1 14-micro | `0.2116` | `0.1565` | `0.1829` | `0.1401` | `0.1207` |
| CheXpert F1 5-micro | `0.2512` | `0.1530` | `0.2183` | `0.2506` | `0.0460` |
| CheXpert F1 14-macro | `0.1095` | `0.0713` | `0.1095` | `0.0401` | `0.0330` |
| CheXpert F1 5-macro | `0.1644` | `0.1007` | `0.1634` | `0.1004` | `0.0313` |
### Cross-Model Comparison: Findings-Only Frontal Test Studies
| Metric | LAnA | LAnA-MIMIC | LAnA-MIMIC-CHEXPERT | LAnA-v2 | LAnA-v4 |
| --- | --- | --- | --- | --- | --- |
| Number of studies | `2210` | `2210` | `2210` | `2210` | `2210` |
| ROUGE-L | `0.1771` | `0.1720` | `0.1576` | `0.1771` | `0.1485` |
| BLEU-1 | `0.2177` | `0.2003` | `0.1754` | `0.2263` | `0.1486` |
| BLEU-4 | `0.0484` | `0.0449` | `0.0405` | `0.0487` | `0.0303` |
| METEOR | `0.2466` | `0.2347` | `0.2207` | `0.2240` | `0.1464` |
| RadGraph F1 | `0.1119` | `0.1000` | `0.1010` | `0.1181` | `0.0879` |
| RadGraph entity F1 | `0.1713` | `0.1577` | `0.1517` | `0.1739` | `0.1102` |
| RadGraph relation F1 | `0.1549` | `0.1413` | `0.1347` | `0.1628` | `0.1019` |
| CheXpert F1 14-micro | `0.1907` | `0.1442` | `0.1651` | `0.1365` | `0.1513` |
| CheXpert F1 5-micro | `0.2415` | `0.1716` | `0.2152` | `0.2455` | `0.0421` |
| CheXpert F1 14-macro | `0.1039` | `0.0700` | `0.1047` | `0.0381` | `0.0362` |
| CheXpert F1 5-macro | `0.1578` | `0.1112` | `0.1611` | `0.0952` | `0.0300` |
## Data
41 unmodified lines
- 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.- `evaluations/mimic_test_metrics.json` contains the latest saved MIMIC test metrics.1234567891011121314151617181920212223242526272829303132333435363738{
"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.14862030169844961,
"bleu_4": 0.030273530540335488,
"meteor": 0.14636082221439925,
"rouge_l": 0.1484596125520157,
"chexpert_f1_14_micro": 0.15130461633472286,
"chexpert_f1_5_micro": 0.042114695340501794,
"chexpert_f1_14_macro": 0.03622702283568158,
"chexpert_f1_5_macro": 0.029984051036682613,
"chexpert_f1_micro": 0.15130461633472286,
"chexpert_f1_macro": 0.03622702283568158,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.14992025518341306,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.357258064516129
},
"radgraph_f1": 0.08785195098703126,
"radgraph_f1_entity": 0.11020052437385103,
"radgraph_f1_relation": 0.10186049430891177,
"radgraph_available": true,
"radgraph_error": null
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115{
"split": "test",
"subset": "all frontal studies",
"dataset": "mimic-cxr",
"view_filter": "frontal-only (PA/AP)",
"num_examples": 3041,
"bleu_1": 0.1356025539678092,
"bleu_4": 0.025262380088998556,
"meteor": 0.13482120484187643,
"rouge_l": 0.13923121851181333,
"chexpert_f1_14_micro": 0.12074143108625868,
"chexpert_f1_5_micro": 0.04597701149425287,
"chexpert_f1_14_macro": 0.03301828713324985,
"chexpert_f1_5_macro": 0.031297709923664124,
"chexpert_f1_micro": 0.12074143108625868,
"chexpert_f1_macro": 0.03301828713324985,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.15648854961832062,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.3057674702471773
},
"radgraph_f1": 0.07959427766078782,
"radgraph_f1_entity": 0.10011562924558282,
"radgraph_f1_relation": 0.09282804249219997,
"radgraph_available": true,
"radgraph_error": null,
"evaluation_suite": "mimic_test_dual",
"all_test": {
"split": "test",
"subset": "all frontal studies",
"dataset": "mimic-cxr",
"view_filter": "frontal-only (PA/AP)",
"num_examples": 3041,
"bleu_1": 0.1356025539678092,
"bleu_4": 0.025262380088998556,
"meteor": 0.13482120484187643,
"rouge_l": 0.13923121851181333,
"chexpert_f1_14_micro": 0.12074143108625868,
"chexpert_f1_5_micro": 0.04597701149425287,
"chexpert_f1_14_macro": 0.03301828713324985,
"chexpert_f1_5_macro": 0.031297709923664124,
"chexpert_f1_micro": 0.12074143108625868,
"chexpert_f1_macro": 0.03301828713324985,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.15648854961832062,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.3057674702471773
},
"radgraph_f1": 0.07959427766078782,
"radgraph_f1_entity": 0.10011562924558282,
"radgraph_f1_relation": 0.09282804249219997,
"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.14862030169844961,
"bleu_4": 0.030273530540335488,
"meteor": 0.14636082221439925,
"rouge_l": 0.1484596125520157,
"chexpert_f1_14_micro": 0.15130461633472286,
"chexpert_f1_5_micro": 0.042114695340501794,
"chexpert_f1_14_macro": 0.03622702283568158,
"chexpert_f1_5_macro": 0.029984051036682613,
"chexpert_f1_micro": 0.15130461633472286,
"chexpert_f1_macro": 0.03622702283568158,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.14992025518341306,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.357258064516129
},
"radgraph_f1": 0.08785195098703126,
"radgraph_f1_entity": 0.11020052437385103,
"radgraph_f1_relation": 0.10186049430891177,
"radgraph_available": true,
"radgraph_error": null
}
}42 unmodified lines4344454646474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316442 unmodified lines "target_duration_seconds": 3600,
"target_duration_mode": "per_invocation",
"train_datasets": "MIMIC-CXR (findings-only)",
"validation_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.1356025539678092,
"bleu_4": 0.025262380088998556,
"meteor": 0.13482120484187643,
"rouge_l": 0.13923121851181333,
"chexpert_f1_14_micro": 0.12074143108625868,
"chexpert_f1_5_micro": 0.04597701149425287,
"chexpert_f1_14_macro": 0.03301828713324985,
"chexpert_f1_5_macro": 0.031297709923664124,
"chexpert_f1_micro": 0.12074143108625868,
"chexpert_f1_macro": 0.03301828713324985,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.15648854961832062,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.3057674702471773
},
"radgraph_f1": 0.07959427766078782,
"radgraph_f1_entity": 0.10011562924558282,
"radgraph_f1_relation": 0.09282804249219997,
"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.1356025539678092,
"bleu_4": 0.025262380088998556,
"meteor": 0.13482120484187643,
"rouge_l": 0.13923121851181333,
"chexpert_f1_14_micro": 0.12074143108625868,
"chexpert_f1_5_micro": 0.04597701149425287,
"chexpert_f1_14_macro": 0.03301828713324985,
"chexpert_f1_5_macro": 0.031297709923664124,
"chexpert_f1_micro": 0.12074143108625868,
"chexpert_f1_macro": 0.03301828713324985,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.15648854961832062,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.3057674702471773
},
"radgraph_f1": 0.07959427766078782,
"radgraph_f1_entity": 0.10011562924558282,
"radgraph_f1_relation": 0.09282804249219997,
"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.14862030169844961,
"bleu_4": 0.030273530540335488,
"meteor": 0.14636082221439925,
"rouge_l": 0.1484596125520157,
"chexpert_f1_14_micro": 0.15130461633472286,
"chexpert_f1_5_micro": 0.042114695340501794,
"chexpert_f1_14_macro": 0.03622702283568158,
"chexpert_f1_5_macro": 0.029984051036682613,
"chexpert_f1_micro": 0.15130461633472286,
"chexpert_f1_macro": 0.03622702283568158,
"chexpert_per_label_f1": {
"Enlarged Cardiomediastinum": 0.0,
"Cardiomegaly": 0.14992025518341306,
"Lung Opacity": 0.0,
"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.0,
"No Finding": 0.357258064516129
},
"radgraph_f1": 0.08785195098703126,
"radgraph_f1_entity": 0.11020052437385103,
"radgraph_f1_relation": 0.10186049430891177,
"radgraph_available": true,
"radgraph_error": null
}
}
}README.md+36-29
evaluations/mimic_test_findings_only_metrics.jsonAdded+38
evaluations/mimic_test_findings_only_predictions.csvAdded
evaluations/mimic_test_metrics.jsonAdded+115
evaluations/mimic_test_predictions.csvAdded
run_summary.json+118-1