msahasrabudhe / miccai2020_self_sup_nuclei_seg

Self-supervised nuclei segmentation (MICCAI 2020)
GNU General Public License v3.0
40 stars 9 forks source link

Self-supervised nuclei segmentation

Code to train a self-supervised segmentation network for segmentation of nuclei in histopathology images [1].

Installation

The Anaconda environment is specified in conda_env.yml. The environment can be recreated using

conda env create -f conda_env.yml

Tested with Nvidia GeForce GTX 1080 and GeForce GTX 1080 Ti GPUs, running driver version 410.48 and cuda 10.0, and Pytorch 1.1.0 with torchvision 0.3.0.

Data

Please see the directory data processing for instructions on downloading and using data.

Usage

train.py is the training code which offers three command line parameters.

Example train usage---

python train.py --cfg configs/example.yaml --gpu 0 --output_dir /path/to/output/

Example testing usage---

python test.py --cfg configs/example.yaml --epoch 200 --dataroot /path/to/test/imgs/ --ext tif --gpu 0 --output_dir /path/to/output/

Config files

See configuration options for a description of configuration options

Reference

[1] Self-Supervised Nuclei Segmentation in Histopathological Images Using Attention, Mihir Sahasrabudhe, Stergios Christodoulidis, Roberto Salgado, Stefan Michiels, Sherene Loi, Fabrice Andre, Nikos Paragios, Maria Vakalopoulou, MICCAI 2020 [ PDF ]