昇腾社区首页
中文
注册
开发者
下载

(beta)torch_npu.npu_iou

产品支持情况

产品 是否支持
[object Object]Atlas A3 训练系列产品[object Object]
[object Object]Atlas A2 训练系列产品[object Object]
[object Object]Atlas 推理系列产品[object Object]
[object Object]Atlas 训练系列产品[object Object]

功能说明

根据ground-truth和预测区域计算交并比(IoU)或前景交叉比(IoF)。

函数原型

[object Object]

参数说明

  • bboxes (Tensor):必选参数,输入张量。
  • gtboxes (Tensor):必选参数,输入张量。
  • mode (int):可选参数,0为IoU模式,1为IoF模式。默认值为0。

调用示例

[object Object]