任意到任意风格迁移:让毕加索与达·芬奇协作
Any-to-Any Style Transfer: Making Picasso and Da Vinci Collaborate
AI总结:
针对传统风格迁移对固定图像对只能产生单一结果、缺乏个性化控制的问题,本文提出 Any-to-Any Style Transfer,结合 Segment Anything 区域分割与注意力融合,实现用户交互式的区域级风格选择与迁移,并可即插即用地增强现有方法的可控性。
摘要:
风格迁移旨在将给定风格参考图像的风格渲染到另一给定内容参考图像上,并已被广泛应用于艺术生成和图像编辑。现有方法要么以全局方式应用风格图像的整体风格,要么以预定义方式将风格图像的局部颜色和纹理迁移到内容图像的对应部分。无论哪种情况,对于一对特定的内容图像和风格图像,只能生成一个结果,因此缺乏灵活性,难以满足具有不同偏好的不同用户。我们在此提出一种名为 Any-to-Any Style Transfer(任意到任意风格迁移)的新颖策略来解决这一缺陷,它使用户能够交互式地选择风格图像中区域的风格,并将其应用到指定的内容区域。通过这种方式,可借助人机交互实现个性化风格迁移。我们方法的核心在于:(1)一个基于 Segment Anything 的区域分割模块,它仅需在图像上点击数次或进行涂画即可支持区域选择,从而方便、灵活地接收用户输入;(2)一个注意力融合模块,它将来自用户的输入转换为风格迁移模型的控制信号。实验证明了该方法在个性化风格迁移方面的有效性。值得注意的是,我们的方法以即插即用的方式运行,可移植到任意风格迁移方法并增强其可控性。我们的代码可在 https://github.com/Huage001/Transfer-Any-Style 获取。
英文摘要:
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}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。