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

fix postprocess (#3109)

上级 b969cb9f
......@@ -90,7 +90,7 @@ class BBoxPostProcess(object):
"""
if bboxes.shape[0] == 0:
bbox_pred = paddle.to_tensor(
bboxes = paddle.to_tensor(
np.array(
[[-1, 0.0, 0.0, 0.0, 0.0, 0.0]], dtype='float32'))
bbox_num = paddle.to_tensor(np.array([1], dtype='int32'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册