首页 PaddleCV 帖子详情
YOLO3算法loU框标-1问题
收藏
快速回复
PaddleCV 问答目标检测 1287 2
YOLO3算法loU框标-1问题
收藏
快速回复
PaddleCV 问答目标检测 1287 2

def label_objectness_ignore(label_objectness, iou_above_thresh_indices):
# 注意:这里不能简单的使用 label_objectness[iou_above_thresh_indices] = -1,
# 这样可能会造成label_objectness为1的点被设置为-1了
# 只有将那些被标注为0,且与真实框IoU超过阈值的预测框才被标注为-1
negative_indices = (label_objectness < 0.5)
ignore_indices = negative_indices * iou_above_thresh_indices
label_objectness[ignore_indices] = -1
return label_objectness

请问怎么理解ignore_indices = negative_indices * iou_above_thresh_indices?

0
收藏
回复
全部评论(2)
时间顺序
金龙鱼
#2 回复于2021-08

在负样本中,如果有iou大于阈值的,就认为这些样本不是负样本

0
回复
金龙鱼
#3 回复于2021-08

而是非正非负样本,在算损失函数时非正非负样本好像不记入

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户