Converts boxes normalized by [height, width] to pixel coordinates.
tfm.vision.box_ops.denormalize_boxes(
boxes, image_shape
)
Args |
boxes
|
a tensor whose last dimension is 4 representing the coordinates
of boxes in ymin, xmin, ymax, xmax order.
|
image_shape
|
a list of two integers, a two-element vector or a tensor such
that all but the last dimensions are broadcastable to boxes . The last
dimension is 2, which represents [height, width].
|
Returns |
denormalized_boxes
|
a tensor whose shape is the same as boxes representing
the denormalized boxes.
|
Raises |
ValueError
|
If the last dimension of boxes is not 4.
|