jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.71k forks source link

How to get high res #391

Open alrpal opened 7 years ago

alrpal commented 7 years ago

I've succesfully created a 700px image using cpu and 8gb ram (uses about 6gb with l-bfgs). I spun up a virtual server with 60gb ram to try and see how large i can go, but i can barely get 2000px before it sucks up all the memory, even using adam. Plus the fact that 2000px on cpu takes like 10+ hours to finish (not 100% sure cause I didn't wait till the end).

I tried splitting my style and content images and batch process the tiles but this doesn't work.

Is there anyway to get high res results without $6k in graphics cards? I'd really love to be able to print a 36" picture at 300dpi, so >10kpx

VaKonS commented 7 years ago

@alrpal, maybe this "neural-style" Wiki page could be helpful: https://github.com/jcjohnson/neural-style/wiki/Techniques-For-Increasing-Image-Quality-Without-Buying-a-Better-GPU