TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.71k stars 1.82k forks source link

[Mac] OpenFace not using Python 3.9 for Feature Extraction #1005

Open baconandchips opened 2 years ago

baconandchips commented 2 years ago

Describe the bug OpenFace for Mac currently uses a different version of Python (one that currently exists on my system), and is not using the correct version of Python 3.9 it's supposed to use. A Python3.9-only feature is giving an error when I attempt to do feature extraction.

To Reproduce Obtain Mac device that has Python 3.7.4 installed for when you run "python --version", and install through fea_tool repository's mac script.

Expected behavior Error pops up: " 'str' object has no attribute 'removeprefix' ". This is because removeprefix is added in Python 3.9

Error Log Processing subject_26_Vid_1.avi from /Users/me/myfolder/facedetect/test_rd1 Processing sample-headtilts-1.mp4 from /Users/me/myfolder/facedetect/test_rd1 ok_files : [] error_files : ["/Users/me/myfolder/facedetect/test_rd1/subject_26_Vid_1.avi>> 'str' object has no attribute 'removeprefix'", "/Users/me/myfolder/facedetect/test_rd1/sample-headtilts-1.mp4>> 'str' object has no attribute 'removeprefix'"]

Desktop (please complete the following information):