View source on GitHub |
Converts bounding boxes to bitmasks.
tfm.vision.box_ops.bbox2mask(
bbox: tf.Tensor,
*,
image_height: int,
image_width: int,
dtype: tf.DType = tf.bool
) -> tf.Tensor
Returns | |
---|---|
A tensor in shape (..., height, width) which stores the bitmasks created
from the bounding boxes. For example:
|