As the methods evolve, inversion is mainly divided into two steps. The first step is Image Embedding, in which an encoder or optimization process embeds images to get the corresponding latent codes. Afterward, the second step aims to refine the inversion and editing results, which we named Result Refinement. Although the second step significantly improves fidelity, perception and editability are almost unchanged, deeply dependent on inverse latent codes attained in the first step. Therefore, a crucial problem is gaining the latent codes with better perception and editability while retaining the reconstruction fidelity. In this work, we first point out that these two characteristics are related to the degree of alignment (or disalignment) of the inverse codes with the synthetic distribution. Then, we propose Latent Space Alignment Inversion Paradigm (LSAP), which consists of evaluation metric and solution for this problem. Specifically, we introduce Normalized Style Space ($\mathcal{S^N}$ space) and $\mathcal{S^N}$ Cosine Distance (SNCD) to measure disalignment of inversion methods. Since our proposed SNCD is differentiable, it can be optimized in both encoder-based and optimization-based embedding methods to conduct a uniform solution. Extensive experiments in various domains demonstrate that SNCD effectively reflects perception and editability, and our alignment paradigm archives the state-of-the-art in both two steps. Code is available on https://github.com/caopulan/GANInverter.
翻译:随着方法的演变,倒置主要分为两个步骤。 第一步是图像嵌入( 图像嵌入) 。 第一步是图像嵌入( 嵌入或优化) 嵌入图像以获得相应的潜伏代码。 之后, 第二步旨在改进反演和编辑结果, 我们称之为“ 成果精化 ” 。 虽然第二步大大改进了忠诚、 感知和可编辑性, 几乎没有变化, 深深地依赖于在第一步中取得的反向潜伏代码。 因此, 一个关键问题是获取潜伏代码, 并且有更好的感知和可编辑性。 在这项工作中, 我们首先指出这两个特征与反向代码的匹配( 或不匹配) 的程度有关。 然后, 我们提出“ 远程空间调整配置配置( LSAP), 包括这一问题的评价度度度、 认识和解决方案。 我们引入了正常化的时度空间( mathcal {S&NCSNC ), 可以有效地展示了我们内部的可优化/ 格式化的系统。 。 在SNCD 的模型中, 和内部的模型化( ) 两种方法都可反映我们的最佳化模式的模型的模型的模型的两种方法。