Pytorch-cyclegan-and-pix2pix: not enough memory: you tried to allocate 0GB

Created on 12 Oct 2018  路  8Comments  路  Source: junyanz/pytorch-CycleGAN-and-pix2pix

Good afternoon,

I've been following your tutorial on CycleGAN and keep hitting the below error.

What would you recommend?

Thanks,

Sam.

(Running on 16.04 Ubuntu)
log.txt

All 8 comments

It seems that you are using the CPU mode. But your RAM might be too small for the memory usage of CycleGAN.

I currently have 15gb installed. What is the best way to reduce ram consumption or how much do I need to increase my memory by for the maps dataset? Could I reduce the dataset size?
Thank you for the quick response

Maybe try smaller image sizes --loadSize 143 --fineSize 128.

Smashing, that did the job. Thanks for the help!

@CodeMaterial Excuse me, I have a similar problem, what do u mean by smashing?

It's informal Victorian English for wonderful or marvellous.
For example
"How's the tea?"
"Absolutely smashing thank you!"

And as for the 0GB error, just interpret it as an out of memory error and that should put you along the right path

@CodeMaterial Get it. Thanks!

I run into the same issue. But I figured out a way by adding virtual memory to it. As long as you have an SSD on your computer. Free up some space if you don't have enough on your SSD (1.5* to 3* of actual RAM). According to this virtual memory set up on Win10 tutorial

Was this page helpful?
0 / 5 - 0 ratings