Fixed np.float issue.

This commit is contained in:
Emiliana 2023-02-13 11:49:15 +01:00 • committed by GitHub
parent bcd11597e5
commit 6f24efc4f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -762,7 +762,7 @@ class Tracker():
return (avg_conf, np.array(lms)) return (avg_conf, np.array(lms))
def estimate_depth(self, face_info): def estimate_depth(self, face_info):
lms = np.concatenate((face_info.lms, np.array([[face_info.eye_state[0][1], face_info.eye_state[0][2], face_info.eye_state[0][3]], [face_info.eye_state[1][1], face_info.eye_state[1][2], face_info.eye_state[1][3]]], np.float)), 0) lms = np.concatenate((face_info.lms, np.array([[face_info.eye_state[0][1], face_info.eye_state[0][2], face_info.eye_state[0][3]], [face_info.eye_state[1][1], face_info.eye_state[1][2], face_info.eye_state[1][3]]], np.float32)), 0)
image_pts = np.array(lms)[face_info.contour_pts, 0:2] image_pts = np.array(lms)[face_info.contour_pts, 0:2]