From ed7f46800c159518e0cf51780c24f5718f285faa Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 6 Nov 2024 15:12:26 +0100 Subject: [PATCH] numpy2.0 comp fix --- references/detection/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/references/detection/utils.py b/references/detection/utils.py index 1a84f2340..265f63ff3 100644 --- a/references/detection/utils.py +++ b/references/detection/utils.py @@ -28,7 +28,7 @@ def plot_samples(images, targets: List[Dict[str, np.ndarray]]) -> None: for box in boxes: if boxes.ndim == 3: - cv2.fillPoly(target, [np.int0(box)], 1) + cv2.fillPoly(target, [np.intp(box)], 1) else: target[int(box[1]) : int(box[3]) + 1, int(box[0]) : int(box[2]) + 1] = 1 if nb_samples > 1: