r/MachineLearning • • May 23 '17

Research [R] Deep Image Analogy (code and demo are released)

https://github.com/msracver/Deep-Image-Analogy
64 Upvotes

8 comments sorted by

8

u/e_walker May 23 '17 edited May 23 '17

Visual Attribute Transfer through Deep Image Analogy

We propose a new technique for visual attribute transfer across images that may have very different appearance but have perceptually similar semantic structure. By [visual attribute transfer] (https://www.reddit.com/r/MachineLearning/comments/68y8bb/r_deep_image_analogy/), we mean transfer of visual information (such as color, tone, texture, and style) from one image to another. For example, one image could be that of a painting or a sketch while the other is a photo of a real scene, and both depict the same type of scene. Our technique finds semantically-meaningful dense correspondences between two input images. To accomplish this, it adapts the notion of "image analogy" with features extracted from a Deep Convolutional Neutral Network for matching; we call our technique Deep Image Analogy. A coarse-to-fine strategy is used to compute the nearest-neighbor field for generating the results. We validate the effectiveness of our proposed method in a variety of cases, including style/texture transfer, color/style swap, sketch/painting to photo, and time lapse.

pdf: https://arxiv.org/abs/1705.01088.pdf

code: https://github.com/msracver/Deep-Image-Analogy

more examples: https://liaojing.github.io/html/data/analogy_supplemental.pdf

2

u/shaggorama May 23 '17

Where's the code specific to this model? The repo you linked looks to be mainly a fork of caffe. There's one folder with a recent commit (include/eigen), but I can't figure out what if anything in there is specific to this model. Seems to be mostly linear algebra routines.

4

u/e_walker May 23 '17

The whole project lies on Deep-Image-Analogy/windows/deep_image_analogy/, including code, demo and example data. Others are caffe and used linear algebra library.

3

u/shaggorama May 23 '17

There it is, thanks for helping me navigate the repo.

5

u/[deleted] May 29 '17

I can't thank you enough that you included a compiled exe in the repository!!!!!!

4

u/madebyollin May 23 '17

Great to see this released! Need to see if I can get this running on Azure and start testing it out.

2

u/NovaRom May 23 '17

Always +1 from me for the code and demo released

2

u/Swizardrules Jun 03 '17

Thanks a bunch for the post! Now to get it working, haha.