Open Pasanlaksitha opened 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.
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:
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'