Abstract
We propose a Transformer-based framework for 3D human texture estimation from a single image. The proposed Transformer is able to effectively exploit the global information of the input image, overcoming the limitations of existing methods that are solely based on convolutional neural networks. In addition, we also propose a mask-fusion strategy to combine the advantages of the RGB-based and texture-flow-based models. We further introduce a part-style loss to help reconstruct high-fidelity colors without introducing unpleasant artifacts. Extensive experiments demonstrate the effectiveness of the proposed method against state-of-the-art 3D human texture estimation approaches both quantitatively and qualitatively. The project page is at https://www.mmlab-ntu.com/project/texformer.
Introduction
Estimating the 3D texture (represented as a UV map) of a human from a single photo is inherently a problem of spatial misalignment. In standard 2D image tasks, input and output pixels typically correspond spatially. However, in 3D texture estimation, a pixel on a person's back in the UV map might correspond to a non-visible region or a distant part of the 2D input image.
Existing methods primarily rely on Convolutional Neural Networks (CNNs). While effective for local feature extraction, CNNs struggle to capture the global context necessary to bridge the "spatial gap" between a flat image and a wrapped 3D texture. To achieve a sufficient receptive field, CNNs must be extremely deep, which often results in the loss of fine-grained spatial details and difficulty in distributing features across the UV space.
Methodology: The Texformer Framework
To address these limitations, we introduce Texformer, a framework that treats texture estimation as a global information routing problem rather than a local filtering one.
Transformer-Based Texture Estimation
Unlike traditional CNNs, Texformer utilizes a Transformer architecture to "re-shuffle" pixels from the 2D image into the 3D UV space. The core of the system is the Transformer unit, which employs a specialized Query-Key-Value (QKV) setup:
- Query (Q): A pre-computed color encoding of the UV space representing 3D coordinates.
- Key (K): A combination of the input image and its 2D part-segmentation map.
- Value (V): The input image pixels along with their 2D coordinates.
This configuration allows the model to query the input image for specific body parts and accurately map the corresponding colors to the UV space. To manage the high computational cost of high-resolution attention, we implement a low-rank attention approximation, enabling efficient training on standard hardware.
Mask-Fusion and Part-Style Loss
Texformer simultaneously predicts a direct RGB texture and a "texture flow" (indicating which pixels to sample from the original image). A learned mask-fusion strategy then combines these: the flow-based prediction provides sharp details for visible regions, while the RGB prediction fills in occluded areas (e.g., the back) with coherent colors.
Furthermore, we introduce a part-style loss based on Gram-matrix similarity. By comparing the color distribution (style) of specific body parts rather than direct pixel values, the model achieves high color fidelity even when the underlying 3D mesh is slightly misaligned with the input image.
Datasets and Evaluation
The model was trained and evaluated using the Market-1501 dataset, containing thousands of pedestrian images. Additionally, the SURREAL synthetic dataset was utilized to provide realistic human textures for specialized loss components, such as face-structure loss.
Results and Discussion
Texformer sets a new standard for efficiency and quality in 3D human texture estimation:
- Efficiency: Texformer is remarkably efficient, utilizing only 7.6 million parameters. This is approximately 30 times smaller than the 235 million parameters required by the previous leading method, HPBTT.
- Quality: Quantitative evaluations using Cosine Similarity and LPIPS metrics show superior performance. Qualitative user studies confirm that Texformer produces fewer artifacts, particularly on faces, and better preserves complex clothing patterns.
Limitations
The model's reliance on the SMPL body model means it assumes textures are "shrink-wrapped" to the body, which can lead to inaccuracies for very loose clothing like dresses or oversized coats. Additionally, reconstructing the back of a person from a single front-facing image remains a generative challenge.
Conclusion
Texformer represents a significant advancement in 3D human texture estimation by leveraging the global routing capabilities of Transformers. By combining multi-scale attention with an intelligent mask-fusion strategy, it achieves high-fidelity results with a fraction of the parameters used by purely convolutional architectures.
Summary updated