virtual-puppet-project / vpuppr

VTuber application made with Godot 4
Mozilla Public License 2.0
721 stars 60 forks source link

[Bug]: Invalid numpy version #194

Open mstarongithub opened 1 year ago

mstarongithub commented 1 year ago

Description

The current flatpak version (0.8.1)'s venv installs a too modern version of numpy, causing OpenSeeFace to stop working. The problem with numpy >= 1.24 (iirc) is that it doesn't export the type float anymore and OpenSeeFace requires it.

Steps to reproduce

  1. Install vpupper fresh from flatpak (probably applies to other versions too)
  2. Let it setup OpenSeeFace
  3. Try to run

App version

08.1

Operating system

Linux

Relevant log output

Traceback (most recent call last):
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/facetracker.py", line 256, in <module>
    faces = tracker.predict(frame)
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/tracker.py", line 1168, in predict
    face_info.success, face_info.quaternion, face_info.euler, face_info.pnp_error, face_info.pts_3d, face_info.lms = self.estimate_depth(face_info)
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/tracker.py", line 761, in estimate_depth
    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)
  File "/home/evil/.var/app/com.github.virtual_puppet_project.vpuppr/data/godot/app_userdata/OpenSeeFaceGD/venv/lib/python3.9/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

Additional information

Forcing the install of numpy 1.23.0 is a possible fix for that problem