mindspore/docs/api/api_python/ops/mindspore.ops.BoundingBoxEn...

24 lines
998 B
ReStructuredText
Raw Normal View History

mindspore.ops.BoundingBoxEncode
================================
.. py:class:: mindspore.ops.BoundingBoxEncode(means=(0.0, 0.0, 0.0, 0.0), stds=(1.0, 1.0, 1.0, 1.0))
编码边界框位置信息。
算子的功能是计算预测边界框和真实边界框之间的偏移,并将此偏移作为损失变量。
参数:
2022-10-29 17:50:20 +08:00
- **means** (tuple) - 计算编码边界框的均值。默认值0.0, 0.0, 0.0, 0.0)。
- **stds** (tuple) - 计算增量的标准偏差。默认值1.0, 1.0, 1.0, 1.0)。
输入:
2022-10-29 17:50:20 +08:00
- **anchor_box** (Tensor) - 锚框。锚框的shape必须为 :math:`(n, 4)`
- **groundtruth_box** (Tensor) - 真实边界框。它的shape与锚框相同。
输出:
Tensor编码边界框。数据类型和shape与输入 `anchor_box` 相同。
异常:
- **TypeError** - 如果 `means``stds` 不是tuple。
- **TypeError** - 如果 `anchor_box``groundtruth_box` 不是Tensor。