Skip to main content
QUICK REVIEW

[논문 리뷰] FreeStyle: Free Lunch for Text-guided Style Transfer using Diffusion Models

Feihong He, Gang Li|arXiv (Cornell University)|2024. 01. 28.
Natural Language Processing TechniquesComputer Science인용 수 3
한 줄 요약

FreeStyle는 사전 훈련된 확산 모델을 사용하여 훈련 비용이 들지 않고 참조 이미지도 필요 없는 텍스트 지도 스타일 전이 방법을 제안한다. 이는 콘텐츠와 스타일 특징을 분리하는 이중 스트림 인코더와 단일 스트림 디코더를 도입함으로써 달성된다. 이 방법은 최적화나 스타일 이미지 없이도 스타일 전이 품질, 콘텐츠 유지도, 미학적 정확도에서 최신 기술 수준(SOTA) 성능을 달성한다. 사용자는 텍스트 프롬프트와 조정 가능한 스케일링 요소만으로 작동한다.

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는 저주파(콘텐츠) 및 고주파(스타일) 특징 간 균형을 맞추기 위해 사용되며, FreeU에서 영감을 받아 생성 품질을 향상시킨다.
  • 이 프레임워크는 파rameter 업데이트 없이도 작동하며, 사전 훈련된 확산 모델(SDXL 등)의 내재된 스타일 생성 능력에 의존한다.
  • 하이퍼파ram터 σ, b, s는 노이즈 주입과 특징 조절을 제어하기 위해 조정되며, σ는 노이즈 제거 과정에서의 노이즈 수준을 조절한다.
  • 새로운 파rameter를 도입하지 않고 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스케일링 요소와 노이즈 주입에 대한 하이퍼파ram터 변화에 대해 이 방법의 성능이 얼마나 강인한가?
  • RQ5정량적 및 정성적 지표에서 기존의 최적화 기반 및 인버전 기반 스타일 전이 기법보다 우수한 성능을 보이는가?

주요 결과

  • FreeStyle는 CLIP 미학 점수(6.3148)와 CLIP 점수(25.615)에서 최고 기록을 기록하며, CLIPstyler, CAST, UDT2I 등 모든 베이스라인을 앞서며 최신 기술 수준(SOTA) 성능을 달성했다.
  • 사람의 선호도 평가에서 FreeStyle는 54.6%의 비교에서 1위를 차지하여 다른 방법들에 비해 뚜렷한 우위를 보였다.
  • 하이퍼파ram터 변화에 대해 강건한 성능을 보이며, b=2.5와 s=1에서 최적 성능을 기록했고, 넓은 설정 범위에서 안정적인 결과를 보였다.
  • 콘텐츠-스타일 분리가 검증되었으며, 콘텐츠 입력에 노이즈를 증가시킬 경우(ρ=999), 콘텐츠 정보는 사라지지만 브러시 스토크와 선 등 스타일 특징은 유지됨을 확인했다.
  • σ가 850을 초과할 경우 스타일 전이 품질이 향상되지만, 너무 작은 σ 값일 경우 성능이 급격히 떨어지므로 노이즈 수준에 민감한 것을 확인했다.
  • FreeStyle는 모든 미세조정, 인버전, 참조 이미지 없이도 최신 기술 수준의 성능을 달성하여 진정으로 '무료 점심' 스타일 전이로의 중요한 도약을 이룬다.
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

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.