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

fix postprocess (#3108)

上级 a0663646
......@@ -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.
先完成此消息的编辑!
想要评论请 注册