Skip to content

Wimukti/CXLSeg

Repository files navigation

CXLSeg: Chest X-ray Dataset with Lung Segmentation

CXLSeg is a publicly available database of segmented chest x-rays and corresponding masks based on MIMIC-CXR dataset.

This repository is intended to support use of the CXLSeg by providing code for different deep learning tasks. Feedback and contributions are always welcome!

Version 1.0.0

Folder Structure

  • classification
    • evaluate
    • split
    • train
    • utils
  • segmentation
    • evaluate
    • split
    • train
    • utils
  • report generation
    • split
  • notebooks
    • preview image
  • sample images

Files

  • evaluate - python scripts to evaluate classification and segmentation models.
  • split - python script to create test-train-validate datasets for each use case
  • train - python script to train the corresponding classification and segmentation tasks
  • utils - additional utility functions
  • preview-images.ipyb - notebook to preview the original, segmented and mask image.

Usage

  • classification - First use the split.py script to create the train-test-validate datasets. Then use the train.py script to train the classification model. Finally, use the evaluate.py script to evaluate the model.
  • segmentation - First use the split.py script to create the train-test-validate datasets. Then use the train.py script to train the segmentation model. Finally, use the evaluate.py script to evaluate the model.
  • report generation - First use the split.py script to create the train-test-validate datasets. Currently, train or evaluate scripts are not available for report generation task.
  • preview-images.ipyb - notebook to preview the original, segmented and mask image.
  • sample images - folder containing sample images from the CXLSeg dataset.

Important Notes

This repository provide everything that you need to train classification, segmentation and report generation models. You need to download the CXLSeg dataset and use the CSVs provided with it. Additionally, MIMIC-CXR-JPG dataset needs to be downloaded in order to utilize this for report generation tasks since the original images are not inlcuded in CXLSeg.

About

Chest X-ray Dataset with Lung Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published