module documentation

Open Images-style detection evaluation.

Copyright 2017-2025, Voxel51, Inc.

Class OpenImagesDetectionResults Class that stores the results of an Open Images detection evaluation.
Class OpenImagesEvaluation Open Images-style evaluation.
Class OpenImagesEvaluationConfig Open Images-style evaluation config.
Function _build_plain_hierarchy Expands tree hierarchy representation to parent-child dictionary.
Function _compute_AP Undocumented
Function _compute_matches Undocumented
Function _compute_pr_curves Undocumented
Function _copy_labels Undocumented
Function _expand_detection_hierarchy Undocumented
Function _expand_label_hierarchy Undocumented
Function _interpolate_pr Undocumented
Function _open_images_evaluation_setup Undocumented
Function _open_images_evaluation_single_iou Undocumented
Function _update_dict Updates dictionary with update content
Constant _NO_MATCH_ID Undocumented
Constant _NO_MATCH_IOU Undocumented
def _build_plain_hierarchy(hierarchy, skip_root=False): (source)

Expands tree hierarchy representation to parent-child dictionary.

Parameters
hierarchylabels hierarchy
skip_root:Falseif true skips root from the processing (done for the case when all classes under hierarchy are collected under virtual node)
Returns
a tuple of
  • keyed_parent: dictionary of parent - all its children nodes
  • keyed_child: dictionary of children - all its parent node
  • children: all children of the current node
def _compute_AP(precision, recall): (source)

Undocumented

def _compute_matches(cats, pred_ious, iou_thresh, iscrowd, eval_key, id_key, iou_key): (source)

Undocumented

def _compute_pr_curves(matches, classes=None): (source)

Undocumented

def _copy_labels(labels): (source)

Undocumented

def _expand_detection_hierarchy(cats, obj, config, label_type): (source)

Undocumented

def _expand_label_hierarchy(labels, config, expand_child=True): (source)

Undocumented

def _interpolate_pr(precision, recall, thresholds=None, num_points=101): (source)

Undocumented

def _open_images_evaluation_setup(gts, preds, id_key, iou_key, config, pos_labs, neg_labs, max_preds=None): (source)

Undocumented

def _open_images_evaluation_single_iou(gts, preds, eval_key, config, pos_labs, neg_labs): (source)

Undocumented

def _update_dict(initial_dict, update): (source)

Updates dictionary with update content

Parameters
initial_dictinitial dictionary
updateupdated dictionary
_NO_MATCH_ID: str = (source)

Undocumented

Value
''
_NO_MATCH_IOU = (source)

Undocumented

Value
None