Coder Social home page Coder Social logo

conic's Introduction

CoNIC: Colon Nuclei Identification and Counting Challenge

In this repository we provide code and example notebooks to assist participants start their algorithm development for the CoNIC challenge. In particular we provide:

  • Evaluation code

    • Segmentation & classification: multi-class panoptic quality (mPQ+)
    • Predicting cellular composition: multi-class coefficient of determination (R2)
  • Example notebooks

    • Data reading and simple dataset statistics
    • HoVer-Net baseline inference

NEWS: We have now released the training code that we used to train the baseline method (HoVer-Net). For this, we created a new branch, named conic in the original HoVer-Net repository. Click on this link to access the code!

Output format for metric calculation

To appropriately calculate the metrics, ensure that your output is in the following format:

  • Instance Segmentation and classification map:

    • .npy array of size Nx256x256x2, where N is the number of processed patches.
    • First channel is the instance segmentation map containing values ranging from 0 (background) to n (number of nuclei).
    • Second channel is the classification map containing values ranging from 0 (background) to 6 (number of classes in the dataset).
  • Composition prediction:

    • Single .csv file where the column headers should be:
      • neutrophil
      • epithelial
      • lymphocyte
      • plasma
      • eosinophil
      • connective
    • To make sure the calculation is done correctly, ensure that the row ordering is the same for both the ground truth and prediction csv files.

Metric calculation

To get the stats for segmentation and classification, run:

python compute_stats.py --mode="seg_class" --pred=<path_to_results> --true=<path_to_ground_truth>

To get the stats for cellular composition prediction, run:

python compute_stats.py --mode="regression" --pred=<path_to_results> --true=<path_to_ground_truth>

conic's People

Contributors

simongraham avatar vqdang 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.