helper

Copyright (c) 2025 Sima Technologies, Inc.

SPDX-License-Identifier: Apache-2.0

Classes

YoloHelpers

Yolo Helper class

Functions

postprocess(β†’Β numpy.ndarray)

load_threshold(path)

Helper function to load the threshold

load_quantile(path)

Helper function to load the quantile

load_mean_std(path)

Helper function to load the mean and standard deviation

merge_levels(β†’Β numpy.ndarray)

effad_postproc(β†’Β dict)

Module Contents

class helper.YoloHelpers[source]

Yolo Helper class

static nms(boxes, scores, iou_threshold)[source]
static bridge(image: numpy.ndarray, mask: numpy.ndarray, **kwds) numpy.ndarray[source]
static flip_image(image: numpy.array) bool[source]
static compute_iou(box, boxes)[source]
static xywh2xyxy(x)[source]
static sigmoid(x)[source]
static rescale_boxes(boxes, input_shape, image_shape)[source]
static extract_boxes(box_predictions, img_height, img_width)[source]
static process_box_output(box_output, img_height=3024, img_width=4032, conf_thres=0.5, iou_thres=0.5, num_masks=32)[source]
static process_mask_output(mask_predictions, mask_output, boxes, img_height, img_width)[source]
helper.postprocess(outputs: List[numpy.ndarray], input_height, input_width) numpy.ndarray[source]
helper.load_threshold(path: pathlib.Path)[source]

Helper function to load the threshold

helper.load_quantile(path: pathlib.Path)[source]

Helper function to load the quantile

helper.load_mean_std(path: pathlib.Path)[source]

Helper function to load the mean and standard deviation

helper.merge_levels(preds: List[numpy.ndarray]) numpy.ndarray[source]
helper.effad_postproc(yolo_output: dict, effad_output: dict, cls_threshold: float) dict[source]