This repository contains code (training and inference) for Attention U-Net for the lung segmentation on Chest Xray scans.
Train file:
train.py
Inference file:
inference.py
Helper functions:
attention_unet.py
utilities.py
- Clone the repository into a Colab session
- The data has to be located in the Google Drive in the exact same setting of diretories as mentioned in the code
- Adjust the paths of directories containing dataset in your computer accordingly
- Run the script train.py to train the best model
- Find out the best model parameters using the validation loss column in the logs file
- Run the script inference.py to load and run the exact same model
Note: You can run the repository in your local in the exact same manner as in Google Colab