Text2Human: text-driven controllable human image generation

Yuming Jiang, Shuai Yang, Haonan Qju, Wayne Wu, Chen Change Loy, Ziwei Liu

TL;DR

Text2Human is a two-stage framework that generates high-quality, full-body human images from a given pose and natural language descriptions. By combining a hierarchical, texture-aware codebook with a "Mixture-of-Experts" sampler, it achieves fine-grained control over clothing shapes and intricate textures (like floral patterns or denim) while running significantly faster than previous hierarchical models.

What Problem Does This Paper Address?

Generating realistic human images is a "boss level" task in computer vision. Unlike faces, which have a relatively consistent structure, human bodies involve a massive variety of poses and an even wider array of clothing.

Existing generative models (like GANs) often struggle with two things:

  1. Diversity of Texture: They tend to produce "safe," plain-colored clothes because complex patterns like stripes or lattices are mathematically harder to model without blurring.
  2. Intuitive Control: Most models don't allow a "layman" user to simply type "a person in a floral T-shirt and denim jeans" and get a high-fidelity result that actually matches the description.

The authors aim to bridge this gap by creating a system that decomposes the generation process into manageable steps: first defining the shape of the clothes, then filling in the textures.

Methods

The Text2Human framework operates in two distinct stages:

Stage I: Pose to Parsing

The system takes a human pose (represented by DensePose) and text describing the shape (e.g., "short-sleeve T-shirt," "long pants"). It translates these into a human parsing map—a pixel-level mask that labels which parts of the image are skin, hair, or specific clothing items.

Stage II: Parsing to Human (The "Secret Sauce")

This is where the heavy lifting happens. To handle complex textures, the authors use a Hierarchical VQVAE (Vector Quantized Variational AutoEncoder).

  • Texture-Aware Codebooks: Instead of one giant "dictionary" of visual patterns, they build separate codebooks for different textures. This prevents the model from getting confused between, say, the structural look of denim and the repetitive pattern of stripes.
  • Mixture-of-Experts (MoE) Sampler: When you type a text prompt, a "router" sends the data to specific "expert" heads in a diffusion-based transformer. A "floral expert" handles floral prompts, while a "denim expert" handles denim.
  • Feed-Forward Refinement: Standard hierarchical models are notoriously slow because they sample every level of detail step-by-step. Text2Human uses a feed-forward network to predict fine-grained details directly from the coarse structural level. This reduces sampling time from 25 minutes to just 0.6 seconds.

Datasets

The authors introduced a new benchmark: DeepFashion-MultiModal.

  • Scale: 11,484 high-resolution images (1024x512).
  • Annotations: It includes 24 semantic parsing classes, dense pose maps, and manual labels for clothing shapes (neckline, sleeve length) and textures (color, fabric type).
  • Significance: This provides much richer supervision than previous versions of the DeepFashion dataset, which lacked fine-grained texture labels.

Key Insights and Ideas

  • Decomposition is Key: By separating shape from texture, the model doesn't have to learn everything at once. The parsing map acts as a "blueprint" that simplifies the final image synthesis.
  • The "Averaging" Problem: Traditional models often "average" textures, leading to blurry results. Using separate codebooks for different materials ensures that a floral pattern stays crisp and distinct from a solid color.
  • Parallelism for Speed: Moving away from autoregressive (pixel-by-pixel or token-by-token) sampling at the fine level is what makes this tool interactive and usable for real-time applications.

Key Results

  • Visual Quality: Text2Human achieved an FID score of 22.95, significantly outperforming state-of-the-art models like Pix2PixHD (39.80) and SPADE (30.13). A lower FID indicates images that are statistically closer to real photos.
  • Texture Accuracy: In user studies and automated tests, the model was vastly better at generating difficult textures. For "floral" patterns, it achieved 70.59% accuracy, compared to just 8.82% for previous VAE-based methods.
  • Efficiency: As mentioned, the sampling process is roughly 2500x faster than standard hierarchical VQVAE2 methods.

Limitations and Future Work

  • Uncommon Poses: The model still struggles with "extreme" poses, such as legs being tightly crossed, which can lead to visual artifacts.
  • Data Imbalance: Some textures, like plaid, are still slightly blurry because they appear less frequently in the training data (only 162 images out of 10,000+).
  • Fixed Vocabulary: The current system relies on a predefined set of attributes. Future work could involve using more flexible, open-ended natural language processing to handle any description a user might dream up.

Summary updated

BibTeX
@article{jiang2022text,
  author = {Yuming Jiang and Shuai Yang and Haonan Qju and Wayne Wu and Chen Change Loy and Ziwei Liu},
  title = {{Text2Human: text-driven controllable human image generation}},
  journal = {ACM Trans. Graphics},
  year = {2022},
  url = {https://openreview.net/forum?id=Nq8n-sZW2x4},
}
Figure