Explorar el Código

Include bb value in warning message

Include bb value in warning message
Lin Han hace 3 años
padre
commit
b8be26bff0
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      paddlex/cv/datasets/voc.py

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

@@ -217,9 +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. This error can be caused by specifying "
-                            "image width and height in wrong order. xml file: {}".format(i, xml_file))
+                            "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]