tsurumeso / vocal-remover

Vocal Remover using Deep Neural Networks
MIT License
1.47k stars 215 forks source link

Permission denied: 'models/baseline.pth' #96

Open Pasanlaksitha opened 2 years ago

Pasanlaksitha commented 2 years ago

command

python inference.py -i D:\Geo\vocal-remover\1.wav

error

loading model... Traceback (most recent call last): File "inference.py", line 166, in main() File "inference.py", line 110, in main model.load_state_dict(torch.load(args.pretrained_model, map_location=device)) File "C:\Users\$$$$\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 594, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\$$$$\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\$$$$\AppData\Roaming\Python\Python38\site-packages\torch\serialization.py", line 211, in init super(_open_file, self).init(open(name, mode)) PermissionError: [Errno 13] Permission denied: 'models/baseline.pth'

tsurumeso commented 2 years ago

Please make sure that vocal-remover/models/baseline.pth is granted read permission. If you unzip the release module to your desktop, it should automatically have read permissions.

filispeen commented 1 year ago

Run the console in that folder as administrator and run the command or transfer the folder with the program to another drive if the folder is in drive C: