Skip to content

csccsccsccsc/evaluate-instance-segmentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Evaluation scripts for instance segmentation

Developed for nuclei instances segmentation in 2d and 3d. Computes average precision (AP = TP/(TP+FP+FN))

installation:

The recommended way is to install it into your conda/python virtual environment.

conda activate <<your-env-name>>
git clone https://github.com/Kainmueller-Lab/evaluate-instance-segmentation
cd evaluate-instance-segmentation
pip install -e .

usage:

    python evaluate.py --res_file <pred-file> --res_key <hdf-key> --gt_file <gt-file> --gt_key <hdf-key> --out_dir output --background 0

(--res_key and --gt_key only required for hdf or zarr input)

By default hungarian matching is used to compute the matches of prediction and ground truth (can be disabled with --no_use_linear_sum_assignment.
AP is computed for multiple thresholds.

output:

  • evaluation metrics are written to toml-file and returned as dict

About

Evaluation scripts for nuclei instance segmentation in 2d and 3d

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Shell 1.0%