Skip to content

Commit

Permalink
prevent empty (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Aug 16, 2023
1 parent c04bff3 commit 94a0947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroengine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _update_states(self, frame: Image.Image, preds: np.array, cam_key: str) -> b
conf = np.max(best_boxes_scores) / self.nb_consecutive_frames

# if current predictions match with combine predictions send match else send combine predcition
ious = box_iou(combine_predictions[:, :4], preds[:, :4])[0]
ious = box_iou(combine_predictions[:, :4], preds[:, :4])
if np.sum(ious) > 0:
output_predictions = preds
else:
Expand Down

0 comments on commit 94a0947

Please sign in to comment.