(Instance segmentation with U-Net/Mask R-CNN workflow using Keras & Ray Tune)
Lung instance segmentation workflow uses Chest X-ray for predicting lung masks from the images using U-Net model.
- Clone the repo:
git clone https://github.com/pegasus-isi/lung-instance-segmentation-workflow.git - Run using the sample dataset:
python3 workflow.py --lung-img-dir inputs/train_images --lung-mask-img-dir inputs/train_masks
To Run the workflow using the production dataset, you must first obtain it.
- Install the Kaggle Python package:
pip3 install kaggle - Download the dataset:
python3 get-dataset.py- The dataset is also backed up at
/lizard/projects/ml-workflows/lung-segmentation-workflow/lung-segmentation-data.tar.gzand has asha256hash off30a3d450dce65a4c0f93c9e408e0cd457023d70db9599032179c36758fbf5fc
- The dataset is also backed up at
- Run
python3 workflow.py- by default the script will look for data in
./datawhich was created byget-dataset.py
- by default the script will look for data in
- Use the command
pip3 -r requirements.txtto install the required packages - Go back to the
lung-instance-segmentation-workflowdirectory and make a directory calledoutput - Download the dataset by running the python script called "get-dataset.py" by
python get-datatset.py - Execute the
end-to-end.shscript
