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.52k forks source link

Does neural style give comparable results to fast neural style tensorfire? #125

Closed lavanyakapahi closed 5 years ago

lavanyakapahi commented 5 years ago

Hi Anish, I am interested in experimenting with artistic style transfer and found your project. Thanks! I used the great wave attached as the style and ran it through 1000 iterations. The results are attached. I then checked with TensorFire. The results are very nice! Can I achieve the same via neural style? I tried tuning the parameters but could not get good results. Content image content_boy Style image style-wave Result after 1000 iterations 1-boy-output Result with TensorFire

boy_wave_tensorfire

Thanks so much Lavanya

anishathalye commented 5 years ago

I don't know, I haven't done a very careful comparison. I think it's generally easier to get nicer results with fast style transfer (which is what TensorFire uses).

lavanyakapahi commented 5 years ago

Thanks for suggesting the fast style transfer. I checked it and the pre trained model gave a very nice result. I need to train a new water colour style. I thought it would be a good idea to understand the tuning parameters by using the neural style before trying to train a model for the fast neural style. Not sure if that would be a right approach. So meanwhile, I continue trying out the neural style. I noticed that each time I run the script for 1000 iterations I get inconsistent results even though the parameters are the same. I ran the script with --content-weight 2 and --style-weight 1, twice. I have attached the results below. Is that expected? 3-testoutput 3-testoutput_2

lavanyakapahi commented 5 years ago

I used the init image option and this seems to give consistent results.

anishathalye commented 5 years ago

Yeah, it must be different random initializations (which is what happens if you don’t use init-image) giving different results.

On Aug 26, 2018, at 7:25 PM, lavanyakapahi notifications@github.com wrote:

Closed #125.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.