1

I have this error:

RuntimeError: CUDA out of memory. Tried to allocate 114.00 MiB (GPU 0; 6.00 GiB total capacity; 4.13 GiB already allocated; 0 bytes free; 4.27 GiB reserved in total by PyTorch)  

I have absolutely no idea why id be getting this error I have a rtx 2060 max-q with 6 GB memory, heres the line I run:

python generate.py -p "The never ending void" -s 480 480

And the output:

https://pastebin.com/avZm9P7j

Heres a picture

Picture of traceback error

If thers any way to fix this please let me know

talonmies
  • 70,661
  • 34
  • 192
  • 269
Spedungis
  • 13
  • 3
  • Is this a duplicate of https://stackoverflow.com/questions/54374935/how-to-fix-this-strange-error-runtimeerror-cuda-error-out-of-memory ? – Elijah Cox Dec 19 '21 at 05:34
  • Its similar but all the answers for that one didnt work for me – Spedungis Dec 19 '21 at 07:27
  • You can give details of batch-size, model and output of `nvidia-smi`. – kkgarg Dec 19 '21 at 16:24
  • @Spedungis if those answers didn't work, what happened when you tried them? Can you include your code and what you get when you try the answers on the other page? – Elijah Cox Dec 19 '21 at 23:39

0 Answers0