Anjok07 / ultimatevocalremovergui

GUI for a Vocal Remover that uses Deep Neural Networks.
MIT License
17.71k stars 1.32k forks source link

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

Closed Diego92Ita closed 3 years ago

Diego92Ita commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

Diego92Ita commented 3 years ago

Thanks a lot!