Skip to content

Repository files navigation

Riptide

Installation

poetry install

Getting Started

For any quantitative evaluation, you need:

  • Ground truths (targets)
  • Predictions

Riptide allows you to quickly evaluate object detection models using the following API:

from riptide.detection.evaluation import ObjectDetectionEvaluator

evaluator = ObjectDetectionEvaluator.from_dict(pt_dict_file) # .pt results
evaluator = ObjectDetectionEvaluator.from_coco(coco_pred_file, coco_gt_file) # coco predictions and targets

Report Generation

Riptide supports HTML report generation using jinja2. Here is a minimal example of generating a report from an evaluator object:

from riptide.detection.evaluation import ObjectDetectionEvaluator
from riptide.reports import HtmlReport

evaluator = ObjectDetectionEvaluator.from_dicts(
    targets_dict_file="targets.pt",
    predictions_dict_file="predictions.pt",
    image_dir="path/to/images",
    conf_threshold=0.5,
)
print(evaluator.summarize())
report = HtmlReport(evaluator).render("path/to/output/folder")

Read More - Evaluation Report

Documentation

About

Object detection evaluation suite with custom metrics, failure analysis based on TIDE, and detailed report generation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages