arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.08455cs.CV
收藏

基于判别器自监督的GANs空间可控性

Spatial Steerability of GANs via Self-Supervision from Discriminator

University of Oxford(牛津大学);University of California, Los Angeles(加州大学洛杉矶分校);Chinese University of Hong Kong(香港中文大学);Ant Group(蚂蚁集团);Australian National University(澳大利亚国立大学)

Jianyuan Wang, Lalit Bhagat, Ceyuan Yang, Yinghao Xu, Yujun Shen, Hongdong Li, Bolei Zhou

AI总结:

提出一种基于判别器自监督的方法,通过将高斯热图编码为空间归纳偏置并整合DragGAN,实现了无需额外标注的GANs空间可控性,支持多场景的细粒度编辑并提升合成质量。

摘要:

近年来,生成模型在照片级真实图像合成方面取得了巨大进展。为了让人类能够引导图像生成过程并定制输出,许多研究探索了GANs中潜在空间的可解释维度。现有方法通过沿特定方向改变潜在代码来编辑输出图像的属性,如方向或配色方案。然而,这些方法通常需要为每个预训练模型提供额外的人工标注,且大多专注于编辑全局属性。在本工作中,我们提出了一种自监督方法来提升GANs的空间可控性,无需在潜在空间中搜索可控方向或要求额外标注。具体而言,我们设计随机采样的高斯热图,将其编码到生成模型的中间层作为空间归纳偏置。在从头训练GAN模型的过程中,这些热图以自监督学习的方式与GAN判别器涌现的注意力进行对齐。在推理阶段,用户可以直观地与空间热图交互,通过调整场景布局、移动或移除对象来编辑输出图像。此外,我们将DragGAN整合到我们的框架中,这有助于在合理时间内实现细粒度操作,并支持从粗到精的编辑过程。大量实验表明,所提方法不仅能在人脸、动物脸、室外场景和复杂的多对象室内场景上实现空间编辑,还带来了合成质量的提升。代码、模型和演示视频可在https://genforce.github.io/SpatialGAN/获取。

英文摘要:

Generative models make huge progress to the photorealistic image synthesis in recent years. To enable human to steer the image generation process and customize the output, many works explore the interpretable dimensions of the latent space in GANs. Existing methods edit the attributes of the output image such as orientation or color scheme by varying the latent code along certain directions. However, these methods usually require additional human annotations for each pretrained model, and they mostly focus on editing global attributes. In this work, we propose a self-supervised approach to improve the spatial steerability of GANs without searching for steerable directions in the latent space or requiring extra annotations. Specifically, we design randomly sampled Gaussian heatmaps to be encoded into the intermediate layers of generative models as spatial inductive bias. Along with training the GAN model from scratch, these heatmaps are being aligned with the emerging attention of the GAN's discriminator in a self-supervised learning manner. During inference, users can interact with the spatial heatmaps in an intuitive manner, enabling them to edit the output image by adjusting the scene layout, moving, or removing objects. Moreover, we incorporate DragGAN into our framework, which facilitates fine-grained manipulation within a reasonable time and supports a coarse-to-fine editing process. Extensive experiments show that the proposed method not only enables spatial editing over human faces, animal faces, outdoor scenes, and complicated multi-object indoor scenes but also brings improvement in synthesis quality. Code, models, and demo video are available at https://genforce.github.io/SpatialGAN/.

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

↑