未验证 提交 08c993d7 编写于 作者: W wangguanzhong 提交者: GitHub

fix mask target (#1835)

上级 e61ab3d8
......@@ -340,7 +340,7 @@ def generate_mask_target(im_info, gt_classes, is_crowd, gt_segms, rois,
x, y = polys[ii]
if (x == -1 and y == -1):
continue
elif (x >= 0 and y >= 0):
elif (x >= 0 or y >= 0):
new_poly.append([x, y]) # array, one poly
if len(new_poly) > 0:
gt_segs.append(new_poly)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册