From 5e261e709c3020d97e0f9970c20f4579fc541d45 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 30 Aug 2024 07:58:51 +0100 Subject: [PATCH] Update Ssd.py ssd's confidence score should be float not numpy --- deepface/models/face_detection/Ssd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepface/models/face_detection/Ssd.py b/deepface/models/face_detection/Ssd.py index c388a59..cc02fb7 100644 --- a/deepface/models/face_detection/Ssd.py +++ b/deepface/models/face_detection/Ssd.py @@ -105,7 +105,7 @@ class SsdClient(Detector): resp = [] for face in faces: - confidence = face[2] + confidence = float(face[2]) x, y, w, h = map(int, face[margins]) detected_face = img[y : y + h, x : x + w]