The software is developed in Python 3.10. For deep learning, the PyTorch 1.13 framework is used.
Main Python modules required for the software can be installed from ./requirements in three stages:
- Create a Python3 environment by installing the conda
environment.yml
file:
$ conda env create -f environment.yaml
$ source activate segpicai
- Install the remaining dependencies from
requirements.txt
.
Note: These might take a few minutes.
Our source code for training and evaluation of the deep neural networks, image analysis and preprocessing, and data augmentation are available here.
- Everything can be run from ./main_3D_picai.py.
- The data preprocessing parameters, directories, hyper-parameters, and model parameters can be modified from ./configs/config.yaml.
- Also, you should first choose an
experiment
name (if you are starting a new experiment) for training, in which all the evaluation and loss value statistics, tensorboard events, and model & checkpoints will be stored. Furthermore, aconfig.yaml
file will be created for each experiment storing all the information needed. - For testing, just load the experiment which its model you need.
- The rest of the files:
- ./data/ directory contains all the data preprocessing, augmentation, and loading files.
- ./Train_Valid_picai.py contains the training and validation processes.
- ./Prediction_picai.py all the prediction and testing processes.