waifu2x-caffe icon indicating copy to clipboard operation
waifu2x-caffe copied to clipboard

Stop software crash when it runs out of memory

Open Lebon14 opened this issue 4 years ago • 1 comments

So, this software takes A LOT of RAM. So, instead of trying to mitigate low memory issue (RAM or VRAM) with disc caching or something like that, it just crashes and outputs a log saying "Out of memory".

I think this could easily be fixed some way. Of course, it'll make image output much slower because you have to swap stuff from RAM to Hard drive and vice versa.

Cheers.

Lebon14 avatar Apr 14 '20 02:04 Lebon14

That sounds like a linux thing, not the program's. At least on windows with my 1000x9000 image, funnily enough the problem is the opposite. Not even 16GB of ram are sufficient, and my system hanged hard for almost 10 minutes before I managed to kill the process.

mirh avatar Jun 28 '21 20:06 mirh