From a065c4c0eb95e1a201615304eaa72f36bc91d699 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Fri, 21 May 2021 15:52:27 +0800 Subject: [PATCH] fix postprocess (#3109) --- ppdet/modeling/post_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/modeling/post_process.py b/ppdet/modeling/post_process.py index cc5116eba..6ab9da6f4 100644 --- a/ppdet/modeling/post_process.py +++ b/ppdet/modeling/post_process.py @@ -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')) -- GitLab