Skip to main content
QUICK REVIEW

[논문 리뷰] MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing

Mingdeng Cao, Xintao Wang|arXiv (Cornell University)|2023. 04. 17.
Generative Adversarial Networks and Image SynthesisComputer Science인용 수 8
한 줄 요약

MasaCtrl은 확산 과정 전반에 걸쳐 self-attention을 상호 자기 주의(mutual self-attention)로 변환하는 튜닝 프리(tuning-free) 접근법을 제시하여 일관된 이미지 생성과 복잡한 비강체(non-rigid) 편집을 달성하며, 전경-배경 혼동을 줄이기 위한 마스크 유도 버전을 포함한다.

ABSTRACT

Despite the success in large-scale text-to-image generation and text-conditioned image editing, existing methods still struggle to produce consistent generation and editing results. For example, generation approaches usually fail to synthesize multiple images of the same objects/characters but with different views or poses. Meanwhile, existing editing methods either fail to achieve effective complex non-rigid editing while maintaining the overall textures and identity, or require time-consuming fine-tuning to capture the image-specific appearance. In this paper, we develop MasaCtrl, a tuning-free method to achieve consistent image generation and complex non-rigid image editing simultaneously. Specifically, MasaCtrl converts existing self-attention in diffusion models into mutual self-attention, so that it can query correlated local contents and textures from source images for consistency. To further alleviate the query confusion between foreground and background, we propose a mask-guided mutual self-attention strategy, where the mask can be easily extracted from the cross-attention maps. Extensive experiments show that the proposed MasaCtrl can produce impressive results in both consistent image generation and complex non-rigid real image editing.

연구 동기 및 목표

  • 같은 객체/장면의 여러 시점에 걸쳐 일관된 생성을 달성하는 데의 격차를 해소한다.
  • 확산 모델을 미세 조정하지 않고도 복잡한 비강체 이미지 편집을 가능하게 한다.
  • 표면 텍스처와 원본 콘텐츠의 정체성을 유지하면서 대상 포즈/구조 변화를 허용한다.
  • 마스크 안내 상호 자기 주의를 통해 전경-배경 쿼리 혼동을 완화한다.
  • 향상된 충실도를 위한 제어 가능한 확산 모델과의 쉬운 통합이 가능한 접근법을 제공한다.

제안 방법

  • 소스 이미지의 내용을 질의하기 위해 확산 모델의 기존 self-attention을 상호 self-attention으로 변환한다(디노이징 중).
  • 확산 단계와 계층에 걸친 교차 어텐션을 통해 대상 이미지에 영향을 주기 위해 소스 확산 과정의 소스 이미지 특징을 사용합니다.
  • 대상 프롬프트를 활용하면서 일관된 합성과 편집을 가능하게 하기 위해 시간 스텝과 계층 위치 제어를 적용한다.
  • 교차 어텐션 맵에서 도출된 마스크를 이용해 전경과 배경을 분리하기 위해 마스크 안내 상호 self-attention을 도입한다.
  • 편집 충실도를 높이기 위한 T2I-Adapter나 ControlNet과 같은 제어 가능한 확산 프레임워크와의 쉬운 통합을 허용한다.

실험 결과

연구 질문

  • RQ1자체 주의(attention)를 재구성하여 소스 이미지의 내용을 질의하고 일관된 편집 및 합성을 달성할 수 있는 방법은 무엇인가?
  • RQ2튜닝 프리(mutual self-attention)가 소스 텍스처와 정체성을 보존하면서 대상 프롬프트로 지정된 포즈/뷰 변경을 가능하게 할 수 있는가?
  • RQ3마스크 안내 상호 자기 주의가 편집 중 전경-배경 쿼리 혼동을 줄일 수 있는가?
  • RQ4 MasaCtrl을 기존의 제어 가능한 확산 도구에 통합하여 비강체 편집 충실도를 향상시킬 수 있는가?
  • RQ5전경과 배경이 유사한 패턴을 공유하는 경우에 상호 자기 주의의 한계는 무엇인가?

주요 결과

  • MasaCtrl은 미세 조정 없이도 일관된 이미지 생성 및 복잡한 비강체 편집을 가능하게 한다.
  • 상호 자기 주의를 통해 소스 이미지의 내용을 질의하여 텍스처와 정체성을 보존하면서 대상 포즈나 시야를 채택할 수 있다.
  • 마스크 안내 상호 자기 주의는 교차 어텐션 맵에서 도출된 마스크를 이용해 전경-배경 쿼리 혼동을 줄인다.
  • 이 접근법은 제어 가능한 확산 시스템과의 통합으로 합성 및 편집 충실도를 더욱 향상시킬 수 있다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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