Skip to content

Commit

Permalink
fix: fix incorrect astype call (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 authored Jul 5, 2024
1 parent be19217 commit f3d3ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/prediction/object_detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def detect_from_image_tf(
dtype=np.float32,
)
.reshape((1, -1))
.astype(np.int) # type: ignore
.astype(int)
)[0]
detection_boxes = np.frombuffer(
response.raw_output_contents[output_index["detection_boxes"]],
Expand Down

0 comments on commit f3d3ff6

Please sign in to comment.