If you use this code or the EPISURG dataset for your research, please cite this publication as:
Pérez-García, F., Dorent, R., Rizzi, M. et al. A self-supervised learning strategy for postoperative brain cavity segmentation simulating resections. Int J CARS (2021). https://doi.org/10.1007/s11548-021-02420-2
BibTeX:
@article{perez-garcia_self-supervised_2021,
title = {A self-supervised learning strategy for postoperative brain cavity segmentation simulating resections},
issn = {1861-6429},
url = {https://doi.org/10.1007/s11548-021-02420-2},
doi = {10.1007/s11548-021-02420-2},
language = {en},
urldate = {2021-06-14},
journal = {International Journal of Computer Assisted Radiology and Surgery},
author = {P{\'e}rez-Garc{\'i}a, Fernando and Dorent, Reuben and Rizzi, Michele and Cardinale, Francesco and Frazzini, Valerio and Navarro, Vincent and Essert, Caroline and Ollivier, Ir{\`e}ne and Vercauteren, Tom and Sparks, Rachel and Duncan, John S. and Ourselin, S{\'e}bastien},
month = jun,
year = {2021},
}
$ conda create -n ijcars python=3.7 ipython -y && conda activate ijcars
$ conda install pytorch=1.7.1 torchvision=0.8.2 cudatoolkit=11.0 -c pytorch -y
$ pip install -r requirements.txt
The trained models can be used to segment easily using resseg
.
Resections can be simulated on 3D MRI using resector
.
See the EPISURG extension for 3D Slicer.
python main.py with config/simulated/config_simulated_no_augment.yml
python main.py with config/simulated/shape/config_simulated_shape_cuboid.yml
python main.py with config/simulated/shape/config_simulated_shape_ellipsoid.yml
python main.py with config/simulated/config_simulated_baseline.yml
python main.py with config/simulated/texture/config_simulated_texture_dark.yml
python main.py with config/simulated/texture/config_simulated_texture_random.yml
python main.py with config/simulated/config_simulated_baseline.yml
python main.py with config/simulated/texture/config_simulated_texture_wm.yml
python main.py with config/simulated/texture/config_simulated_texture_clot.yml
python main.py with config/simulated/texture/config_simulated_texture_clot_wm.yml
python main.py with config/real/config_load_train.yml with dataset_name $DATASET