tfm.vision.box_ops.clip_boxes
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Clips boxes to image boundaries.
tfm.vision.box_ops.clip_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 |
clipped_boxes
|
a tensor whose shape is the same as boxes representing the
clipped boxes.
|
Raises |
ValueError
|
If the last dimension of boxes is not 4.
|
如未另行说明,则本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。如需了解详情,请参阅 Google Developers 网站政策。Java 是 Oracle 和/或其关联公司的注册商标。某些内容已根据 Numpy 许可获得了许可。
最后更新时间 (UTC):2024-02-02。
[null,null,["最后更新时间 (UTC):2024-02-02。"],[],[]]