titu1994 / Neural-Style-Transfer

Keras Implementation of Neural Style Transfer from the paper "A Neural Algorithm of Artistic Style" (http://arxiv.org/abs/1508.06576) in Keras 2.0+
Apache License 2.0
2.26k stars 481 forks source link

multiple style transfer #44

Closed ivanpang1996 closed 6 years ago

ivanpang1996 commented 6 years ago

After read #21 , I have a question about the masked style transfer. If Mask A has combined with style A and so on for Mask B, then how to combine both images as a output?

Thanks and best regards

titu1994 commented 6 years ago

That comment kinda explains it properly, so I won't reiterate that. Simply put, you can think of a 1:1 map from a binary mask to a single style. You can split the images into sections of white or black, and choose the corresponding style to affect the white masked region.