xunhuang1995 / AdaIN-style

Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
https://arxiv.org/abs/1703.06868
MIT License
1.47k stars 192 forks source link

Trouble implementing AdaIn #28

Closed akhauriyash closed 6 years ago

akhauriyash commented 6 years ago

Hello. I want to implement this in Python - Tensorflow. A really great paper. I read the paper on Adaptive instance normalization, and completely understand the decoder training. However, I am having trouble understanding how the AdaIn part of the algorithm would be written in code. I do not understand Lua and thus do not want to risk misunderstanding the concept. Can someone explain the AdaIn part of their algorithm to me in pseudocode/english so that I can try to implement it? As far as I am aware, the AdaIn component only takes in the VGG encoder feature maps for the Image and style.

Thank you!

diggerdu commented 6 years ago

https://github.com/diggerdu/Vincent https://github.com/eridgd/AdaIN-TF

akhauriyash commented 6 years ago

Thank you!