浏览代码

Merge pull request #1337 from linhandev/develop

[Enhancement] Add more info to voc x1<=x2 warning
FlyingQianMM 3 年之前
父节点
当前提交
0402b7a1ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      paddlex/cv/datasets/voc.py

+ 2 - 2
paddlex/cv/datasets/voc.py

@@ -217,8 +217,8 @@ class VOCDetection(Dataset):
 
                     if not (x2 >= x1 and y2 >= y1):
                         logging.warning(
-                            "Bounding box for object {} does not satisfy x1 <= x2 and y1 <= y2, "
-                            "so this object is skipped".format(i))
+                            "Bounding box for object {} does not satisfy xmin {} <= xmax {} and ymin {} <= ymax {}, "
+                            "so this object is skipped. xml file: {}".format(i, x1, x2, y1, y2, xml_file))
                         continue
 
                     gt_bbox[i, :] = [x1, y1, x2, y2]