Skip to main content
QUICK REVIEW

[论文解读] Any-to-Any Style Transfer: Making Picasso and Da Vinci Collaborate

Songhua Liu, Jingwen Ye|arXiv (Cornell University)|Apr 19, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

本文提出了一种名为 Any-to-Any Style Transfer 的用户交互式方法,通过允许用户在风格图像中选择特定区域,并将这些区域的风格应用到内容图像的对应区域,实现个性化风格迁移。该方法利用 Segment Anything Model (SAM) 实现基于点击的快速区域分割,并通过注意力融合模块指导用户定义区域的风格迁移,从而提升控制能力,并可与任意现有风格迁移模型无缝集成,即插即用。

ABSTRACT

Style transfer aims to render the style of a given image for style reference to another given image for content reference, and has been widely adopted in artistic generation and image editing. Existing approaches either apply the holistic style of the style image in a global manner, or migrate local colors and textures of the style image to the content counterparts in a pre-defined way. In either case, only one result can be generated for a specific pair of content and style images, which therefore lacks flexibility and is hard to satisfy different users with different preferences. We propose here a novel strategy termed Any-to-Any Style Transfer to address this drawback, which enables users to interactively select styles of regions in the style image and apply them to the prescribed content regions. In this way, personalizable style transfer is achieved through human-computer interaction. At the heart of our approach lies in (1) a region segmentation module based on Segment Anything, which supports region selection with only some clicks or drawing on images and thus takes user inputs conveniently and flexibly; (2) and an attention fusion module, which converts inputs from users to controlling signals for the style transfer model. Experiments demonstrate the effectiveness for personalizable style transfer. Notably, our approach performs in a plug-and-play manner portable to any style transfer method and enhance the controllablity. Our code is available \href{https://github.com/Huage001/Transfer-Any-Style}{here}.

研究动机与目标

  • 解决现有风格迁移方法在内容-风格对组合下仅生成单一固定结果的局限性,该局限性无法满足多样化的用户审美偏好。
  • 通过允许用户选择特定风格区域并将其应用于指定内容区域,实现细粒度、用户主导的风格应用。
  • 开发一种用户友好的界面,仅通过点击、框选或轮廓等最少输入方式,利用 Segment Anything Model (SAM) 实现区域选择。
  • 在不需重新训练或修改网络架构的前提下,增强任意风格迁移方法的可控性。
  • 设计一个即插即用模块,可与任意预训练风格迁移模型集成,以支持个性化、区域级的风格应用。

提出的方法

  • 利用 Segment Anything Model (SAM) 基于简单的提示(如点击、边界框或自由轮廓)为内容图像和风格图像生成高质量、用户引导的分割掩码。
  • 通过用户定义的掩码配对过程,将用户选择的内容区域映射到对应的风格区域,建立区域间的对应关系。
  • 提出一种注意力融合模块,通过重新加权注意力分数,修改默认的内容-风格注意力图,以优先考虑用户选定的风格区域。
  • 将用户控制信号注入注意力机制,使用户标记的内容区域仅关注指定的风格区域,而未标记区域则遵循默认的风格迁移行为。
  • 作为插件模块运行,可无缝集成到任意现有任意风格迁移模型中,无论其底层架构如何(例如 WCT、AdaIN 或基于扩散的方法)。
  • 采用两阶段流程:(1) SAM 根据用户提示生成内容和风格的掩码;(2) 注意力融合模块调整注意力图以反映用户偏好,再进行特征解码。

实验结果

研究问题

  • RQ1用户能否在风格迁移任务中有效且灵活地控制将哪些风格区域应用到哪些内容区域?
  • RQ2仅通过最少的用户输入(如几次点击或一个边界框)是否能够实现准确且有意义的区域分割以支持风格迁移?
  • RQ3所提出的方法是否可普遍应用于任意预训练风格迁移模型而无需重新训练?
  • RQ4注意力融合机制是否能成功引导模型应用用户选定的风格,同时保持输出的语义一致性?
  • RQ5与标准风格迁移相比,该方法能否实现更符合个体用户偏好的个性化风格化结果?

主要发现

  • 该方法仅需几次点击或简单提示即可实现交互式、区域特定的风格迁移,显著提升了用户对风格化结果的控制能力。
  • 实验表明,该方法在包含多个用户定义掩码的复杂场景中仍表现出色,展现出强大的鲁棒性与灵活性。
  • 即插即用的设计使其可与多种风格迁移模型集成,包括基于全局变换的方法(如 AdaIN、WCT)和基于注意力的方法,从而增强其可控性。
  • 注意力融合模块成功修改了注意力图,优先考虑用户选定的风格区域,生成的风格化输出与用户意图高度一致。
  • 该方法支持多种用户输入方式,包括点提示、边界框和自由轮廓,在不同交互模式下均保持一致的性能表现。
  • 在主观用户评估中,该方法优于标准风格迁移,通过支持个性化风格应用,更符合个体用户的审美偏好。

阅读本论文

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

在 Nubint 中阅读本论文

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