UniHuman: A Unified Model For Editing Human Images in the Wild

Nannan Li, Qing Liu, Krishna Kumar Singh, Yilin Wang, Jianming Zhang, Bryan A. Plummer, Zhe Lin

Introduction

Human image editing has traditionally been a fragmented field, with researchers developing specialized, task-specific models for reposing (altering a person's posture), virtual try-on (swapping garments), and text manipulation (editing clothing via natural language prompts). This isolation ignores the potential for "mutual reinforcement," where learning one task can benefit another. Furthermore, existing models are often biased toward "studio" settings, failing when applied to "in-the-wild" images with complex backgrounds or occlusions. UniHuman addresses these challenges by unifying these tasks into a single, robust diffusion-based framework.

Architectural Innovations

Built upon the foundation of Stable Diffusion (SD), UniHuman introduces several key innovations to achieve its unified capabilities:

Part-Based Encoding

Rather than encoding a person as a single entity, UniHuman utilizes a human parsing model to segment specific parts, such as the face, hair, and clothing layers. Features are extracted using DINOv2 and combined with CLIP text embeddings. This approach preserves fine-grained textures and understands the contextual relationships between different garments, such as how a coat interacts with a shirt.

Training-Free Pose-Warping

A standout feature of UniHuman is its lightweight, training-free pose-warping module. It employs explicit correspondence mapping—using UV maps for reposing and keypoint warping for try-on—to generate warped texture references. By avoiding learned warping weights, the model generalizes significantly better to unseen patterns and textures compared to previous methods.

Conditioning and Texture Control

The framework feeds target poses, warped textures, and partial backgrounds into the SD UNet via a conditioning encoder. To prevent "texture blending" or color bleeding between different regions, a Texture-Aware Loss applies cross-attention constraints, ensuring the model samples from the correct reference features for each specific body part.

Data and Benchmarking

To bridge the gap between laboratory research and real-world application, the authors introduced several new resources:

  • LH-400K: A training dataset of over 400,000 high-quality human image-text pairs from LAION-400M, featuring diverse demographics and backgrounds.
  • WPose & WVTON: New "out-of-domain" evaluation sets designed to test generalization on challenging real-world postures (like dancing or squatting) and diverse garment textures.

Results and Key Insights

UniHuman consistently outperforms specialized state-of-the-art models across nearly all metrics. On the out-of-domain WPose dataset, it achieved an FID of 27.571, a massive improvement over the next best model, DisCo (50.948).

Text-based manipulation allows for seamless garment editing using natural language prompts, demonstrating the model's versatility in modifying textures and styles.

Qualitative results highlight the model's ability to preserve intricate patterns like stripes or logos and handle realistic occlusions, such as hair falling over a newly added garment. Human evaluation studies further confirm this, with users preferring UniHuman in 77% of cases on average across all tasks.

A key insight from the research is the synergy between tasks: training on reposing data actually improves virtual try-on performance. Both tasks essentially teach the model how to map textures onto 3D-aware human shapes.

Conclusion and Future Work

UniHuman represents a significant advancement in unified human image editing. While it currently relies on external pre-processing for pose detection and parsing, its ability to generalize to "in-the-wild" scenarios sets a new benchmark. Future research will likely focus on incorporating more robust 3D information and extending the framework to video human editing, where temporal consistency remains a major challenge.

Summary updated

BibTeX
@inproceedings{li2023unihuman,
  author = {Nannan Li and Qing Liu and Krishna Kumar Singh and Yilin Wang and Jianming Zhang and Bryan A. Plummer and Zhe Lin},
  title = {{UniHuman: A Unified Model For Editing Human Images in the Wild}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure