numpy requirement changed to numpy==1.23.0

When building with the latest numpy version (v1.24.0), OpenSeeFace crashes with "AttributeError: module 'numpy' has no attribute 'float'". This is because the attribute 'float' is now deprecated in numpy v1.24. I have changed the requirements to the earlier version v1.23.0. This should probably only be a temporary fix, as I'm sure there is a good reason that float was depreciated. I would also recommend changing the requirements to a single file with a static version for each requirement that is known to work. This will help ensure the stability of the program. I may do this in another fork when I have more time if you want.
This commit is contained in:
Robert Junkins 2022-12-18 16:37:23 -05:00 • committed by GitHub
parent 40119c1797
commit 7df42c6ca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ call venv\Scripts\activate.bat
echo "Installing dependencies" echo "Installing dependencies"
pip install wheel pip install wheel
pip install onnxruntime opencv-python==4.5.4.60 pillow numpy pyinstaller pip install onnxruntime opencv-python==4.5.4.60 pillow numpy==1.23.0 pyinstaller
echo "Running pyinstaller" echo "Running pyinstaller"
pyinstaller facetracker.py --clean ^ pyinstaller facetracker.py --clean ^