arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.14552cs.CVeess.IV
收藏

用于图像生成的生成对抗网络中的空间潜在表示

Spatial Latent Representations in Generative Adversarial Networks for Image Generation

University of Warsaw(华沙大学)

Maciej Sypetkowski

摘要:

在大多数GAN架构中,潜在空间被定义为给定维度的向量集合。这种表示不容易解释,并且不直接捕获图像内容的空间信息。在这项工作中,我们为StyleGAN 2定义了一系列空间潜在空间,能够捕捉更多细节并表示在对象部分的数量和排列方面超出样本的图像,例如多张脸的图像或具有两只以上眼睛的脸。我们提出了一种方法,将图像编码到我们的空间中,以及能够在这些空间中执行属性编辑的属性模型。我们表明,我们的空间是有效的图像处理和编码语义信息。我们的方法可以用于预先训练的生成器模型,并且可以使用预先生成的方向向量进行属性编辑,从而使实验和使用的进入障碍非常低。我们提出了一种正则化方法来优化潜在的表示,它均衡潜在空间的部分分布,使表示更接近生成的。我们使用它将图像编码到空间中,以获得质量的显着提高,同时保持语义和使用我们的属性模型进行编辑的能力。总的来说,使用我们的方法,与标准方法相比,在LPIPS得分方面,编码质量甚至提高了30%,同时保持了语义。此外,我们提出了一个StyleGAN2训练程序在我们的空间潜在空间,以及一个自定义的空间潜在表示分布,使空间上更接近的元素在表示更依赖于彼此比更远的元素。这种方法在SpaceNet上将FID分数提高了29%,并且能够在空间均匀的数据集上生成任意大小的一致图像,如卫星图像。

英文摘要:

In the majority of GAN architectures, the latent space is defined as a set of vectors of given dimensionality. Such representations are not easily interpretable and do not capture spatial information of image content directly. In this work, we define a family of spatial latent spaces for StyleGAN2, capable of capturing more details and representing images that are out-of-sample in terms of the number and arrangement of object parts, such as an image of multiple faces or a face with more than two eyes. We propose a method for encoding images into our spaces, together with an attribute model capable of performing attribute editing in these spaces. We show that our spaces are effective for image manipulation and encode semantic information well. Our approach can be used on pre-trained generator models, and attribute edition can be done using pre-generated direction vectors making the barrier to entry for experimentation and use extremely low. We propose a regularization method for optimizing latent representations, which equalizes distributions of parts of latent spaces, making representations much closer to generated ones. We use it for encoding images into spatial spaces to obtain significant improvement in quality while keeping semantics and ability to use our attribute model for edition purposes. In total, using our methods gives encoding quality boost even as high as 30% in terms of LPIPS score comparing to standard methods, while keeping semantics. Additionally, we propose a StyleGAN2 training procedure on our spatial latent spaces, together with a custom spatial latent representation distribution to make spatially closer elements in the representation more dependent on each other than farther elements. Such approach improves the FID score by 29% on SpaceNet, and is able to generate consistent images of arbitrary sizes on spatially homogeneous datasets, like satellite imagery.

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

↑