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

could we apply fast-style-transfer to image deformation? #67

Closed erhuodaosi closed 4 years ago

erhuodaosi commented 4 years ago

I'm sorry to bother you,but I have a question on could we apply Neural-Style-Transfer to image deformation.

In style-transfer,we usually provide a content image and a style image to generate results.And now,could we give a content picture,and let it transform into a warpping image?If the answer is yes,what is the style image?How could we get the style image?

Here are two pictures:one is the original picture,and the other is the transformed image. before after

I would very appreciate if you could help me,thank you!

titu1994 commented 4 years ago

This sounds like perspective warping of images, which has several classic methods implemented in the cv2 library.

erhuodaosi commented 4 years ago

@titu1994 Thank you very much.I have tested using CV2 method ,but the result is not very good.