<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/box_ops.py#L106-L144) |

Jitters the box coordinates by some noise distribution.

    tfm.vision.box_ops.jitter_boxes(
        boxes, noise_scale=0.025
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `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. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `jittered_boxes` | a tensor whose shape is the same as `boxes` representing the jittered boxes. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If the last dimension of boxes is not 4. |

<br />