diff --git a/ppdet/modeling/layers.py b/ppdet/modeling/layers.py index ba9a385e145040fb3301e1d670b2c1e33dc1c123..4afc7f560d1b69ed690eec05d53efd40283a33d5 100644 --- a/ppdet/modeling/layers.py +++ b/ppdet/modeling/layers.py @@ -749,7 +749,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