anishathalye / neural-style

Neural style in TensorFlow! 🎨
https://anishathalye.com/an-ai-that-can-mimic-any-artist/
GNU General Public License v3.0
5.54k stars 1.51k forks source link

When running in spyder TensorFlow 1.3 #168

Closed raayraay69 closed 4 years ago

raayraay69 commented 4 years ago

neural_style.py: error: the following arguments are required: --content, --styles, --output An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

anishathalye commented 4 years ago

As the error message says, certain flags are required.

raayraay69 commented 4 years ago

Im sorry im so confused on this part. How do i insert these flags into the code? Do i create a output file, content file and style file?

anishathalye commented 4 years ago

You don't create those files, they should already exist, and you supply them as arguments. python neural_style.py --content <something> --styles <something> --output <something>. E.g. if you're running in the directory of this repo, if you want to recreate the demo, you can do: python neural_style.py --content examples/1-content.jpg --styles examples/1-style.jpg --output output.png --iterations 1000

raayraay69 commented 4 years ago

Ok, so if i want to download the images that you already have do i just upload them into the same directory as my code in spyder. then run