CorentinJ/Real-Time-Voice-Cloning

python demo_toolbox.py error

dreamdesignersin opened this issue · 0 comments

Hello! I am not a programmer but tried to install the requirements mentioned in the documents. I am getting the following errors when i run (python demo_toolbox.py). I have installed all requirements to the latest versions. If anyone knows how to solve these issue please do let me know.

Thanks and Regards
Below is the error

C:\RTVCM>python demo_toolbox.py
C:\RTVCM\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:\RTVCM\demo_toolbox.py", line 5, in
from toolbox import Toolbox
File "C:\RTVCM\toolbox_init_.py", line 11, in
from toolbox.ui import UI
File "C:\RTVCM\toolbox\ui.py", line 37, in
], dtype=np.float) / 255
^^^^^^^^
File "C:\Python312\Lib\site-packages\numpy_init_.py", line 338, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, 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.
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. Did you mean: 'cfloat'?