STL Unet : Stacked transfer learning Unet
'enviornment.yml' : Enviornment file for recreating the conda enviornment
data.py
: Create generators for training and testing, other utility functions
model.py
: Tensorflow model of the Unet and loss functions
Three level tranfer learning.ipynb
: This notebook trains the protocol adaptive STL Unet with the different datasets
There level optimization.ipynb
: Optimization notebook allows you to select the best number of layers and other parameters to tune for a specific dataset.
Note : This code is not needed to test the given data. Use it only if you want to test the model on a new dataset. Tuned parameters are already provided for the given datasets.
-
Download the pretrained model and dataset using the link
-
Download the github Protocol adaptive STL Unet
-
Setup conda enviornment using the enviornment.yml file given in the repository
-
Open
Three level transfer learning.ipynb
file,- We have given three datasets : Storm, Radial and USC
- Give Params = Storm/ Radial / Storm according to your wish.
- Go forward with training the model
- Best model ( based on best val loss ) will be saved to the specific location
- Run the test and extract the test results.
-
For using custom datasets,
- Create folder structure similiar to any of the three given datasets with segmentations.
- we are using weights and bias for tuning.
- Please sign up for free and use this tutorial to setup W & B on your conda enviornment
- Once setup is done provide entity as your userID in the code.
- run the code with the W & B setup and it will generate a dashboard with the sweep details
- Once the sweep is finished download the excel sheet from the W & B dashboard to get the list of best parameters.
- Use that parameters in the
Three level tranfer learning.ipynb
to run your custom model
If you are using our code for your research Please cite
[1]: S. Erattakulangara and S. G. Lingala, "Airway segmentation in speech MRI using the U-net architecture," 2020 IEEE 17th International Symposium on Biomedical Imaging (ISBI), 2020, pp. 1887-1890, doi: 10.1109/ISBI45749.2020.9098536.
[2]:Erattakulangara, S., and Lingala, S.G. U-net based automatic segmentation of the vocal tract airspace in speech MRI. " 2019 international society for magnetic resonance in medicine "