tfm.vision.preprocess_ops.resize_and_crop_masks
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Resizes boxes to output size with scale and offset.
tfm.vision.preprocess_ops.resize_and_crop_masks(
masks, image_scale, output_size, offset
)
Args |
masks
|
Tensor of shape [N, H, W, C] representing ground truth masks.
|
image_scale
|
2D float Tensor representing scale factors that apply to
[height, width] of input image.
|
output_size
|
2D Tensor or int representing [height, width] of target
output image size.
|
offset
|
2D Tensor representing top-left corner [y0, x0] to crop scaled
boxes.
|
Returns |
masks
|
Tensor of shape [N, H, W, C] representing the scaled masks.
|
如未另行说明,则本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。如需了解详情,请参阅 Google Developers 网站政策。Java 是 Oracle 和/或其关联公司的注册商标。某些内容已根据 Numpy 许可获得了许可。
最后更新时间 (UTC):2024-02-02。
[null,null,["最后更新时间 (UTC):2024-02-02。"],[],[]]