You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
He mentioned this should be used not to get any exception.
ifalign:
# Extract landmarkskeypoints_xy=result.keypoints.xy# Extract the keypoints coordinateskeypoints_conf=result.keypoints.conf# Extract the confidence values for keypointsleft_eye= (keypoints_xy[0][0], keypoints_conf[0][0]) # Tuple of x,y and confidence for left eyeright_eye= (keypoints_xy[0][1], keypoints_conf[0][1]) # Tuple of x,y and confidence for right eye# Check the landmarks confidence before alignmentif (left_eye[1] >LANDMARKS_CONFIDENCE_THRESHOLDandright_eye[1] >LANDMARKS_CONFIDENCE_THRESHOLD):
detected_face=FaceDetector.alignment_procedure(
detected_face, left_eye[0].cpu(), right_eye[0].cpu()
)
@Vincent-Stragier you may have a comment. Besides, why we used specific github version instead of pip install ultralytics
The text was updated successfully, but these errors were encountered:
I suppose there are some differences between the data structures used in the different version. I personally think it would be better to migrate to the original Ultralytics source. However, I'd simplified the changes a bit:
ifalign:
# Tuple of x, y and confidence for left eyeleft_eye=result.keypoints.xy[0][0], result.keypoints.conf[0][0]
# Tuple of x, y and confidence for right eyeright_eye=result.keypoints.xy[0][1], result.keypoints.conf[0][1]
# Check the landmarks confidence before alignmentif (left_eye[1] >LANDMARKS_CONFIDENCE_THRESHOLDandright_eye[1] >LANDMARKS_CONFIDENCE_THRESHOLD):
detected_face=FaceDetector.alignment_procedure(
detected_face, left_eye[0].cpu(), right_eye[0].cpu()
)
Laird Foret raised this issue. He is using yolov8 with exact version '8.0.122'
Current code block:
He mentioned this should be used not to get any exception.
@Vincent-Stragier you may have a comment. Besides, why we used specific github version instead of
pip install ultralytics
The text was updated successfully, but these errors were encountered: