Skip to main content
QUICK REVIEW

[论文解读] Dynamic Instance Normalization for Arbitrary Style Transfer

Yongcheng Jing, Xiao Liu|arXiv (Cornell University)|Nov 16, 2019
Generative Adversarial Networks and Image SynthesisComputer Science参考文献 30被引用 18
一句话总结

本文提出动态实例归一化(DIN),一种新颖的归一化模块,通过将轻量级内容编码器与复杂风格编码器解耦,实现了高效且灵活的任意风格迁移。与依赖共享、高成本编码器的先前方法不同,DIN 使用动态卷积从风格图像自适应生成归一化参数,实现了超过20倍计算成本降低的最先进风格迁移质量——使基于MobileNet的移动设备上实现实时推理成为可能。

ABSTRACT

Prior normalization methods rely on affine transformations to produce arbitrary image style transfers, of which the parameters are computed in a pre-defined way. Such manually-defined nature eventually results in the high-cost and shared encoders for both style and content encoding, making style transfer systems cumbersome to be deployed in resource-constrained environments like on the mobile-terminal side. In this paper, we propose a new and generalized normalization module, termed as Dynamic Instance Normalization (DIN), that allows for flexible and more efficient arbitrary style transfers. Comprising an instance normalization and a dynamic convolution, DIN encodes a style image into learnable convolution parameters, upon which the content image is stylized. Unlike conventional methods that use shared complex encoders to encode content and style, the proposed DIN introduces a sophisticated style encoder, yet comes with a compact and lightweight content encoder for fast inference. Experimental results demonstrate that the proposed approach yields very encouraging results on challenging style patterns and, to our best knowledge, for the first time enables an arbitrary style transfer using MobileNet-based lightweight architecture, leading to a reduction factor of more than twenty in computational cost as compared to existing approaches. Furthermore, the proposed DIN provides flexible support for state-of-the-art convolutional operations, and thus triggers novel functionalities, such as uniform-stroke placement for non-natural images and automatic spatial-stroke control.

研究动机与目标

  • 解决现有任意风格迁移方法中因对内容和风格编码共用复杂编码器而导致的效率低下与高计算成本问题。
  • 实现在复杂且精细的风格模式(如砖块纹理和均匀笔触)上的高保真风格迁移,这些模式在现有方法中常无法准确传递。
  • 显著降低计算成本,以支持在移动设备和资源受限设备上的部署,同时保持视觉质量。
  • 通过灵活的卷积操作,支持新型功能如非自然图像中的自动空间-笔触控制与均匀笔触定位。
  • 证明基于轻量级MobileNet的架构在结合所提出的DIN模块后,可实现最先进水平的风格迁移性能。

提出的方法

  • 提出动态实例归一化(DIN),一种广义归一化层,结合实例归一化与动态卷积,以生成特定于风格的仿射参数。
  • 使用专用的复杂风格编码器来建模丰富而复杂的风格模式,同时采用轻量级内容编码器以实现快速推理。
  • 利用动态卷积基于风格图像生成实例归一化的缩放与偏移参数,实现自适应且与内容相关的风格迁移。
  • 提出两种变体:可变形DIN用于基于视觉注意力的自动空间-笔触控制,空间自适应DIN用于在非自然图像中实现均匀笔触定位。
  • 设计分层DIN结构,通过多层设计以保留精细图像细节与结构完整性。
  • 在网络架构中使用深度可分离卷积,进一步降低计算复杂度,同时不损失视觉质量。

实验结果

研究问题

  • RQ1通过解耦风格与内容编码,轻量级网络架构是否能实现最先进水平的风格迁移性能?
  • RQ2与固定仿射变换相比,动态卷积参数生成是否能提升复杂风格模式下的风格迁移质量?
  • RQ3所提出的DIN模块是否能在MobileNet等移动端优化架构上实现任意风格迁移?
  • RQ4DIN模块是否能支持新型风格迁移功能,如自动空间-笔触控制与均匀笔触定位?
  • RQ5在与AdaIN相同的设置下,所提出方法在收敛速度与优化稳定性方面相较于现有归一化层有何表现?

主要发现

  • 所提出的基于DIN的方法在处理具有挑战性的图案(如砖块纹理和细笔触)时,实现了最先进水平的视觉质量,优于现有ASPM方法。
  • 该方法首次在基于MobileNet的架构上实现了任意风格迁移,相比先前方法计算成本降低超过20倍。
  • 即使网络复杂度降低二十倍,所提方法仍保持与最先进PSPM模型相当的风格迁移质量。
  • 训练曲线显示,在相同设置下,DIN的收敛速度更快且更稳定,表明其优化行为更优。
  • 分层DIN设计在保留更精细图像细节(如面部特征)方面,优于单层或标准卷积层。
  • 空间自适应DIN变体成功在非自然图像区域生成一致且均匀的笔触,展示了对笔触分布的新型控制能力。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。