From d375962cab66849033787fcc6ce7120d86f1a6ce Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Thu, 26 Dec 2024 12:34:13 +0000 Subject: [PATCH] fastmtcnn's coordinates casted to int --- deepface/models/face_detection/FastMtCnn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepface/models/face_detection/FastMtCnn.py b/deepface/models/face_detection/FastMtCnn.py index bc792a4..5259036 100644 --- a/deepface/models/face_detection/FastMtCnn.py +++ b/deepface/models/face_detection/FastMtCnn.py @@ -92,4 +92,4 @@ def xyxy_to_xywh(regions: Union[list, tuple]) -> tuple: x, y, x_plus_w, y_plus_h = regions[0], regions[1], regions[2], regions[3] w = x_plus_w - x h = y_plus_h - y - return (x, y, w, h) + return (int(x), int(y), int(w), int(h))