Git Product home page Git Product logo

cgc-net's Introduction

CGC-Net: Cell Graph Convolutional Network for Grading of Colorectal Cancer Histology Images

by Yanning Zhou, Simon Graham, Navid Alemi Koohbanani, Muhammad Shaban, Pheng-Ann Heng and Nasir Rajpoot.

Introduction

This repository is for our ICCVW2019 paper CGC-Net: Cell Graph Convolutional Network for Grading of Colorectal Cancer Histology Images.

cellgraph A histology image (a) is typically broken into small image patches (b) for cancer grading. We propose to utilise the cell graph (d) that is built from individual nuclei after segmentation (c) to model the entire tissue micro-environment for cancer grading.

Requirements

  • python 3.6.1
  • torch 1.1.0
  • torch-geometric 1.2.1
  • Other packages in requirements.txt

Usage

Prerequisite: dataset images and cell/nuclei instance masks

  1. Clone the repository and set up the folders in the following structure:
 ├── code                   
 |   ├── CGC-Net
 |
 ├── data 
 |   ├── proto
 |        ├──mask (put the instance masks into this folder)    
 |             ├──"your-dataset"
 |                 ├──fold_1
 |                       ├──1_normal
 |                       ├──2_low_grade
 |                       ├──3_high_grade
 |                 ├──fold_2
 |                 ├──fold_3
 |
 |   ├── raw(put the images into this folder)	   
 |        ├──"your-dataset"
 |                 ├──fold_1
 |                       ├──1_normal
 |                       ├──2_low_grade
 |                       ├──3_high_grade
 |                 ├──fold_2
 |                 ├──fold_3
 ├── experiment	
 
  1. Generate appearance features and distance tables.
cd CGC-Net/dataflow
python construct_feature_graph.py

You may need to change name and path in class DataSetting and class GraphSetting(DataSetting).

  1. To speed up training, we do sampling and fix the graph for each epoch before training start. This step can be skipped when you want to do sampling inside dataloader by setting dynamic_graph=True.
cd CGC-Net/dataflow
python prepare_cv_dataset.py

You may need to change the sampling method, times and other parameters acccording to your need.

  1. Train the model:
cd CGC-Net
sh parallel_train.sh

Citation

If CGC-Net is useful for your research, please consider citing:

@inproceedings{zhou2019cgc,
  title={CGC-Net: Cell Graph Convolutional Network for Grading of Colorectal Cancer Histology Images},
  author={Zhou, Yanning and Graham, Simon and Koohbanani, Navid Alemi and Shaban, Muhammad and Heng, Pheng-Ann and Rajpoot, Nasir},
  booktitle={The IEEE International Conference on Computer Vision (ICCV) Workshops}, 
  year={2019}
}

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.