Skip to content

Commit

Permalink
remove useless str convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Oct 26, 2023
1 parent fe065ec commit 8cf337e
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 @@ -256,7 +256,7 @@ def _update_states(self, frame: Image.Image, preds: np.array, cam_key: str) -> b
output_predictions = output_predictions[:5, :] # max 5 bbox

self._states[cam_key]["last_predictions"].append(
(frame, preds, str(json.dumps(output_predictions.tolist())), datetime.utcnow().isoformat(), False)
(frame, preds, json.dumps(output_predictions.tolist()), datetime.utcnow().isoformat(), False)
)

# update state
Expand Down

0 comments on commit 8cf337e

Please sign in to comment.