Table of Contents
Fetching ...

MagicFace: Training-free Universal-Style Human Image Customized Synthesis

Yibin Wang, Weizhong Zhang, Cheng Jin

TL;DR

This paper proposes MagicFace, a novel training-free method for multi-concept universal-style human image personalized synthesis, and introduces a coarse-to-fine generation pipeline, involving two sequential stages: semantic layout construction and concept feature injection.

Abstract

Current human image customization methods leverage Stable Diffusion (SD) for its rich semantic prior. However, since SD is not specifically designed for human-oriented generation, these methods often require extensive fine-tuning on large-scale datasets, which renders them susceptible to overfitting and hinders their ability to personalize individuals with previously unseen styles. Moreover, these methods extensively focus on single-concept human image synthesis and lack the flexibility to customize individuals using multiple given concepts, thereby impeding their broader practical application. This paper proposes MagicFace, a novel training-free method for multi-concept universal-style human image personalized synthesis. Our core idea is to simulate how humans create images given specific concepts, i.e., first establish a semantic layout considering factors such as concepts' shape and posture, then optimize details by comparing with concepts at the pixel level. To implement this process, we introduce a coarse-to-fine generation pipeline, involving two sequential stages: semantic layout construction and concept feature injection. This is achieved by our Reference-aware Self-Attention (RSA) and Region-grouped Blend Attention (RBA) mechanisms. In the first stage, RSA enables the latent image to query features from all reference concepts simultaneously, extracting the overall semantic understanding to facilitate the initial semantic layout establishment. In the second stage, we employ an attention-based semantic segmentation method to pinpoint the latent generated regions of all concepts at each step. Following this, RBA divides the pixels of the latent image into semantic groups, with each group querying fine-grained features from the corresponding reference concept. Extensive experiments demonstrate the superiority of our MagicFace.

MagicFace: Training-free Universal-Style Human Image Customized Synthesis

TL;DR

This paper proposes MagicFace, a novel training-free method for multi-concept universal-style human image personalized synthesis, and introduces a coarse-to-fine generation pipeline, involving two sequential stages: semantic layout construction and concept feature injection.

Abstract

Current human image customization methods leverage Stable Diffusion (SD) for its rich semantic prior. However, since SD is not specifically designed for human-oriented generation, these methods often require extensive fine-tuning on large-scale datasets, which renders them susceptible to overfitting and hinders their ability to personalize individuals with previously unseen styles. Moreover, these methods extensively focus on single-concept human image synthesis and lack the flexibility to customize individuals using multiple given concepts, thereby impeding their broader practical application. This paper proposes MagicFace, a novel training-free method for multi-concept universal-style human image personalized synthesis. Our core idea is to simulate how humans create images given specific concepts, i.e., first establish a semantic layout considering factors such as concepts' shape and posture, then optimize details by comparing with concepts at the pixel level. To implement this process, we introduce a coarse-to-fine generation pipeline, involving two sequential stages: semantic layout construction and concept feature injection. This is achieved by our Reference-aware Self-Attention (RSA) and Region-grouped Blend Attention (RBA) mechanisms. In the first stage, RSA enables the latent image to query features from all reference concepts simultaneously, extracting the overall semantic understanding to facilitate the initial semantic layout establishment. In the second stage, we employ an attention-based semantic segmentation method to pinpoint the latent generated regions of all concepts at each step. Following this, RBA divides the pixels of the latent image into semantic groups, with each group querying fine-grained features from the corresponding reference concept. Extensive experiments demonstrate the superiority of our MagicFace.
Paper Structure (25 sections, 4 equations, 17 figures, 5 tables)

This paper contains 25 sections, 4 equations, 17 figures, 5 tables.

Figures (17)

  • Figure 1: Results of single/multi-concept customization for humans across diverse styles. Each instance comprises two distinct inputs: a textual description, and a set of reference concept images. MagicFace is capable of generating high-fidelity images depicting the specific individual of any style with multiple given concepts in a training-free manner. Best viewed on screen.
  • Figure 2: Qualitative comparison on human-centric subject-to-image generation.
  • Figure 3: Overview of our MagicFace. Given reference images, their segmentation masks, and text prompts, we generate personalized image $\textbf{z}_{0}$ aligned to the target prompt $P$. The sampling pipeline consists of two paths: (a) the reference path and (b) the customization path. In (a), we first employ a diffusion forward process on the reference images. Then, the noised reference latents are input into vanilla U-Net. In (b), we first sample a Gaussian noise $\textbf{z}_T$ and introduce a coarse-to-fine generation process involving two sequential stages: semantic layout construction and concept feature injection. At each step $t$, we pass latent $\textbf{z}_t$ to our modified U-Net: (1) in the first stage, we employ RSA to integrate the features from the reference path to facilitate the initial semantic scene construction; (2) in the second stage, we first obtain the latent semantic map of $\textbf{z}_{t}$ via attention-based segmentation method. Based on this, RBA divides the latent image and ensures fine-grained feature injection for each generated concept. A weighted mask strategy is adopted to ensure the model focuses more on given concepts.
  • Figure 4: Visualization of semantic maps derived by$\textbf{C}_t$and$\hat{\textbf{C}}_t$. Regions labeled with different colors correspond to different concepts. Problematic regions are highlighted using the outline.
  • Figure 5: Visualized results under different weight settings$w$. Problematic regions are highlighted using the outline.
  • ...and 12 more figures