Skip to main content

A Python Library to Evaluate Interactive Segmentation Models

Project description

isegeval

This is a library to evaluate click-based interactive segmentation models. isegeval could evaluate the number of click (NoC) performance of the given model on the given dataset.

Usage

You could evaluate your model as follows. See notebooks for more detail.

from isegeval import evaluate
from isegeval.core import ModelFactory


# Each item is the tuple of an image and its correspoinding ground truth mask.
dataset: Sequence[tuple[np.ndarray, np.ndarray]] = YourDataset()

# A factory of your model that you want to evaluate. The factory should implement get_model method.
model_factory: ModelFactory = YourModelFactory()

evaluate(dataset, model_factory)

Installation

pip install isegeval

Project details


Download files

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

Source Distribution

isegeval-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

isegeval-0.1.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

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