Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset (CVPR 2026)
11
stars
195
commits
Python
primary language
Apr 23, 2026
updated
Geon Choi*, Hangyul Yoon*, Hyunju Shin, Hyunki Park, Sang Hoon Seo, Eunho Yang, Edward Choi
(*: Equal Contribution)

Identifying and segmenting lesions in Chest X-rays (CXR) is crucial for accurate medical diagnosis, but conventional approaches face significant challenges:
To address these limitations, we introduce an automated pipeline to generate MIMIC-ILS, a large-scale, high-quality segmentation dataset for Chest X-rays without manual human annotation. Utilizing this dataset, we train ROSALIA, a VLM tailored for instruction-guided lesion segmentation.
By interpreting simple, user-friendly instructions instead of relying on complex expert-level prompts, our model can accurately segment diverse thoracic lesions and provide textual explanations, offering a highly accessible and practical approach to medical image analysis.
Our dataset MIMIC-ILS (MIMIC-CXR-Ext-ILS) is officially published on PhysioNet.
Since our dataset is derived from MIMIC-CXR, users must meet the same credentialing requirements to access the files:
💡 Download Tip: We recommend using the AWS CLI command provided at the bottom of the PhysioNet project page to download the dataset. Downloading via
wgetcan be very slow and prone to hanging due to the large number of files, aswgetattempts to create all directory folders before downloading the actual image files. The AWS CLI offers significantly faster and more reliable downloads.
The pre-trained weights for our ROSALIA model are publicly available on Hugging Face. You can download the checkpoints directly from the link below.
| Model | Backbone | Download |
|---|---|---|
| ROSALIA | LISA | 🤗 Hugging Face |
First, create your environment. We recommend using the following commands.
git clone https://github.com/checkoneee/ROSALIA.git
cd ROSALIA
conda create -n rosalia python=3.10
conda activate rosalia
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
pip install -r requirements.txt
# This requirements file assumes a CUDA 12.6 environment. Please ensure your setup is compatible or modify the file accordingly.
You can test the inference using the inference_rosalia_example.py script.
You can train the model using the train.sh script. Please modify the script arguments to match your directories and environment.
sh train.sh
Merge the LoRA weights from pytorch_model.bin and save the resulting model to your desired path in Hugging Face format:
sh merge_weight.sh
After that, you can evaluate the merged model on the test set:
sh test.sh
If you find our work useful, please cite as below or leave a star to this repository.
@article{choi2025instruction,
title={Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset},
author={Choi, Geon and Yoon, Hangyul and Shin, Hyunju and Park, Hyunki and Seo, Sang Hoon and Yang, Eunho and Choi, Edward},
journal={arXiv preprint arXiv:2511.15186},
year={2025}
}
Python
99.7%
Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset (CVPR 2026)
11
stars
195
commits
Python
primary language
Apr 23, 2026
updated
Geon Choi*, Hangyul Yoon*, Hyunju Shin, Hyunki Park, Sang Hoon Seo, Eunho Yang, Edward Choi
(*: Equal Contribution)

Identifying and segmenting lesions in Chest X-rays (CXR) is crucial for accurate medical diagnosis, but conventional approaches face significant challenges:
To address these limitations, we introduce an automated pipeline to generate MIMIC-ILS, a large-scale, high-quality segmentation dataset for Chest X-rays without manual human annotation. Utilizing this dataset, we train ROSALIA, a VLM tailored for instruction-guided lesion segmentation.
By interpreting simple, user-friendly instructions instead of relying on complex expert-level prompts, our model can accurately segment diverse thoracic lesions and provide textual explanations, offering a highly accessible and practical approach to medical image analysis.
Our dataset MIMIC-ILS (MIMIC-CXR-Ext-ILS) is officially published on PhysioNet.
Since our dataset is derived from MIMIC-CXR, users must meet the same credentialing requirements to access the files:
💡 Download Tip: We recommend using the AWS CLI command provided at the bottom of the PhysioNet project page to download the dataset. Downloading via
wgetcan be very slow and prone to hanging due to the large number of files, aswgetattempts to create all directory folders before downloading the actual image files. The AWS CLI offers significantly faster and more reliable downloads.
The pre-trained weights for our ROSALIA model are publicly available on Hugging Face. You can download the checkpoints directly from the link below.
| Model | Backbone | Download |
|---|---|---|
| ROSALIA | LISA | 🤗 Hugging Face |
First, create your environment. We recommend using the following commands.
git clone https://github.com/checkoneee/ROSALIA.git
cd ROSALIA
conda create -n rosalia python=3.10
conda activate rosalia
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
pip install -r requirements.txt
# This requirements file assumes a CUDA 12.6 environment. Please ensure your setup is compatible or modify the file accordingly.
You can test the inference using the inference_rosalia_example.py script.
You can train the model using the train.sh script. Please modify the script arguments to match your directories and environment.
sh train.sh
Merge the LoRA weights from pytorch_model.bin and save the resulting model to your desired path in Hugging Face format:
sh merge_weight.sh
After that, you can evaluate the merged model on the test set:
sh test.sh
If you find our work useful, please cite as below or leave a star to this repository.
@article{choi2025instruction,
title={Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset},
author={Choi, Geon and Yoon, Hangyul and Shin, Hyunju and Park, Hyunki and Seo, Sang Hoon and Yang, Eunho and Choi, Edward},
journal={arXiv preprint arXiv:2511.15186},
year={2025}
}
Python
99.7%