提交 39a14e3f 编写于 作者: P Peter Hawkins 提交者: TF Object Detection Team

[NumPy] Fix test failures under NumPy 1.25.

PiperOrigin-RevId: 550654121
上级 392c41fd
......@@ -149,7 +149,7 @@ def boxes_to_box_components(bboxes):
ymax_list = []
xmax_list = []
for bbox in bboxes:
if bbox != []: # pylint: disable=g-explicit-bool-comparison
if len(bbox) != 0:
bbox = np.array(bbox).astype(np.float32)
ymin, xmin, ymax, xmax = np.split(bbox, 4, axis=1)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册