fourMs / MGT-python

Musical Gestures Toolbox for Python
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/musicalgesturestoolbox/mgt-python/index.html
GNU General Public License v3.0
52 stars 11 forks source link

Blur_faces numpy issue #306

Closed alexarje closed 11 months ago

alexarje commented 11 months ago

There is a compability issue with the latest version of numpy. Found it when testing the blur_faces() function:

AttributeError: module 'numpy' has no attribute 'bool'. np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

joachimpoutaraud commented 11 months ago

Thank you for reporting this issue! I have updated the _centerface.py script and changed the data type of the numpy array to bool instead of np.bool.