tfm.vision.box_ops.jitter_boxes

Jitters the box coordinates by some noise distribution.

boxes a tensor whose last dimension is 4 representing the coordinates of boxes in ymin, xmin, ymax, xmax order.
noise_scale a python float which specifies the magnitude of noise. The rule of thumb is to set this between (0, 0.1]. The default value is found to mimic the noisy detections best empirically.

jittered_boxes a tensor whose shape is the same as boxes representing the jittered boxes.

ValueError If the last dimension of boxes is not 4.