diff --git a/ptgaze/gaze_estimator.py b/ptgaze/gaze_estimator.py index 8edef12..6ed968a 100644 --- a/ptgaze/gaze_estimator.py +++ b/ptgaze/gaze_estimator.py @@ -79,7 +79,7 @@ def _run_mpiigaze_model(self, face: Face) -> None: images.append(image) head_poses.append(normalized_head_pose) images = torch.stack(images) - head_poses = np.array(head_poses).astype(np.float32) + head_poses = np.array(head_poses).astype('float32') head_poses = torch.from_numpy(head_poses) device = torch.device(self._config.device)