-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Non-issue: Transfer style but not the colors #244
Comments
Based on the comments on reddit, it looks like you can achieve this effect with some simple post-processing with HSV or YUV color-spaces; I might try to implement this over the weekend: https://www.reddit.com/r/MachineLearning/comments/4nbdvz/colorindependent_style_transfer/ |
Thank you! It might not be as hard as I originally thought... 👍 |
Others appear to be working on this too right now https://github.com/pavelgonchar/color-independent-style-transfer |
Along with keeping the colours of the original image, would having a potential third Also, a |
@ProGamerGov The implementation of color-independent style linked above simply converts the content image and generated image to YUV, then replaces the V channel of the generated image with the V channel from the content image. This will not give good results if you try to transfer color from a third image, since the color will be not be aligned to the image content in any way. |
@jcjohnson I see, so it is limited to the traditional style and content image combo. |
I added support for this feature here: 8250d35 It's pretty simple: just use the Y channel from the generated image and the UV channels from the content image. |
What if the third image was a previously generated output image which used the same content image, but a different style image? Or would that still not work? |
That might actually work! |
@jcjohnson How difficult would this be to implement for testing? |
Thank you for implementing the V channel translation JC! I've really been enjoying neural-style over the past few months. Getting an error after replacing neural-style.lua with the new commit of 6/12/16. I merely downloaded and replaced my copy of the neural-style.lua file. Should I have run through the complete dependency install / update? edit: and I see I just posted this under a 'non-issue' thread. Apologies. |
sebrammer [email protected] kirjoitti 14.6.2016 kello 17.54:
|
I will now slink off and find a rock to call home. Thank you for pointing out the forest hiding behind all those trees. |
Happened to me too (how else would I have known). |
Thanks @htoyryla for figuring this one out! I was confused. |
Is it possible to apply the style of an image but keep the colors of the original?
I've recently read http://blog.deepart.io/2016/06/04/color-independent-style-transfer/ and the results are just awesome.
The text was updated successfully, but these errors were encountered: