Code Monkey home page Code Monkey logo

Comments (8)

Diego92Ita avatar Diego92Ita commented on May 17, 2024

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

from ultimatevocalremovergui.

DilanBoskan avatar DilanBoskan commented on May 17, 2024

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

from ultimatevocalremovergui.

Diego92Ita avatar Diego92Ita commented on May 17, 2024

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.

from ultimatevocalremovergui.

Diego92Ita avatar Diego92Ita commented on May 17, 2024

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".

from ultimatevocalremovergui.

DilanBoskan avatar DilanBoskan commented on May 17, 2024

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.

from ultimatevocalremovergui.

DilanBoskan avatar DilanBoskan commented on May 17, 2024

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

from ultimatevocalremovergui.

DilanBoskan avatar DilanBoskan commented on May 17, 2024

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

from ultimatevocalremovergui.

Diego92Ita avatar Diego92Ita commented on May 17, 2024

Thanks a lot!

from ultimatevocalremovergui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.