checkoneee/ROSALIA

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

Browse cluster: LLM-based Image Segmentation

README

Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset
(CVPR 2026 Main)

arXiv PhysioNet

Geon Choi*, Hangyul Yoon*, Hyunju Shin, Hyunki Park, Sang Hoon Seo, Eunho Yang, Edward Choi
(*: Equal Contribution)

main figure


🎯 Summary

Identifying and segmenting lesions in Chest X-rays (CXR) is crucial for accurate medical diagnosis, but conventional approaches face significant challenges:

  1. Lack of flexible interaction: Existing vision-language models (VLMs) often perform segmentation on a single lesion type and cannot adapt to simple user-provided instructions.
  2. Scarcity of dense annotations: Developing VLMs with more versatile capabilities requires large-scale datasets, yet pixel-level labeling by medical experts is extremely expensive and time-consuming.

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.

📰 ️News

  • [Mar 2026] 🗄️ Our dataset MIMIC-ILS is now officially available on PhysioNet!
  • [Feb 2026] 🎉 Our paper has been accepted to CVPR 2026!
  • [Nov 2025] 📜 Preprint is available on arXiv.

💾 Dataset

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:

  1. Be a credentialed user on PhysioNet.
  2. Complete the required CITI Data or Specimens Only Research training.
  3. Sign the Data Use Agreement (DUA) for the project.

💡 Download Tip: We recommend using the AWS CLI command provided at the bottom of the PhysioNet project page to download the dataset. Downloading via wget can be very slow and prone to hanging due to the large number of files, as wget attempts to create all directory folders before downloading the actual image files. The AWS CLI offers significantly faster and more reliable downloads.

🤖 Model

The pre-trained weights for our ROSALIA model are publicly available on Hugging Face. You can download the checkpoints directly from the link below.

ModelBackboneDownload
ROSALIALISA🤗 Hugging Face

🛠️ Setup

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.

💡 Inference Example

You can test the inference using the inference_rosalia_example.py script.

⚙️ Model Training

You can train the model using the train.sh script. Please modify the script arguments to match your directories and environment.

sh train.sh

🔗 Weight Merging and Testing

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

📝 Citation

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}
}

Contributors

X-Lai

105 commits

checkoneee

54 commits

tianzhuotao

13 commits

yukang2017

11 commits

checkoneee/ROSALIA

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

Browse cluster: LLM-based Image Segmentation

README

Instruction-Guided Lesion Segmentation for Chest X-rays with Automatically Generated Large-Scale Dataset
(CVPR 2026 Main)

arXiv PhysioNet

Geon Choi*, Hangyul Yoon*, Hyunju Shin, Hyunki Park, Sang Hoon Seo, Eunho Yang, Edward Choi
(*: Equal Contribution)

main figure


🎯 Summary

Identifying and segmenting lesions in Chest X-rays (CXR) is crucial for accurate medical diagnosis, but conventional approaches face significant challenges:

  1. Lack of flexible interaction: Existing vision-language models (VLMs) often perform segmentation on a single lesion type and cannot adapt to simple user-provided instructions.
  2. Scarcity of dense annotations: Developing VLMs with more versatile capabilities requires large-scale datasets, yet pixel-level labeling by medical experts is extremely expensive and time-consuming.

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.

📰 ️News

  • [Mar 2026] 🗄️ Our dataset MIMIC-ILS is now officially available on PhysioNet!
  • [Feb 2026] 🎉 Our paper has been accepted to CVPR 2026!
  • [Nov 2025] 📜 Preprint is available on arXiv.

💾 Dataset

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:

  1. Be a credentialed user on PhysioNet.
  2. Complete the required CITI Data or Specimens Only Research training.
  3. Sign the Data Use Agreement (DUA) for the project.

💡 Download Tip: We recommend using the AWS CLI command provided at the bottom of the PhysioNet project page to download the dataset. Downloading via wget can be very slow and prone to hanging due to the large number of files, as wget attempts to create all directory folders before downloading the actual image files. The AWS CLI offers significantly faster and more reliable downloads.

🤖 Model

The pre-trained weights for our ROSALIA model are publicly available on Hugging Face. You can download the checkpoints directly from the link below.

ModelBackboneDownload
ROSALIALISA🤗 Hugging Face

🛠️ Setup

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.

💡 Inference Example

You can test the inference using the inference_rosalia_example.py script.

⚙️ Model Training

You can train the model using the train.sh script. Please modify the script arguments to match your directories and environment.

sh train.sh

🔗 Weight Merging and Testing

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

📝 Citation

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}
}

Contributors

X-Lai

105 commits

checkoneee

54 commits

tianzhuotao

13 commits

yukang2017

11 commits

Languages

Python

99.7%