NucleiSegHE
H&E ROI-Level and WSI-Level Nuclei Segmentation with HoVer-Net
Install / Use
/learn @cpathology/NucleiSegHEREADME
NucleiSegHE
H&E ROI-Level and WSI-Level Nuclei Segmentation with HoVer-Net - pretrained model and demo ROIs/WSIs.

Environment Configurations
a. Prepare docker image
- Build from Dockerfile
$ docker build --platform linux/x86_64 -t nucleiseghe:pchen6 .
- Or pull from Docker Hub
$ docker pull pingjunchen/nucleiseghe:pchen6
$ docker tag pingjunchen/nucleiseghe:pchen6 nucleiseghe:pchen6
b. Setup docker container
- Start docker container (specify CODE_ROOT & DATA_ROOT)
$ docker run -it --rm --user $(id -u):$(id -g) \
-v ${CODE_ROOT}:/App/NucleiSegHE \
-v ${DATA_ROOT}:/Data \
--shm-size=32G --gpus '"device=0"' --cpuset-cpus=0-15 \
--name nucleiseghe_pchen6 nucleiseghe:pchen6
- For example:
$ docker run -it --rm --user $(id -u):$(id -g) \
-v /rsrch1/ip/pchen6/Codes/CHEN/NucleiSegHE:/App/NucleiSegHE \
-v /rsrch1/ip/pchen6/NucleiSegData:/Data \
--shm-size=32G --gpus '"device=0"' --cpuset-cpus=0-15 \
--name nucleiseghe_pchen6 nucleiseghe:pchen6
ROI-Level Nuclei Seg (support png)
Inside the docker container, enter /App/NucleiSegHE
# Nuclei Segmentation
$ python 01_roi_seg_nuclei.py --dataset LungNYU
# Nuclei Overlay
$ python 02_roi_nuclei_overlay.py --dataset LungNYU
WSI-Level Nuclei Seg (support svs/tiff)
Inside the docker container, enter /App/NucleiSegHE
# Split WSI into smaller blocks (5000 x 5000)
$ python 00_wsi_split_blocks.py --dataset CLL
# Block-wise WSI nuclei segmentation and merging
$ python 01_wsi_seg_nuclei.py --dataset CLL
# Nuclei overlay to the entire WSI
$ python 02_wsi_nuclei_overlay.py --dataset CLL
Acknowledgements
This repo is adapted from following codes
Please consider citing the following two papers if this repo was used for nuclei segmentation in your research
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
isf-agent
a repo for an agent that helps researchers apply for isf funding
