Problem numpy.org/devdocs/release/1.20.0-notes.html#deprecations
In the output of Vocal/accompaniment separation and reverb removal, I get this error:
2.wav.reformatted.wav->Traceback (most recent call last): File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\modules\uvr5\modules.py", line 74, in uvr pre_fun.path_audio( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\modules\uvr5\vr.py", line 300, in path_audio wav_instrument = spec_utils.cmb_spectrogram_to_wave( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\lib\uvr5_pack\lib_v5\spec_utils.py", line 397, in cmb_spectrogram_to_wave spectrogram_to_wave( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\lib\uvr5_pack\lib_v5\spec_utils.py", line 295, in spectrogram_to_wave wave_left = librosa.istft(spec_left, hop_length=hop_length) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\core\spectrum.py", line 394, in istft dtype = util.dtype_c2r(stft_matrix.dtype) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\utils.py", line 2185, in dtype_c2r np.dtype(complex): np.dtype(np.float).type, File "C:\Users\Mcdo\AppData\Roaming\Python\Python38\site-packages\numpy_init_.py", line 305, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'float'.
np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, usefloatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. 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#deprecationsDuring handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\modules\uvr5\modules.py", line 82, in uvr pre_fun.path_audio( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\modules\uvr5\vr.py", line 300, in path_audio wav_instrument = spec_utils.cmb_spectrogram_to_wave( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\lib\uvr5_pack\lib_v5\spec_utils.py", line 397, in cmb_spectrogram_to_wave spectrogram_to_wave( File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\infer\lib\uvr5_pack\lib_v5\spec_utils.py", line 295, in spectrogram_to_wave wave_left = librosa.istft(spec_left, hop_length=hop_length) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\core\spectrum.py", line 394, in istft dtype = util.dtype_c2r(stft_matrix.dtype) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\Mcdo\Desktop\Mangio\Retrieval-based-Voice-Conversion\runtime\lib\site-packages\librosa\util\utils.py", line 2185, in dtype_c2r np.dtype(complex): np.dtype(np.float).type, File "C:\Users\Mcdo\AppData\Roaming\Python\Python38\site-packages\numpy_init_.py", line 305, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'float'.
np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, usefloatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. 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
Found a fix for this. You have to downgrade numpy to 1.23.5 You can open your venv and run this
pip install --upgrade numpy==1.23.5
@Reviem0 ah yes thank you