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-MIMIC-CHEXPERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use manu02/LAnA-MIMIC-CHEXPERT 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-MIMIC-CHEXPERT", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("manu02/LAnA-MIMIC-CHEXPERT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload MIMIC test evaluation results
Browse files- README.md +19 -19
- evaluations/mimic_test_metrics.json +18 -18
- evaluations/mimic_test_predictions.csv +0 -0
- model.safetensors +1 -1
- run_summary.json +32 -32
README.md
CHANGED
|
@@ -34,7 +34,7 @@ metrics:
|
|
| 34 |
- Project status: `Training in progress`
|
| 35 |
- Release status: `Research preview checkpoint`
|
| 36 |
- Current checkpoint status: `Not final`
|
| 37 |
-
- Training completion toward planned run: `
|
| 38 |
- Current published metrics are intermediate and will change as training continues.
|
| 39 |
|
| 40 |
## Overview
|
|
@@ -79,12 +79,12 @@ For local inference instructions, go to the [Inference](#inference) section.
|
|
| 79 |
- Scheduler: `cosine`
|
| 80 |
- Warmup steps: `5114`
|
| 81 |
- Weight decay: `0.01`
|
| 82 |
-
- Steps completed: `
|
| 83 |
- Planned total steps: `102276`
|
| 84 |
-
- Images seen: `
|
| 85 |
-
- Total training time: `23.
|
| 86 |
- Hardware: `NVIDIA GeForce RTX 5070`
|
| 87 |
-
- Final train loss: `
|
| 88 |
- Validation loss: `1.3692`
|
| 89 |
|
| 90 |
## MIMIC Test Results
|
|
@@ -96,13 +96,13 @@ Frontal-only evaluation using `PA/AP` studies only.
|
|
| 96 |
| Metric | Value |
|
| 97 |
| --- | --- |
|
| 98 |
| Number of studies | `3041` |
|
| 99 |
-
| RadGraph F1 | `0.
|
| 100 |
-
| RadGraph entity F1 | `0.
|
| 101 |
-
| RadGraph relation F1 | `0.
|
| 102 |
-
| CheXpert F1 14-micro | `0.
|
| 103 |
-
| CheXpert F1 5-micro | `0.
|
| 104 |
-
| CheXpert F1 14-macro | `0.
|
| 105 |
-
| CheXpert F1 5-macro | `0.
|
| 106 |
|
| 107 |
### Final Completed Training Results
|
| 108 |
|
|
@@ -182,13 +182,13 @@ print(report)
|
|
| 182 |
- Dataset: `MIMIC-CXR test`
|
| 183 |
- View filter: `frontal-only (PA/AP)`
|
| 184 |
- Number of examples: `3041`
|
| 185 |
-
- CheXpert F1 14-micro: `0.
|
| 186 |
-
- CheXpert F1 5-micro: `0.
|
| 187 |
-
- CheXpert F1 14-macro: `0.
|
| 188 |
-
- CheXpert F1 5-macro: `0.
|
| 189 |
-
- RadGraph F1: `0.
|
| 190 |
-
- RadGraph entity F1: `0.
|
| 191 |
-
- RadGraph relation F1: `0.
|
| 192 |
- RadGraph available: `True`
|
| 193 |
- RadGraph error: `None`
|
| 194 |
|
|
|
|
| 34 |
- Project status: `Training in progress`
|
| 35 |
- Release status: `Research preview checkpoint`
|
| 36 |
- Current checkpoint status: `Not final`
|
| 37 |
+
- Training completion toward planned run: `100.00%` (`4.000` / `3` epochs)
|
| 38 |
- Current published metrics are intermediate and will change as training continues.
|
| 39 |
|
| 40 |
## Overview
|
|
|
|
| 79 |
- Scheduler: `cosine`
|
| 80 |
- Warmup steps: `5114`
|
| 81 |
- Weight decay: `0.01`
|
| 82 |
+
- Steps completed: `102264`
|
| 83 |
- Planned total steps: `102276`
|
| 84 |
+
- Images seen: `818196`
|
| 85 |
+
- Total training time: `23.5798` hours
|
| 86 |
- Hardware: `NVIDIA GeForce RTX 5070`
|
| 87 |
+
- Final train loss: `1.1683`
|
| 88 |
- Validation loss: `1.3692`
|
| 89 |
|
| 90 |
## MIMIC Test Results
|
|
|
|
| 96 |
| Metric | Value |
|
| 97 |
| --- | --- |
|
| 98 |
| Number of studies | `3041` |
|
| 99 |
+
| RadGraph F1 | `0.0918` |
|
| 100 |
+
| RadGraph entity F1 | `0.1399` |
|
| 101 |
+
| RadGraph relation F1 | `0.1246` |
|
| 102 |
+
| CheXpert F1 14-micro | `0.1829` |
|
| 103 |
+
| CheXpert F1 5-micro | `0.2183` |
|
| 104 |
+
| CheXpert F1 14-macro | `0.1095` |
|
| 105 |
+
| CheXpert F1 5-macro | `0.1634` |
|
| 106 |
|
| 107 |
### Final Completed Training Results
|
| 108 |
|
|
|
|
| 182 |
- Dataset: `MIMIC-CXR test`
|
| 183 |
- View filter: `frontal-only (PA/AP)`
|
| 184 |
- Number of examples: `3041`
|
| 185 |
+
- CheXpert F1 14-micro: `0.1829`
|
| 186 |
+
- CheXpert F1 5-micro: `0.2183`
|
| 187 |
+
- CheXpert F1 14-macro: `0.1095`
|
| 188 |
+
- CheXpert F1 5-macro: `0.1634`
|
| 189 |
+
- RadGraph F1: `0.0918`
|
| 190 |
+
- RadGraph entity F1: `0.1399`
|
| 191 |
+
- RadGraph relation F1: `0.1246`
|
| 192 |
- RadGraph available: `True`
|
| 193 |
- RadGraph error: `None`
|
| 194 |
|
evaluations/mimic_test_metrics.json
CHANGED
|
@@ -3,31 +3,31 @@
|
|
| 3 |
"dataset": "mimic-cxr",
|
| 4 |
"view_filter": "frontal-only (PA/AP)",
|
| 5 |
"num_examples": 3041,
|
| 6 |
-
"chexpert_f1_14_micro": 0.
|
| 7 |
-
"chexpert_f1_5_micro": 0.
|
| 8 |
-
"chexpert_f1_14_macro": 0.
|
| 9 |
-
"chexpert_f1_5_macro": 0.
|
| 10 |
-
"chexpert_f1_micro": 0.
|
| 11 |
-
"chexpert_f1_macro": 0.
|
| 12 |
"chexpert_per_label_f1": {
|
| 13 |
"Enlarged Cardiomediastinum": 0.0,
|
| 14 |
-
"Cardiomegaly": 0.
|
| 15 |
"Lung Opacity": 0.0020470829068577278,
|
| 16 |
"Lung Lesion": 0.0,
|
| 17 |
-
"Edema": 0.
|
| 18 |
-
"Consolidation": 0.
|
| 19 |
-
"Pneumonia": 0.
|
| 20 |
-
"Atelectasis": 0.
|
| 21 |
-
"Pneumothorax": 0.
|
| 22 |
-
"Pleural Effusion": 0.
|
| 23 |
"Pleural Other": 0.0,
|
| 24 |
-
"Fracture": 0.
|
| 25 |
-
"Support Devices": 0.
|
| 26 |
"No Finding": 0.0
|
| 27 |
},
|
| 28 |
-
"radgraph_f1": 0.
|
| 29 |
-
"radgraph_f1_entity": 0.
|
| 30 |
-
"radgraph_f1_relation": 0.
|
| 31 |
"radgraph_available": true,
|
| 32 |
"radgraph_error": null
|
| 33 |
}
|
|
|
|
| 3 |
"dataset": "mimic-cxr",
|
| 4 |
"view_filter": "frontal-only (PA/AP)",
|
| 5 |
"num_examples": 3041,
|
| 6 |
+
"chexpert_f1_14_micro": 0.18291666666666664,
|
| 7 |
+
"chexpert_f1_5_micro": 0.21831082003001773,
|
| 8 |
+
"chexpert_f1_14_macro": 0.10945797832551928,
|
| 9 |
+
"chexpert_f1_5_macro": 0.1633553219570594,
|
| 10 |
+
"chexpert_f1_micro": 0.18291666666666664,
|
| 11 |
+
"chexpert_f1_macro": 0.10945797832551928,
|
| 12 |
"chexpert_per_label_f1": {
|
| 13 |
"Enlarged Cardiomediastinum": 0.0,
|
| 14 |
+
"Cardiomegaly": 0.10195227765726682,
|
| 15 |
"Lung Opacity": 0.0020470829068577278,
|
| 16 |
"Lung Lesion": 0.0,
|
| 17 |
+
"Edema": 0.2789757412398922,
|
| 18 |
+
"Consolidation": 0.06424344885883347,
|
| 19 |
+
"Pneumonia": 0.14311926605504585,
|
| 20 |
+
"Atelectasis": 0.0428380187416332,
|
| 21 |
+
"Pneumothorax": 0.030358227079538558,
|
| 22 |
+
"Pleural Effusion": 0.32876712328767127,
|
| 23 |
"Pleural Other": 0.0,
|
| 24 |
+
"Fracture": 0.0633879781420765,
|
| 25 |
+
"Support Devices": 0.4767225325884544,
|
| 26 |
"No Finding": 0.0
|
| 27 |
},
|
| 28 |
+
"radgraph_f1": 0.09181957971495504,
|
| 29 |
+
"radgraph_f1_entity": 0.13993790644379023,
|
| 30 |
+
"radgraph_f1_relation": 0.12464719867951028,
|
| 31 |
"radgraph_available": true,
|
| 32 |
"radgraph_error": null
|
| 33 |
}
|
evaluations/mimic_test_predictions.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1152540320
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ad12d9319ce0de4ae32d6b954079fee71ed77c3e4f94e3a7e17db14f98f6fe2
|
| 3 |
size 1152540320
|
run_summary.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
{
|
| 2 |
"method": "lora_adamw",
|
| 3 |
"run_name": "full_3_epoch_mask_run",
|
| 4 |
-
"steps":
|
| 5 |
-
"epochs_completed":
|
| 6 |
-
"epoch_index":
|
| 7 |
"target_epochs": 3,
|
| 8 |
-
"progress_epochs":
|
| 9 |
-
"training_completion_percent":
|
| 10 |
-
"elapsed_seconds":
|
| 11 |
-
"images_seen":
|
| 12 |
-
"train_loss_last":
|
| 13 |
-
"train_loss_mean": 1.
|
| 14 |
-
"val_loss": 1.
|
| 15 |
-
"images_per_second": 9.
|
| 16 |
"trainable_params": 1106688,
|
| 17 |
"vision_model_name": "facebook/dinov3-vits16-pretrain-lvd1689m",
|
| 18 |
"text_model_name": "gpt2",
|
|
@@ -33,9 +33,9 @@
|
|
| 33 |
"seed": 42,
|
| 34 |
"resume_supported": true,
|
| 35 |
"checkpoint_every_n_steps": 1000,
|
| 36 |
-
"cumulative_loss_sum":
|
| 37 |
-
"cumulative_loss_count":
|
| 38 |
-
"completed":
|
| 39 |
"target_duration_seconds": 3600,
|
| 40 |
"target_duration_mode": "per_invocation",
|
| 41 |
"train_datasets": "CheXpert, MIMIC-CXR",
|
|
@@ -45,31 +45,31 @@
|
|
| 45 |
"dataset": "mimic-cxr",
|
| 46 |
"view_filter": "frontal-only (PA/AP)",
|
| 47 |
"num_examples": 3041,
|
| 48 |
-
"chexpert_f1_14_micro": 0.
|
| 49 |
-
"chexpert_f1_5_micro": 0.
|
| 50 |
-
"chexpert_f1_14_macro": 0.
|
| 51 |
-
"chexpert_f1_5_macro": 0.
|
| 52 |
-
"chexpert_f1_micro": 0.
|
| 53 |
-
"chexpert_f1_macro": 0.
|
| 54 |
"chexpert_per_label_f1": {
|
| 55 |
"Enlarged Cardiomediastinum": 0.0,
|
| 56 |
-
"Cardiomegaly": 0.
|
| 57 |
"Lung Opacity": 0.0020470829068577278,
|
| 58 |
"Lung Lesion": 0.0,
|
| 59 |
-
"Edema": 0.
|
| 60 |
-
"Consolidation": 0.
|
| 61 |
-
"Pneumonia": 0.
|
| 62 |
-
"Atelectasis": 0.
|
| 63 |
-
"Pneumothorax": 0.
|
| 64 |
-
"Pleural Effusion": 0.
|
| 65 |
"Pleural Other": 0.0,
|
| 66 |
-
"Fracture": 0.
|
| 67 |
-
"Support Devices": 0.
|
| 68 |
"No Finding": 0.0
|
| 69 |
},
|
| 70 |
-
"radgraph_f1": 0.
|
| 71 |
-
"radgraph_f1_entity": 0.
|
| 72 |
-
"radgraph_f1_relation": 0.
|
| 73 |
"radgraph_available": true,
|
| 74 |
"radgraph_error": null
|
| 75 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"method": "lora_adamw",
|
| 3 |
"run_name": "full_3_epoch_mask_run",
|
| 4 |
+
"steps": 102264,
|
| 5 |
+
"epochs_completed": 3,
|
| 6 |
+
"epoch_index": 3,
|
| 7 |
"target_epochs": 3,
|
| 8 |
+
"progress_epochs": 4.0,
|
| 9 |
+
"training_completion_percent": 100.0,
|
| 10 |
+
"elapsed_seconds": 84887.16960079994,
|
| 11 |
+
"images_seen": 818196,
|
| 12 |
+
"train_loss_last": 1.1683106422424316,
|
| 13 |
+
"train_loss_mean": 1.8536666353336062,
|
| 14 |
+
"val_loss": 1.3691736698150634,
|
| 15 |
+
"images_per_second": 9.638629769937454,
|
| 16 |
"trainable_params": 1106688,
|
| 17 |
"vision_model_name": "facebook/dinov3-vits16-pretrain-lvd1689m",
|
| 18 |
"text_model_name": "gpt2",
|
|
|
|
| 33 |
"seed": 42,
|
| 34 |
"resume_supported": true,
|
| 35 |
"checkpoint_every_n_steps": 1000,
|
| 36 |
+
"cumulative_loss_sum": 1516662.6263634153,
|
| 37 |
+
"cumulative_loss_count": 818196,
|
| 38 |
+
"completed": true,
|
| 39 |
"target_duration_seconds": 3600,
|
| 40 |
"target_duration_mode": "per_invocation",
|
| 41 |
"train_datasets": "CheXpert, MIMIC-CXR",
|
|
|
|
| 45 |
"dataset": "mimic-cxr",
|
| 46 |
"view_filter": "frontal-only (PA/AP)",
|
| 47 |
"num_examples": 3041,
|
| 48 |
+
"chexpert_f1_14_micro": 0.18291666666666664,
|
| 49 |
+
"chexpert_f1_5_micro": 0.21831082003001773,
|
| 50 |
+
"chexpert_f1_14_macro": 0.10945797832551928,
|
| 51 |
+
"chexpert_f1_5_macro": 0.1633553219570594,
|
| 52 |
+
"chexpert_f1_micro": 0.18291666666666664,
|
| 53 |
+
"chexpert_f1_macro": 0.10945797832551928,
|
| 54 |
"chexpert_per_label_f1": {
|
| 55 |
"Enlarged Cardiomediastinum": 0.0,
|
| 56 |
+
"Cardiomegaly": 0.10195227765726682,
|
| 57 |
"Lung Opacity": 0.0020470829068577278,
|
| 58 |
"Lung Lesion": 0.0,
|
| 59 |
+
"Edema": 0.2789757412398922,
|
| 60 |
+
"Consolidation": 0.06424344885883347,
|
| 61 |
+
"Pneumonia": 0.14311926605504585,
|
| 62 |
+
"Atelectasis": 0.0428380187416332,
|
| 63 |
+
"Pneumothorax": 0.030358227079538558,
|
| 64 |
+
"Pleural Effusion": 0.32876712328767127,
|
| 65 |
"Pleural Other": 0.0,
|
| 66 |
+
"Fracture": 0.0633879781420765,
|
| 67 |
+
"Support Devices": 0.4767225325884544,
|
| 68 |
"No Finding": 0.0
|
| 69 |
},
|
| 70 |
+
"radgraph_f1": 0.09181957971495504,
|
| 71 |
+
"radgraph_f1_entity": 0.13993790644379023,
|
| 72 |
+
"radgraph_f1_relation": 0.12464719867951028,
|
| 73 |
"radgraph_available": true,
|
| 74 |
"radgraph_error": null
|
| 75 |
}
|