arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.03589cs.CVcs.GRcs.LG
收藏

基于门控卷积的自由形式图像修补

Free-Form Image Inpainting with Gated Convolution

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Adobe Research(奥多比研究院);ByteDance AI Lab(字节跳动人工智能实验室)

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

摘要:

我们提出了一个生成式图像修补系统来完成图像与自由形式的掩模和指导。该系统基于从数百万张图像中学习的门控卷积,而无需额外的标记工作。所提出的门控卷积解决了将所有输入像素视为有效像素的香草卷积的问题,通过为跨所有层的每个空间位置处的每个通道提供可学习的动态特征选择机制来推广部分卷积。此外,由于自由形式的掩模可以出现在具有任何形状的图像中的任何地方,因此为单个矩形掩模设计的全局和局部GANs不适用。因此,我们还提出了一个基于块的GAN损失,命名为SN-PatchGAN,通过应用频谱归一化的卷积对密集的图像块。SN-PatchGAN配方简单,训练快速稳定。自动图像修补和用户引导扩展的结果表明,我们的系统产生更高的质量和更灵活的结果比以前的方法。我们的系统可以帮助用户快速删除分散注意力的物体,修改图像布局,清除水印和编辑面孔。代码、演示和模型可在https://github.com/JiahuiYu/generative_inpainting上获得

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑