Coder Social home page Coder Social logo

tissue-image-segmentation's Introduction

Tissue-Image-Segmentation

unofficial re-implementation of popular tissue image segmentation models

Support Model:

  • UNet
  • Dist
  • DCAN
  • MicroNet
  • FullNet
  • CDNet

Dataset Prepare

Please check this doc

Supported Dataset:

  • MoNuSeg;
  • CoNSeP;
  • CPM17;
  • CoNIC;

Installation

  1. Install MMCV-full (Linux recommend): pip install MMCV-full==1.3.13;
  2. Install requirements package: pip install -r requirements.txt;
  3. Download tiseg: git clone https://github.com/sennnnn/Torch-Image-Segmentation;
  4. Install tiseg: pip install -e .;

Usage

Training

# single gpu training
python tools/train.py [config_path]
# multiple gpu training
./tools/dist_train.sh [config_path] [num_gpu]
# demo (cdnet for CPM17 dataset on 1 gpu)
python tools/train.py configs/unet/unet_vgg16_radam-lr5e-4_bs16_256x256_7k_cpm17.py
# demo (unet for CPM17 dataset on 4 gpu)
./tools/dist_train.py configs/unet/unet_vgg16_radam-lr5e-4_bs16_256x256_7k_cpm17.py 4

Evaluation

# single gpu evaluation
python tools/test.py [config_path]
# multiple gpu evaluation
./tools/dist_test.py [config_path] [num_gpu]

Thanks

This repo follow the design mode of mmsegmentation & detectron2.

tissue-image-segmentation's People

Contributors

clownrat6 avatar fblogy avatar honglianghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tissue-image-segmentation's Issues

why is the first channel of the sem_logit map set to 3?

When calculating loss, the truth value sem_gt is a matrix of size (256, 256) with values of 0 and 1, while sem_logit is a matrix of size (3, 256, 256). If there are only two classes, nuclei and background, why is the first channel of the prediction map set to 3?

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.