Real-time-voice-cloning: Issues playing without CUDA

Created on 20 Jul 2019  路  6Comments  路  Source: CorentinJ/Real-Time-Voice-Cloning

Excuse my inexperience, but I tried to use your software since it looked very appealing to me.
I use an AMD GPU, so I followed the steps on installing torch without it. However, I keep getting this error message.

CUDA error

It seems my only failure is that it does not playback.
Is it even possible to use it without CUDA? What can I do to circumvent this error?

Most helpful comment

I run this tool successfully on my local machine without GPU. You need to replace all the codes which include cuda.

How did you replace all the cuda codes? Can you please explain ? That would be great help.

Thanks and regards,
Ateet Kumar

All 6 comments

It may be possible, but you would have to change calls to cuda() to get that to work. I don't know how torch handles other GPUs. You would also need to change the device the weights are stored on.

I run this tool successfully on my local machine without GPU. You need to replace all the codes which include cuda.

I run this tool successfully on my local machine without GPU. You need to replace all the codes which include cuda.

If it works on CPU, why not making this optional?
I saw this in other projects like:

# its pseudocode

if torch.cuda and not options.force_cpu:
  torch.device = torch.cuda
else:
  torch.device = torch

and then rewrite all torch.cuda to torch.device. I think it's look a bit like a hack, but it works and it's easy to refactor

I run this tool successfully on my local machine without GPU. You need to replace all the codes which include cuda.

How did you replace all the cuda codes? Can you please explain ? That would be great help.

Thanks and regards,
Ateet Kumar

For anyone wanting to run this without CUDA. It's possible by removing the Cuda codes. I have been successfully able to run it without CUDA. Will try to raise a PR if I get some time.

@mmilk90 I wanted to let you know we have implemented CPU support in #366 so you do not need CUDA to run the voice cloning toolbox. So, exactly what you wanted! The setup process is a little bit easier now too. Please pull the latest and try again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willshion picture willshion  路  9Comments

IrvDelgado picture IrvDelgado  路  5Comments

hnjiakai picture hnjiakai  路  4Comments

fazlekarim picture fazlekarim  路  3Comments

git-davi picture git-davi  路  9Comments