From 6f24efc4f58eb7cca47ec2146d934eabcc207e46 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:49:15 +0100 Subject: [PATCH 1/2] Fixed np.float issue. --- tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker.py b/tracker.py index 1d845a3..d3a1cc4 100644 --- a/tracker.py +++ b/tracker.py @@ -762,7 +762,7 @@ class Tracker(): return (avg_conf, np.array(lms)) 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] From f13ae8a1ec60ca97b79937f8082efd36dcd9c276 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:57:14 +0100 Subject: [PATCH 2/2] Updated README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70b051f..e160c57 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Four pretrained face landmark models are included. Using the `--model` switch, i FPS measurements are from running on one core of my CPU. -Pytorch weights for use with `model.py` can be found [here](https://mega.nz/file/vvYXlYQT#h7FpEg4tmOCJNxjpsDEw0JomJIkVGKwrt4OUV0RNDDU). +Pytorch weights for use with `model.py` can be found [here](https://mega.nz/file/vvYXlYQT#h7FpEg4tmOCJNxjpsDEw0JomJIkVGKwrt4OUV0RNDDU). Some unoptimized ONNX models can be found [here](https://github.com/emilianavt/OpenSeeFace/issues/48). # Results