Skip to main content
QUICK REVIEW

[論文レビュー] FreeStyle: Free Lunch for Text-guided Style Transfer using Diffusion Models

Feihong He, Gang Li|arXiv (Cornell University)|Jan 28, 2024
Natural Language Processing TechniquesComputer Science被引用数 3
ひとこと要約

FreeStyleは、事前学習済みの拡散モデルを用いて、最適化不要・参照不要のテキストガイドドスタイル転送手法を提案する。二重ストリームエンコーダと単一ストリームデコーダを導入し、コンテンツとスタイルの特徴を分離する。最適化やスタイル画像を一切使用せず、テキストプロンプトと調整可能なスケーリング係数のみで、スタイル転送の質、コンテンツの保持、美的忠実度において最先端の性能を達成する。

ABSTRACT

The rapid development of generative diffusion models has significantly advanced the field of style transfer. However, most current style transfer methods based on diffusion models typically involve a slow iterative optimization process, e.g., model fine-tuning and textual inversion of style concept. In this paper, we introduce FreeStyle, an innovative style transfer method built upon a pre-trained large diffusion model, requiring no further optimization. Besides, our method enables style transfer only through a text description of the desired style, eliminating the necessity of style images. Specifically, we propose a dual-stream encoder and single-stream decoder architecture, replacing the conventional U-Net in diffusion models. In the dual-stream encoder, two distinct branches take the content image and style text prompt as inputs, achieving content and style decoupling. In the decoder, we further modulate features from the dual streams based on a given content image and the corresponding style text prompt for precise style transfer. Our experimental results demonstrate high-quality synthesis and fidelity of our method across various content images and style text prompts. Compared with state-of-the-art methods that require training, our FreeStyle approach notably reduces the computational burden by thousands of iterations, while achieving comparable or superior performance across multiple evaluation metrics including CLIP Aesthetic Score, CLIP Score, and Preference. We have released the code at: https://github.com/FreeStyleFreeLunch/FreeStyle.

研究の動機と目的

  • 微調整やテキストインバージョンを必要とする従来の拡散モデルベースのスタイル転送手法が抱える高い計算コストと遅い最適化プロセスを解決すること。
  • 芸術的作品へのアクセスのないユーザーが利用可能なように、参照スタイル画像を必要としないテキストガイドドスタイル転送を可能にすること。
  • 事前学習済みの拡散モデル内に二重ストリームアーキテクチャを導入し、コンテンツとスタイルの表現を分離することで、高品質なスタイル転送を実現すること。
  • 既存の大規模なテキストから画像への拡散モデル(例:SDXL)とシームレスに統合できるように、強力なコンテンツ保持と芸術的一貫性を維持すること。

提案手法

  • FreeStyleは、コンテンツ画像とスタイルテキストプロンプトを別々に処理する二重ストリームエンコーダを採用し、コンテンツおよびスタイルに特化した特徴を抽出する。
  • 両ストリームからの特徴を統合・変調する単一ストリームデコーダを用い、スタイル転送の強度を制御するスケーリング係数bと、コンテンツ保持を制御するスケーリング係数sを用いる。
  • スケーリング係数bとsは、FreeUにインspiredされ、低周波数(コンテンツ)と高周波数(スタイル)特徴のバランスをとることで生成品質を向上させる。
  • 本フレームワークはパrameterの更新を一切行わず、SDXLなどの事前学習済み拡散モデルが内蔵する本質的なスタイル生成能力に依存する。
  • ハイパーパrameter σ、b、sはノイズ注入と特徴変調を制御するが、σは逆ノイズプロセスにおけるノイズレベルを支配する。
  • U-Netモジュールを再利用することで新たなパラメータを導入せず、互換性と効率性を確保する。
Figure 1: Illustration depicting process distinctions among Finetune-based, Inversion-based, and our FreeStyle. (a) Fine-tuning the entire model or specific parameters allows embedding a given visual style into the output domain of the generated diffusion model. (b) Embed specific style or content i
Figure 1: Illustration depicting process distinctions among Finetune-based, Inversion-based, and our FreeStyle. (a) Fine-tuning the entire model or specific parameters allows embedding a given visual style into the output domain of the generated diffusion model. (b) Embed specific style or content i

実験結果

リサーチクエスチョン

  • RQ1最適化や参照スタイル画像を一切使用せずに、テキストガイドドスタイル転送を達成できるか?
  • RQ2事前学習済みの拡散モデルがテキストプロンプトのみで多様な芸術的スタイルを生成できるか?
  • RQ3二重ストリームアーキテクチャを用いて、拡散モデル内でコンテンツとスタイルをどの程度分離できるか?
  • RQ4スケーリング係数およびノイズ注入のハイパーパrameterの変動に対して、本手法はどの程度頑健か?
  • RQ5定量的・定性的な指標において、最適化ベースおよびインバージョンベースの既存手法を上回る性能を示せるか?

主な発見

  • FreeStyleは最高のCLIP美意識点数(6.3148)とCLIPスコア(25.615)を達成し、CLIPstyler、CAST、UDT2Iを含むすべてのベースラインを上回った。
  • 人間の好み評価において、54.6%の比較で1位にランクされ、他の手法を顕著に上回った。
  • ハイパーパrameterの変動に対して強い頑健性を示し、最適な性能はb=2.5、s=1で達成され、広範な設定範囲で安定した結果を示した。
  • コンテンツ入力にノイズを増加させることでコンテンツ情報が消失(ρ=999)するが、筆致や線の特徴といったスタイル特徴が保持されることから、コンテンツ・スタイルの分離が妥当であると検証された。
  • σが850を超えるとスタイル転送品質が向上するが、σが小さすぎると性能が急激に低下するため、逆ノイズプロセスにおけるノイズレベルに敏感であることが示された。
  • 微調整、インバージョン、参照画像を一切使用せず、最先端の結果を達成した。これは真の「無料のランチ」スタイル転送への重要な一歩である。
Figure 2: The overview of our FreeStyle Framework. (a) Model Structure of FreeStyle. Our dual-stream encoder generates the content feature $f_{c}$ guided by the input content image $x_{0}$ , and the style feature $f_{s}$ guided by the input style text prompt and noisy image $x_{\sigma}$ . In the sin
Figure 2: The overview of our FreeStyle Framework. (a) Model Structure of FreeStyle. Our dual-stream encoder generates the content feature $f_{c}$ guided by the input content image $x_{0}$ , and the style feature $f_{s}$ guided by the input style text prompt and noisy image $x_{\sigma}$ . In the sin

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。