Skip to main content

Panoptic Quality (PQ) computation for binary masks.

Project description

PyPI version panoptica Documentation Status

panoptica

Computing instance-wise segmentation quality metrics for 2D and 3D semantic- and instance segmentation maps.

Features

The package provides three core modules:

  1. Instance Approximator: instance approximation algorithms to extract instances from semantic segmentation maps/model outputs.
  2. Instance Matcher: matches predicted instances with reference instances.
  3. Instance Evaluator: computes segmentation and detection quality metrics for pairs of predicted - and reference segmentation maps.

workflow_figure

Installation

With a Python 3.10+ environment, you can install panoptica from pypi.org

pip install panoptica

Use cases and tutorials

For tutorials featuring various use cases, see: BrainLesion/tutorials/panoptica

Semantic Segmentation Input

semantic_figure

Jupyter notebook tutorial

Although an instance-wise evaluation is highly relevant and desirable for many biomedical segmentation problems, they are still addressed as semantic segmentation problems due to the lack of appropriate instance labels.

This tutorial leverages all three modules of panoptica: instance approximation, -matching and -evaluation.

Unmatched Instances Input

unmatched_instance_figure

Jupyter notebook tutorial

It is a common issue that instance segmentation outputs feature good outlines but mismatched instance labels. For this case, the matcher module can be utilized to match instances and the evaluator to report metrics.

Matched Instances Input

matched_instance_figure

Jupyter notebook tutorial

If your predicted instances already match the reference instances, you can directly compute metrics using the evaluator module.

Citation

If you use panoptica in your research, please cite it to support the development!

TBA

upcoming citation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

panoptica-0.5.16-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file panoptica-0.5.16-py3-none-any.whl.

File metadata

  • Download URL: panoptica-0.5.16-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for panoptica-0.5.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0bec62e5a5a322b3282d4cfe20c587b2a4bf9182b6c8ba7ec500b8e86a11e79b
MD5 226d455167be9a9b23bc83ae1a3befe7
BLAKE2b-256 f4588cd168162cb076e66e1d463d5489b54539719ad38744ac6a3148a3e59fd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page