tsurumeso / vocal-remover

Vocal Remover using Deep Neural Networks
MIT License
1.55k stars 222 forks source link

Baseline File Not found #140

Open vikassingh2023 opened 1 year ago

vikassingh2023 commented 1 year ago

getting this while using C:\Windows\System32\vocal-remover>python inference.py --input C:\Users\shadow\Downloads\12_ladke.mp3 loading model... Traceback (most recent call last): File "C:\Windows\System32\vocal-remover\inference.py", line 184, in main() File "C:\Windows\System32\vocal-remover\inference.py", line 127, in main model.load_state_dict(torch.load(args.pretrained_model, map_location=device)) File "C:\ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 791, in load with _open_file_like(f, 'rb') as opened_file: File "C:\ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 271, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 252, in init super().init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'models/baseline.pth'

rogermiranda1000 commented 1 year ago

If you have cloned the master branch instead of downloading from the release tab please download it from there.

vikassingh2023 commented 1 year ago

Hello, Thanks for answering but got new issue - C:\ProgramData\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Traceback (most recent call last): File "C:\Users\arman\Downloads\vocal-remover\inference.py", line 4, in import librosa File "C:\Users\arman\AppData\Roaming\Python\Python39\site-packages\librosa__init.py", line 211, in from . import core File "C:\Users\arman\AppData\Roaming\Python\Python39\site-packages\librosa\core__init.py", line 9, in from .constantq import * # pylint: disable=wildcard-import File "C:\Users\arman\AppData\Roaming\Python\Python39\site-packages\librosa\core\constantq.py", line 1059, in dtype=np.complex, File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\init.py", line 305, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'complex'. np.complex was a deprecated alias for the builtin complex. To avoid this error in existing code, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 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

rogermiranda1000 commented 1 year ago

Try with numpy==1.24.4, it's the one I'm using

vicwomg commented 11 months ago

I ran into both these issues, and it turns out that in addition to numpy==1.24.4, bumping to librosa==0.10.1 was needed