A multiple branch network that performs nuclear instance segmentation and classification within a single network. The network leverages the horizontal and vertical distances of nuclear pixels to their centres of mass to separate clustered cells. A dedicated up-sampling branch is used to classify the nuclear type for each segmented instance.
Our paper:
Original HoVer-Net papers:
Link to Medical Image Analysis paper
Use the following repository to set up environment:
Inside docker container
Preparation:
- Edit
generate.sh - Run
generate.shfor creatingconfig.yml - Consider running
misc/proc_consep_ann.pyandmisc/proc_pannuke_ann.pyonce for dataset label preparation
Overall pipeline consits of running scripts consecutively.
- (optional)
stain_norm.py- Normalize dataset extract_patches.py- Extract smaller patches for trainingtrain.py- Train the modelinfer.py- Perform inferenceprocess.py- Perform post-processing- (optional)
compute_stats.py- Evaluate results - (optional)
export_model.py- Export model as (.pb) and as checkpoint
misc/info.pycontains predefined variables, specific to dataset.config.pyis the configuration file.src/contains executable files used to run the model.loader/contains scripts for data loading and self implemented augmentation functions.metrics/contains evaluation code.misc/contains util and data preparation scripts.model/contains scripts that define the architecture of the segmentation models.opt/contains scripts that define the model hyperparameters.postproc/contains post processing utils.metrics/counts.pyis the file we used for counting TILs and Cancer cells for patients.
If any part of this code is used, please give appropriate citation to original authors paper.
BibTex entry:
@article{graham2019hover,
title={Hover-net: Simultaneous segmentation and classification of nuclei in multi-tissue histology images},
author={Graham, Simon and Vu, Quoc Dang and Raza, Shan E Ahmed and Azam, Ayesha and Tsang, Yee Wah and Kwak, Jin Tae and Rajpoot, Nasir},
journal={Medical Image Analysis},
pages={101563},
year={2019},
publisher={Elsevier}
}
This project is licensed under the MIT License - see the LICENSE file for details