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

How do I add a demucs model? #7

Open
nickamx opened this issue Mar 28, 2024 · 2 comments
Open

How do I add a demucs model? #7

nickamx opened this issue Mar 28, 2024 · 2 comments

Comments

@nickamx
Copy link

nickamx commented Mar 28, 2024

I'm trying to add UVR_Demucs_Model_1 model, as it works better and faster for my tasks. I added UVR_Demucs_Model_1.yaml and ebf34a2db.th to uvr5_weights.
changed the code to model_path='uvr5_weights/UVR_Demucs_Model_1.yaml' but I can't run the model.

I get an error:
Traceback (most recent call last):
File "C:\Users\Admin/Documents\uvr auto test\uvr-main\uvr-main\separate.py", line 105, in
pre_fun = audio_pre(model_path=model_path,device=device,is_half=is_half)
File "C:\Users\Admin/Documents\uvr auto test\uvr-main\uvr-main\separate.py", line 35, in init
param_name , model_params_d = _get_name_params(model_path , model_hash)
File "C:\Users\Admin/Documents\uvr auto test\uvr-main\uvr-main\uvr5_pack\utils.py", line 242, in _get_name_params
return param_name_auto , model_params_auto
UnboundLocalError: local variable 'param_name_auto' referenced before assignment

I am a newbie and if you can help me, it would be very much appreciated.

@seanghay
Copy link
Owner

I don't know about that too. I think you should try using https://pypi.org/project/demucs/ instead it's easier to install.

Read more: https://seanghay.com/posts/audio-source-sep

@nickamx
Copy link
Author

nickamx commented Mar 28, 2024

Thank you!

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

No branches or pull requests

2 participants