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"]],