Skip to content

Commit

Permalink
Update Ssd.py
Browse files Browse the repository at this point in the history
ssd's confidence score should be float not numpy
  • Loading branch information
serengil authored Aug 30, 2024
1 parent 14158d3 commit 5e261e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepface/models/face_detection/Ssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ssd_labels(IntEnum):

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]

Expand Down

0 comments on commit 5e261e7

Please sign in to comment.