HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Free-Form Image Inpainting with Gated Convolution

Jiahui Yu; Zhe Lin; Jimei Yang; Xiaohui Shen; Xin Lu; Thomas Huang

Free-Form Image Inpainting with Gated Convolution

Abstract

We present a generative image inpainting system to complete images with free-form mask and guidance. The system is based on gated convolutions learned from millions of images without additional labelling efforts. The proposed gated convolution solves the issue of vanilla convolution that treats all input pixels as valid ones, generalizes partial convolution by providing a learnable dynamic feature selection mechanism for each channel at each spatial location across all layers. Moreover, as free-form masks may appear anywhere in images with any shape, global and local GANs designed for a single rectangular mask are not applicable. Thus, we also present a patch-based GAN loss, named SN-PatchGAN, by applying spectral-normalized discriminator on dense image patches. SN-PatchGAN is simple in formulation, fast and stable in training. Results on automatic image inpainting and user-guided extension demonstrate that our system generates higher-quality and more flexible results than previous methods. Our system helps user quickly remove distracting objects, modify image layouts, clear watermarks and edit faces. Code, demo and models are available at: https://github.com/JiahuiYu/generative_inpainting

Code Repositories

feixuetuba/inpainting
pytorch
Mentioned in GitHub
btxuyenHCMUS/generative
tf
Mentioned in GitHub
nipponjo/deepfillv2-pytorch
pytorch
Mentioned in GitHub
huynhhoanghuy/Image-Inpainting
tf
Mentioned in GitHub
vrindaprabhu/deepfillv2_colab
pytorch
Mentioned in GitHub
feixuetuba/inpating
pytorch
Mentioned in GitHub
boge8888/Watermark-removal-GUI
tf
Mentioned in GitHub
TerminatorSd/generative
tf
Mentioned in GitHub
avalonstrel/GatedConvolution
tf
Mentioned in GitHub
CS269-Capstone/t-snake-capstone
tf
Mentioned in GitHub
xurongchao/mv-inpainting
tf
Mentioned in GitHub
g2zac/generative_inpainting
tf
Mentioned in GitHub
rajprakrit/DeepFillv2
pytorch
Mentioned in GitHub
JiahuiYu/generative_inpainting
Official
tf
Mentioned in GitHub
btxuyenHCMUS/inpainting
tf
Mentioned in GitHub
katychou/generative01
tf
Mentioned in GitHub
zuruoke/watermark-removal
tf
Mentioned in GitHub
nuneslu/VeIGAN
tf
Mentioned in GitHub
csqiangwen/DeepFillv2_Pytorch
pytorch
Mentioned in GitHub
Ir1d/tf-models
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-inpainting-on-places2-1DeepFill v2
FID: 9.27
P-IDS: 4.01
U-IDS: 21.32
image-inpainting-on-places2-valDeepFillv2 (128×128 center mask)
FID: 15.3
PD: 96.3
image-inpainting-on-places2-valDeepFillv2 (20-30% free form)
FID: 13.5
PD: 63.0

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp