lengstrom / fast-style-transfer

TensorFlow CNN for fast style transfer ⚡🖥🎨🖼
10.91k stars 2.6k forks source link

Weird behaviour on the edges #273

Open rybekci opened 3 years ago

rybekci commented 3 years ago

Hello! I tried to reproduce the result for chicago_la_musee.jpg. However, my created image has a colour confusion on the edges instead. chicago

I used this command: python evaluate.py --checkpoint la_muse.ckpt --in-path input/ --out-path output/ where la_muse.ckpt is from Google Drive; input has the image from examples/content/; output is an empty folder.

Is it normal or am I missing something?

jadonalam commented 3 years ago

Hi. This happens with me too. I have been running the program for numerous projects and the problem with the edges stays consistent. You can try trimming the edges off in post production if you don't like the output. Here is one of my example:

0_6000

Wojak27 commented 2 years ago

You can solve this issue by mirroring the image on the edges. More here: https://docs.opencv.org/3.4/dc/da3/tutorial_copyMakeBorder.html