CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
51.49k stars 8.64k forks source link

What to do , i dont get it . Help! #1281

Open iWEDX opened 6 months ago

iWEDX commented 6 months ago

(harry) C:\Users\Cookie\Desktop\iam> (harry) C:\Users\Cookie\Desktop\iam>python demo_toolbox.py C:\Users\Cookie\Desktop\iam\encoder\audio.py:13: UserWarning: Unable to import 'webrtcvad'. This package enables noise removal and is recommended. warn("Unable to import 'webrtcvad'. This package enables noise removal and is recommended.") Traceback (most recent call last): File "C:\Users\Cookie\Desktop\iam\demo_toolbox.py", line 5, in from toolbox import Toolbox File "C:\Users\Cookie\Desktop\iam\toolbox__init.py", line 11, in from toolbox.ui import UI File "C:\Users\Cookie\Desktop\iam\toolbox\ui.py", line 37, in ], dtype=np.float) / 255 File "C:\Users\Cookie\anaconda3\envs\harry\lib\site-packages\numpy\init.py", line 284, in getattr__ raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'float'

radadiavasu commented 3 months ago

Bro, np.float is a deprecated alias for the built in float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations(https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations)

This was the standard python float object, but as mentioned, numpy.float has been deprecated... and removed in 1.24. You can either use float or pick one of the np.float32, np.float64, np.float128.