|
a |
|
b/documentation/conda_env.md |
|
|
1 |
# Getting started |
|
|
2 |
|
|
|
3 |
Welcome to our GitHub codebase for lymphoma lesion segmentation from PET/CT images. |
|
|
4 |
|
|
|
5 |
## Cloning the repository |
|
|
6 |
To get started, the first step is the clone this repository to your local machine and navigate inside the resulting git directory: |
|
|
7 |
|
|
|
8 |
``` |
|
|
9 |
git clone 'https://github.com/microsoft/lymphoma-segmentation-dnn.git' |
|
|
10 |
cd lymphoma-segmentation-dnn |
|
|
11 |
``` |
|
|
12 |
|
|
|
13 |
## Installing packages from `environment.yml` file |
|
|
14 |
This code base was developed primarily using python=3.8.10, PyTorch=1.11.0, monai=1.2.0, with CUDA 11.3 on an Ubuntu 20.04 virtual machine, so the codebase has been tested only with these configurations. We hope that it will run in other suitable combinations of different versions of python, PyTorch, monai, and CUDA, but we cannot guarantee that. Proceed with caution! |
|
|
15 |
|
|
|
16 |
Firstly, we will use the [environment.yml](/environment.yml) file to create a conda environment (`lymphoma_seg`) and install all required packages as mentioned in the [environment.yml](/environment.yml) file. For this step, run, |
|
|
17 |
|
|
|
18 |
``` |
|
|
19 |
conda env create --file environment.yml |
|
|
20 |
``` |
|
|
21 |
|
|
|
22 |
If the above step is completed successfully without errors, you will have a new conda environment called `lymphoma_seg`. To activate this environment, use |
|
|
23 |
|
|
|
24 |
``` |
|
|
25 |
conda activate lymphoma_seg |
|
|
26 |
``` |
|
|
27 |
|
|
|
28 |
The environment can be deactivated using |
|
|
29 |
|
|
|
30 |
``` |
|
|
31 |
conda deactivate |
|
|
32 |
``` |
|
|
33 |
|
|
|
34 |
With the conda environment set up, you have all the necessary tools to start a training or inference experiment, except the training/test dataset. The next step is get your dataset in the format which can be used by our codebase, as explained in [/documentation/dataset_format.md](/documentation/dataset_format.md). |