From ea00f8f0d30ad0458999ea02331817a420ab885d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Fri, 5 Jul 2024 16:18:02 +0200 Subject: [PATCH] fix: fix incorrect astype call --- robotoff/prediction/object_detection/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotoff/prediction/object_detection/core.py b/robotoff/prediction/object_detection/core.py index 7477191498..05089a6be1 100644 --- a/robotoff/prediction/object_detection/core.py +++ b/robotoff/prediction/object_detection/core.py @@ -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"]],