Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save network to file #23

Open
vasilibrutsky opened this issue Oct 12, 2015 · 3 comments
Open

save network to file #23

vasilibrutsky opened this issue Oct 12, 2015 · 3 comments

Comments

@vasilibrutsky
Copy link

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

@andersbll
Copy link
Owner

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

@vasilibrutsky
Copy link
Author

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

@andersbll
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants