mindspore/docs/api/api_python/ops/mindspore.ops.BoundingBoxDe...

27 lines
1.2 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.BoundingBoxDecode
===============================
.. py:class:: mindspore.ops.BoundingBoxDecode(max_shape, means=(0.0, 0.0, 0.0, 0.0), stds=(1.0, 1.0, 1.0, 1.0), wh_ratio_clip=0.016)
解码边界框位置信息。
算子的功能是计算偏移量此算子将偏移量转换为Bbox用于在后续图像中标记目标等。
参数:
- **max_shape** (tuple) - 解码框计算的上限值。
- **means** (tuple) - 计算 `deltas` 的均值。默认值0.0, 0.0, 0.0, 0.0)。
- **stds** (tuple) - 计算 `deltas` 的标准差。默认值1.0, 1.0, 1.0, 1.0)。
- **wh_ratio_clip** (float) - 解码框计算的宽高比限制。默认值0.016。
输入:
- **anchor_box** (Tensor) - 锚框。锚框的shape必须为 :math:`(n,4)`
- **deltas** (Tensor) - 框的增量。它的shape与 `anchor_box` 相同。
输出:
Tensor解码框。它的数据类型和shape与 `anchor_box` 相同。
异常:
- **TypeError** - 如果 `means``stds``max_shape` 不是tuple。
- **TypeError** - 如果 `wh_ratio_clip` 不是float。
- **TypeError** - 如果 `anchor_box``deltas` 不是Tensor。