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

CLI slower than GUI #1

Open
mediarl opened this issue Aug 21, 2023 · 2 comments
Open

CLI slower than GUI #1

mediarl opened this issue Aug 21, 2023 · 2 comments

Comments

@mediarl
Copy link

mediarl commented Aug 21, 2023

Hi,

Thanks for the script. It's working fine except it's slower using the CLI than the GUI.
For the same song, it takes 22 seconds using the GUI and 54 seconds for the CLI.
I guess it's related to the options.
On the GUI, I only changed those options, every other is selected by default:

  • Process method: MDX-Net
  • MDX-NET Model: UVR-MDX-NET Inst HQ 1
  • GPU Conversion

Any idea how to improve the speed on CLI ?

@mediarl
Copy link
Author

mediarl commented Aug 21, 2023

I noticed it was using the other model (HP-UVR) and changed it for model_path='uvr5_weights/UVR-MDX-NET-Inst_HQ_1.onnx'
But it seems that for using an ONNX model vs a Pytorch one, it would require some changes.

@seanghay
Copy link
Owner

@mediarl I have another project for MDX-Net. https://github.com/seanghay/uvr-mdx-infer/blob/30d837ff95115ce25bf7059b8296bbf37febf7f1/separate.py#L78C26-L78C42

Right now it only uses CPU and if you want it to use GPU you can specify providers=["CUDAExecutionProvider"] and install pip install onnxruntime-gpu

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