neural_artistic_style icon indicating copy to clipboard operation
neural_artistic_style copied to clipboard

save network to file

Open vasilibrutsky opened this issue 9 years ago • 3 comments

hello! will your tool support saving the neural network to file? that I could import it each time and it would be much faster to process different images with the same effect

vasilibrutsky avatar Oct 12 '15 20:10 vasilibrutsky

Hi. You can use pickle to save networks. :)

andersbll avatar Oct 12 '15 20:10 andersbll

Yes, but it would be perfect to extend functionality with key like python neural_artistic_style.py --subject images/tuebingen.jpg --style images/starry_night.jpg --save neuralnetwork.txt

and add like python neural_artistic_style.py --subject images/tuebingen.jpg --style images/starry_night.jpg --import neuralnetwork.txt

vasilibrutsky avatar Oct 12 '15 20:10 vasilibrutsky

If I have understood you correctly, you want to reuse a drawn image to draw other images faster. This is not possible as the algorithm starts drawing each image from scratch (from subject/noise).

Possibly related: You can specify an initial image as starting point for the optimization using the --init parameter.

andersbll avatar Oct 12 '15 21:10 andersbll