Skip to content

hxhxhx88/SwinUNETR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a stand-alone self-contained Python project to train, run, and evaluate the SwinUNETR model.

Prerequisite

Prepare

First prepare a Python virtual environment by

conda create --name SwinUNETR python=3.11
conda activate SwinUNETR
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu117

Test your environment by running

python -c "import torch; print(torch.cuda.device_count())"

which should show the correct number of GPUs.

Then create a local env file by

cp .env .env.local

and set SWINUNETR_WORKSPACE to be the path of some directory with sufficiently large space, and SWINUNETR_DATA_ROOT to be the uncompressed folder of the BraTS2021 dataset containing subfolders like

- BraTS2021_00001/
- BraTS2021_00002/
- BraTS2021_00003/
...

Pipeline

The codebase provides a reasonable default setting. Run following commands in turn to train, predict, and evaluate.

make train
make predict
make evaluate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages