GithubHelp home page GithubHelp logo

dongbo811 / miccai2020_self_sup_nuclei_seg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msahasrabudhe/miccai2020_self_sup_nuclei_seg

0.0 0.0 0.0 3.98 MB

Self-supervised nuclei segmentation (MICCAI 2020)

License: GNU General Public License v3.0

Python 100.00%

miccai2020_self_sup_nuclei_seg's Introduction

Self-supervised nuclei segmentation

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

  • train.py contains training code and defines command line options.
  • datasets.py defines datasets used to read images.
  • models.py defines relevant models (attention network and scale network).
  • utils.py defines extra useful functions.
  • configs/ defines .yaml configuration files to set experiment parameters.

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.

  • --cfg specifies the configuration file to use.
  • --gpu specifies which GPU to use. A value of -1 implies no GPU.
  • --output_dir specifies directory to record results. If the configuration file is name.yaml, results will be recorded in <output_dir>/name.

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 ]

miccai2020_self_sup_nuclei_seg's People

Contributors

msahasrabudhe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.