neural_artistic_style icon indicating copy to clipboard operation
neural_artistic_style copied to clipboard

Way to run operations on CPU, thusly RAM instead of GPU/VRAM?

Open mxchinegod opened this issue 8 years ago • 5 comments

I'm limited by the Amazon instance. I can buy a server with a K80 and 12GB of VRAM but I'd also be willing to pay more for slower processing on the cloud if I can get the CPU working.

I'm going to look at the code after this but in the event that the answer is obvious to the community, I wanted to ask before I go digging.

Thanks so much! Hope everyone's results have been fun.

mxchinegod avatar Jul 18 '16 17:07 mxchinegod

Just do not enable CUDNN and the script will run on a CPU. But it will take you hours if not days to get a picture.

FabienLavocat avatar Jul 18 '16 17:07 FabienLavocat

The CPU implementation of the convolution operation is too slow for any practical use. You would have to implement something faster first.

andersbll avatar Jul 18 '16 17:07 andersbll

I believe you that it's slow and I appreciate both very quick responses!

Since our needs may be slightly different, by what magnitude is it impractical? We talking days or weeks for 1MP + resolution?

Thanks!

mxchinegod avatar Jul 18 '16 17:07 mxchinegod

fyi https://github.com/jcjohnson/neural-style/

johndpope avatar Jul 18 '16 22:07 johndpope

I've used it, the results even with gradient smoothing are not ideal whatsoever. I've done enormous amounts of tweaking and attempted to isolate what I like about it, it just isn't as good. I will perhaps come back to it anyways because it's more fleshed out.

mxchinegod avatar Jul 19 '16 16:07 mxchinegod