Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

torch.cuda.OutOfMemoryError: CUDA out of memory.

Open kker4m opened this issue 2 years ago • 10 comments

I'm always getting this error even I downed my settings to the bottom:

image

Here is my settings:

image

kker4m avatar Jun 29 '23 17:06 kker4m

What's your GPU?

RVC-Boss avatar Jun 30 '23 03:06 RVC-Boss

What's your GPU?

NVIDIA GeForce RTX 3050 Laptop GPU

kker4m avatar Jun 30 '23 09:06 kker4m

You need GPU >= 8GB

MazenVR avatar Jun 30 '23 19:06 MazenVR

Are all of your samples below 10 seconds? Too big dataset (more than 1h) on gpu with <6gb vram can cause OOM error. First try trimm samples and try again. When it didn't work then put smaller dataset like 10-30min.

krzysiek546 avatar Jun 30 '23 23:06 krzysiek546

I have exactly the same problem, same GPU. I tried reducing the batch size to 1 and using >10s audio samples, it didn't work.

DrangerH avatar Jul 02 '23 22:07 DrangerH

Same problem. I tried running on two different pc. One with Asus NVIDIA GeForce RTX 2080 (6GB) and one with Colorful NVIDIA GeForce RTX 3060 (4GB). Both having the same problem.

qing762 avatar Jul 08 '23 01:07 qing762

Same problem. I tried running on two different pc. One with Asus NVIDIA GeForce RTX 2080 (6GB) and one with Colorful NVIDIA GeForce RTX 3060 (4GB). Both having the same problem.

In my case doing all things on Ubuntu 22.04 resolved all OOM errors. Unfortunately apparently Windows have some problems with allocating VRAM. You should start training with batch=1 on 4GB VRAM easily. I train without any problems on GTX 1660 Super 6GB with batch=3.

krzysiek546 avatar Jul 11 '23 16:07 krzysiek546

Same problem. I tried running on two different pc. One with Asus NVIDIA GeForce RTX 2080 (6GB) and one with Colorful NVIDIA GeForce RTX 3060 (4GB). Both having the same problem.

In my case doing all things on Ubuntu 22.04 resolved all OOM errors. Unfortunately apparently Windows have some problems with allocating VRAM. You should start training with batch=1 on 4GB VRAM easily. I train without any problems on GTX 1660 Super 6GB with batch=3.

Yes, I also think the problem is Windows related. I'll try with Fedora tomorrow and report back

kker4m avatar Jul 11 '23 21:07 kker4m

If it's windows related issue, is there any walkaround found for this? I'm also facing the same problem. Though v1 runs perfectly fine on my system.

Srinath320 avatar Jul 13 '23 16:07 Srinath320

I'm having the same issues. I have a GeForce RTX 3050 with 4GB. I can run stable diffusion and deforum locally. I would really love to be able to run it.

SaafirHale avatar Jul 14 '23 06:07 SaafirHale

https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/FAQ-(Frequently-Asked-Questions)#q8cuda-errorcuda-out-of-memory

RVC-Boss avatar Aug 14 '23 06:08 RVC-Boss

I'm always getting this error even I downed my settings to the bottom:

image

Here is my settings:

image

Did you find a solution

DYNOs1rX762 avatar Dec 08 '23 05:12 DYNOs1rX762

I also had this problem before on my 4GB graphics card

I set the following options and the problem was solved, of course you can increase the values, I set the minimum for testing and the problem was solved My graphics card is "NVIDIA GeForce GTX 1650 with Max-Q Design"

rmvpe Save frequency = 1 Batch size per GPU = 1 Cache all training sets to GPU = no

desplus avatar Mar 11 '24 21:03 desplus