diff --git a/ppdet/modeling/layers.py b/ppdet/modeling/layers.py index 8238e89734909b23dd0956b838d18d7f8cf019de..3965e98cbf5a359540507506c15eed0669d03839 100644 --- a/ppdet/modeling/layers.py +++ b/ppdet/modeling/layers.py @@ -832,7 +832,6 @@ class TTFBox(object): # batch size is 1 scores_r = paddle.reshape(scores, [cat, -1]) topk_scores, topk_inds = paddle.topk(scores_r, k) - topk_scores, topk_inds = paddle.topk(scores_r, k) topk_ys = topk_inds // width topk_xs = topk_inds % width