Skip to main content
QUICK REVIEW

[Paper Review] Shift-Net: Image Inpainting via Deep Feature Rearrangement

Zhaoyi Yan, Xiaoming Li|arXiv (Cornell University)|Jan 29, 2018
Generative Adversarial Networks and Image SynthesisComputer Science43 references46 citations
TL;DR

Shift-Net adds a shift-connection layer to U-Net to rearrange deep encoder features for inpainting, yielding sharp textures and plausible structures. It trains end-to-end with guidance, reconstruction, and adversarial losses.

ABSTRACT

Deep convolutional networks (CNNs) have exhibited their potential in image inpainting for producing plausible results. However, in most existing methods, e.g., context encoder, the missing parts are predicted by propagating the surrounding convolutional features through a fully connected layer, which intends to produce semantically plausible but blurry result. In this paper, we introduce a special shift-connection layer to the U-Net architecture, namely Shift-Net, for filling in missing regions of any shape with sharp structures and fine-detailed textures. To this end, the encoder feature of the known region is shifted to serve as an estimation of the missing parts. A guidance loss is introduced on decoder feature to minimize the distance between the decoder feature after fully connected layer and the ground-truth encoder feature of the missing parts. With such constraint, the decoder feature in missing region can be used to guide the shift of encoder feature in known region. An end-to-end learning algorithm is further developed to train the Shift-Net. Experiments on the Paris StreetView and Places datasets demonstrate the efficiency and effectiveness of our Shift-Net in producing sharper, fine-detailed, and visually plausible results. The codes and pre-trained models are available at https://github.com/Zhaoyi-Yan/Shift-Net.

Motivation & Objective

  • Motivate improving inpainting to preserve global structure and fine textures.
  • Propose a shift-connection layer to transfer information from known regions to missing regions.
  • Leverage guidance loss to align decoder and encoder features for missing areas.
  • Train an end-to-end model combining exemplar-based and CNN-based inpainting advantages.
  • Demonstrate efficiency and effectiveness on Paris StreetView and Places datasets.

Proposed method

  • Add a shift-connection layer to U-Net to perform deep feature rearrangement between encoder and decoder features.
  • Define a nearest-neighbor based shift operation where the decoder’s missing-region feature is updated via a shifted encoder feature (Phi_L-l^{shift}(I)).
  • Introduce a guidance loss L_g to constrain decoder features in missing regions to match ground-truth encoder features.
  • Combine L1 reconstruction loss, L_g, and adversarial loss for end-to-end training.
  • Train with Adam, using specified trade-offs lambda_g and lambda_adv to balance losses.

Experimental results

Research questions

  • RQ1Can a shift-based feature rearrangement improve missing-region restoration over pure CNN-based methods?
  • RQ2Does the guidance loss improve the alignment between encoder and decoder features for missing areas?
  • RQ3How does Shift-Net compare to state-of-the-art exemplar-based and CNN-based inpainting methods in terms of texture detail and realism?
  • RQ4What is the trade-off between shift layer placement within the network and inpainting performance?
  • RQ5Is the approach efficient enough for practical use on large datasets and real-world images?

Key findings

  • Shift-Net achieves sharper, finer textures than prior methods on Paris StreetView and Places datasets.
  • On Paris StreetView, Shift-Net attains PSNR 26.51, SSIM 0.90, and mean L2 loss 0.0208, outperforming Content-Aware Fill, Context Encoder, and MNPS.
  • Shift-Net is significantly faster than MNPS, processing 256×256 images in about 80 ms versus ~40 seconds.
  • Ablation shows guidance loss and the shift-connection layer both contribute to improved results and artifact reduction.
  • The method generalizes to real-world images and arbitrary region inpainting, including object removal.
  • Nearest-neighbor-based shift operation is essential for the performance gains compared to random shift-connection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.