Skip to content

Commit

Permalink
fix yolov4 EvalWhileTrain bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuedongli1 committed Aug 22, 2023
1 parent 07997fd commit 7ac736b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mindyolo/models/heads/yolov4_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,7 @@ def construct(self, x):
return prediction, box_xy, box_wh
box_xy *= input_shape
box_wh *= input_shape
return ops.concat((box_xy, box_wh, box_confidence, box_probs), -1)
return ops.concat((box_xy.astype(ms.float32),
box_wh.astype(ms.float32),
box_confidence.astype(ms.float32),
box_probs.astype(ms.float32)), -1)

0 comments on commit 7ac736b

Please sign in to comment.