Skip to content

Commit

Permalink
Merge pull request #20 from leehomyc/fast_inpainting
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
leehomyc authored Sep 17, 2017
2 parents ec87e80 + b47bcde commit 1011a6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
## High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis


![teaser](images/teaser.png "Sample inpainting results on held-out ImageNet images")

This is the code for [High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis](https://arxiv.org/pdf/1611.09969). Given an image, we use the content and texture network to jointly infer the missing region. This repository contains the pre-trained model for the content network and the joint optimization code, including the demo to run example images. The code is adapted from the [Context Encoders](https://github.com/pathak22/context-encoder) and [CNNMRF](https://github.com/chuanli11/CNNMRF). Please contact [Harry Yang](http://www.harryyang.org) for questions regarding the paper or the code. Note that the code is for research purpose only.

**[update 9/16/2017]** We increase the speed of original version by 6x (30s/image on GPU). The updates include:

1. We remove layer 12 of vgg in texture optimization.
2. In texture optimization, we have three scales and 100 iterations at each scale. Now it only computes the nearest patch at the first iteration of each scale, and re-use the nearest index in later iterations.

This greatly increases the speed at the cost of very subtle inpainting quality.

### Demo

- Install Torch: http://torch.ch/docs/getting-started.html#_
Expand Down

0 comments on commit 1011a6a

Please sign in to comment.