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 to infer song using only CPU? #127

Open
anywindo opened this issue May 3, 2024 · 1 comment
Open

How to infer song using only CPU? #127

anywindo opened this issue May 3, 2024 · 1 comment

Comments

@anywindo
Copy link

anywindo commented May 3, 2024

I don't have NVIDIA GPU so, i tweak the os environment to set visible cuda device to -1, it raised an error "Torch not compiled with cuda enabled". How can i do it using only CPU?

@Dimkqo
Copy link

Dimkqo commented May 22, 2024

I solved that problem in part. There some code problems in module mdx.py. So, i edited these lines and now it can separate vocals and instrumental:

mdx.py:
...
169 mix_waves = torch.tensor(mix_waves, dtype=torch.float32)#.to(self.device)
...
194 processed_wav = self.model.istft(processed_spec)#.to(self.device))
...
245 #device_properties = torch.cuda.get_device_properties(device) if device.type == 'cuda' else torch.cpu.get_device_properties(device)
246 #vram_gb = device_properties.total_memory / 1024**3
247 m_threads = 1 #if vram_gb < 8 else 2

Perhaps, even can separate lead and back vocals and dereverb main vocal.
But i can't change the voice line in this moment. I hope i can fix this soon.

Edited:
I use console version without web ui.

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