datumaro.cli.util.compare#

Classes

DistanceCompareVisualizer(comparator, save_dir)

class datumaro.cli.util.compare.DistanceCompareVisualizer(comparator, save_dir: str, output_format: None | str | OutputFormat = None)[source]#

Bases: object

class OutputFormat(value)[source]#

Bases: Enum

An enumeration.

simple = 1#
tensorboard = 2#
DEFAULT_FORMAT = 1#
save(a: IDataset, b: IDataset)[source]#
update_label_confusion(label_diff)[source]#
update_bbox_confusion(diff)[source]#
update_polygon_confusion(diff)[source]#
update_mask_confusion(diff)[source]#
classmethod draw_text_with_background(frame, text, origin, font=None, scale=1.0, color=(0, 0, 0), thickness=1, bgcolor=(1, 1, 1))[source]#
draw_detection_roi(frame, x, y, w, h, label, conf, color)[source]#
get_a_label(label_id)[source]#
get_b_label(label_id)[source]#
draw_bbox(img, shape, label, color)[source]#
get_label_diff_file()[source]#
save_item_label_diff(item_a, item_b, diff)[source]#
save_item_bbox_diff(item_a, item_b, diff)[source]#
save_as_tensorboard(img, name)[source]#
save_conf_matrix(conf_matrix, filename)[source]#