lltcggie / waifu2x-caffe

waifu2xのCaffe版
MIT License
8.01k stars 843 forks source link

Stop software crash when it runs out of memory #192

Open Lebon14 opened 4 years ago

Lebon14 commented 4 years ago

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.

mirh commented 3 years ago

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.