Module: tfm.vision.box_ops

Stay organized with collections Save and categorize content based on your preferences.

Box related ops.

Functions

bbox2mask(...): Converts bounding boxes to bitmasks.

bbox_generalized_overlap(...): Calculates the GIOU between proposal and ground truth boxes.

bbox_overlap(...): Calculates the overlap between proposal and ground truth boxes.

box_matching(...): Match boxes to groundtruth boxes.

clip_boxes(...): Clips boxes to image boundaries.

compute_outer_boxes(...): Compute outer box encloses an object with a margin.

cycxhw_to_yxyx(...): Converts box center coordinates plus height and width terms to corner.

decode_boxes(...): Decode boxes.

denormalize_boxes(...): Converts boxes normalized by [height, width] to pixel coordinates.

encode_boxes(...): Encode boxes to targets.

filter_boxes(...): Filter and remove boxes that are too small or fall outside the image.

filter_boxes_by_scores(...): Filter and remove boxes whose scores are smaller than the threshold.

gather_instances(...): Gather instances by indices.

get_non_empty_box_indices(...): Get indices for non-empty boxes.

horizontal_flip_boxes(...): Flips normalized boxes horizontally.

jitter_boxes(...): Jitter the box coordinates by some noise distribution.

normalize_boxes(...): Converts boxes to the normalized coordinates.

top_k_boxes(...): Sort and select top k boxes according to the scores.

yxyx_to_cycxhw(...): Converts box corner coordinates to center plus height and width terms.

yxyx_to_xywh(...): Converts boxes from ymin, xmin, ymax, xmax to xmin, ymin, width, height.

BBOX_XFORM_CLIP 4.135166556742356
EPSILON 1e-08