Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select the main model [Mac OS] #29

Closed
Diego92Ita opened this issue Nov 21, 2020 · 8 comments
Closed

Unable to select the main model [Mac OS] #29

Diego92Ita opened this issue Nov 21, 2020 · 8 comments

Comments

@Diego92Ita
Copy link

I can't select the main model on the "Choose Main Model" field. It doesn't open any options that I can click.
I get this error on the command line:

Exception in Tkinter callback
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/tkinter/init.py", line 1705, in call
return self.func(*args)
File "VocalRemover.py", line 620, in open_newModel_filedialog
os.startfile(models)
AttributeError: module 'os' has no attribute 'startfile'

@Diego92Ita
Copy link
Author

I don't know if the version 4 has new models, but I put the v2 models in the model folder and now it works

@DilanBoskan
Copy link
Collaborator

Please for future bug reports use an issue template as it tremendously decomplifies my workflow, thank you!

If you mind, please extract this zip and replace the VocalRemover.py file in here, with the one on your end and tell me if everything works or which error message comes up!
VocalRemover.zip

@Diego92Ita
Copy link
Author

Ok, I downloaded the file and replace it as you told me. Now is loading models.
I think the main reason was that there weren't any models (.pth) in the models' folder yet.

Another thing I want to say is that I found another bug that I've already solved by myself: when you execute for the first time the VocalRemover.py script, it crashes and reports an error. The error is that the script can't find the "UVR-logo.png" file. That's because there's no file named like this. I've got "UVR-banner.png", so I edit the script (I now a little bit of python as I'm studying it at school) and replace the line where it says "UVR-logo.png" with "UVR-banner.png". I think it works as well if you simply rename the "UVR-banner.png" in the imgages folder.

@Diego92Ita
Copy link
Author

Diego92Ita commented Nov 21, 2020

Ok, it reports a LOT of errors:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/opt/anaconda3/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 381, in main
vocal_remover = VocalRemover(data, text_widget)
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 30, in init
self._load_models()
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 41, in _load_models
map_location=device))
File "/opt/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for CascadedASPPNet:
Missing key(s) in state_dict: "stg1_low_band_net.enc1.conv1.conv.0.weight", "stg1_low_band_net.enc1.conv1.conv.1.weight", "stg1_low_band_net.enc1.conv1.conv.1.bias", "stg1_low_band_net.enc1.conv1.conv.1.running_mean", "stg1_low_band_net.enc1.conv1.conv.1.running_var", "stg1_low_band_net.enc1.conv2.conv.0.weight", "stg1_low_band_net.enc1.conv2.conv.1.weight", "stg1_low_band_net.enc1.conv2.conv.1.bias",
...
"stg1_low_band_net.enc1.conv2.conv.1.running_mean", "stg1_low_band_net.enc1.conv2.conv.1.running_var",
"full_band_net.dec1.conv.conv.1.num_batches_tracked", "aux_out.weight", "out.0.conv.0.weight", "out.0.conv.1.weight", "out.0.conv.1.bias", "out.0.conv.1.running_mean", "out.0.conv.1.running_var", "out.0.conv.1.num_batches_tracked", "out.1.weight".

@DilanBoskan
Copy link
Collaborator

Great, it works. Yes, obviously there have to models in the v4 folder for the programm to be able to detect new models. If you are studying python, feel free to look through the source code of this application, everything is commented out and should be understandable. On any questions/suggestions/enhancements feel free to let me know.

Thank you very much for the error report, I will fix that.

@DilanBoskan
Copy link
Collaborator

DilanBoskan commented Nov 21, 2020

Ok, it reports a LOT of errors:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/opt/anaconda3/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 381, in main
vocal_remover = VocalRemover(data, text_widget)
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 30, in init
self._load_models()
File "/Users/diegocraducci/Desktop/AI Isolation/Ultimate Vocal Remover/inference_v4.py", line 41, in _load_models
map_location=device))
File "/opt/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for CascadedASPPNet:
Missing key(s) in state_dict: "stg1_low_band_net.enc1.conv1.conv.0.weight", "stg1_low_band_net.enc1.conv1.conv.1.weight", "stg1_low_band_net.enc1.conv1.conv.1.bias", "stg1_low_band_net.enc1.conv1.conv.1.running_mean", "stg1_low_band_net.enc1.conv1.conv.1.running_var", "stg1_low_band_net.enc1.conv2.conv.0.weight", "stg1_low_band_net.enc1.conv2.conv.1.weight", "stg1_low_band_net.enc1.conv2.conv.1.bias",
...
"stg1_low_band_net.enc1.conv2.conv.1.running_mean", "stg1_low_band_net.enc1.conv2.conv.1.running_var",
"full_band_net.dec1.conv.conv.1.num_batches_tracked", "aux_out.weight", "out.0.conv.0.weight", "out.0.conv.1.weight", "out.0.conv.1.bias", "out.0.conv.1.running_mean", "out.0.conv.1.running_var", "out.0.conv.1.num_batches_tracked", "out.1.weight".

You are using a v2 model for v4, those are not cross-compatible

@DilanBoskan
Copy link
Collaborator

DilanBoskan commented Nov 21, 2020

Download the latest models from here (models.zip):
https://github.com/Anjok07/ultimatevocalremovergui/releases

@Diego92Ita
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants