An Optimization Framework to Enforce Multi-View Consistency for Texturing 3D Meshes Using Pre-Trained Text-to-Image Models

Zhengyi Zhao, Chen Song, Xiaodong Gu, Yuan Dong, Qi Zuo, Weihao Yuan, Zilong Dong, Liefeng Bo, Qixing HuangarXiv 2024

TL;DR

This paper introduces an optimization framework that generates high-quality, consistent textures for 3D meshes using pre-trained text-to-image diffusion models. By combining an over-complete view generation strategy with a four-stage optimization process—selection, alignment, and iterative stitching—the method avoids the common pitfalls of blurriness and local feature inconsistencies found in existing state-of-the-art approaches.

What Problem Does This Paper Address?

While text-to-image (T2I) models like Stable Diffusion can generate stunning 2D images, applying them to 3D objects remains a major challenge. The core issue is multi-view consistency: how do you ensure that a texture generated from the front of a 3D model matches perfectly with a texture generated from the side?

Existing methods typically fall into two camps:

  1. Averaging-based: They generate multiple views and average them in overlapping regions. This often leads to "ghosting" or significant blurriness.
  2. 3D-data-driven: They train models on rendered 3D data to enforce consistency. While this improves alignment, these models often overfit to the training data, losing the rich, photorealistic details found in pure 2D T2I models.

The authors aim to bridge this gap, retaining the high-fidelity details of 2D diffusion while ensuring the final 3D texture is seamless and globally consistent.

Methods

The authors propose a four-stage pipeline to transform a 3D mesh and a text prompt into a textured object:

  1. Stage I: View Generation: Instead of generating just enough views to cover the object, the system generates an over-complete set of RGB-D images. It uses a three-phase diffusion process: starting with a 3D prior for global shape, moving to latent UV mapping for mid-level consistency, and finishing with independent diffusion to capture fine-grained texture details.
  2. Stage II: View Selection: Not all generated views are equally good or consistent. The framework selects an optimal subset of views by solving a Quadratic Assignment Problem, relaxed into a Semi-Definite Program (SDP). The goal is to maximize mutual consistency and image quality while ensuring the entire 3D mesh is covered.
  3. Stage III: View Alignment: To fix remaining discrepancies, the system performs non-rigid alignment. This includes a color adjustment step to fix illumination differences and a joint image warping step (using SIFTFlow) to align local features across overlapping views.
  4. Stage IV: Texture Stitching: The mesh faces are assigned to specific views by solving a second-order Markov Random Field (MRF) problem. This "cuts and stitches" the images together along the most consistent boundaries.

Crucially, Stages III and IV are iterated. The cuts found in the stitching stage guide the alignment stage to focus its warping efforts specifically on the regions near the seams, leading to a much smoother final result.

Fig. 2: The overall pipeline of our approach, which consists of four stages. The first stage (view generation) uses a pre-trained text-to-image model to generate an over- complete set of RGB-D images of the input model. The second stage (view selection) selects a subset of consistent RGB-D images from the view generation output. The third stage (view alignment) performs non-rigid warping to further improve the multi-view consistency among the selected images. The last stage (texture stitching) produces cuts between pairs of overlapping images by solving a second-order MRF problem.

Datasets

The researchers evaluated their framework using:

  • Objaverse: A large-scale dataset of 3D objects. They collected 300 models across various categories for quantitative testing.
  • Comparison Models: They also used 20 models commonly featured in other text-to-texture literature to facilitate direct qualitative comparisons.
  • GObjaverse: Used specifically for fine-tuning the 3D prior in the initial stage of view generation.

Key Insights and Ideas

  • Over-completeness is a Feature: By generating more views than necessary and then selecting the most consistent ones, the system can "cherry-pick" the best outputs from the inherently stochastic diffusion process.
  • Iterative Seam Refinement: Rather than trying to align entire images perfectly (which is often impossible due to perspective shifts), the model focuses on alignment near the MRF-defined "cuts." This local focus makes the stitching significantly more robust.
  • Addressing Three Types of Inconsistency: The authors explicitly categorize and solve for three distinct issues: appearance changes due to camera pose, illumination variations, and local feature drifts.
Fig. 3: Three types of multi-view inconsistencies from pre-trained text-to-image mod- els. (a) The appearance of the image content may change significantly, even with slight perturbations in the camera pose (see the bottom row). (b) There are variations in illumination among overlapping regions of different views. (c) There are drifts in the detail of the image between overlapping regions of different views. (The left column images in (b) and (c) are warped with each other.)

Key Results

The proposed method, dubbed ConsistenTex, was compared against several baselines including Latent-NeRF, TEXTure, Text2Tex, SyncMVD, and Zero123++.

  • Quantitative: ConsistenTex achieved the best FID (Fréchet Inception Distance) score of 29.26, significantly lower (better) than the next best competitor, SyncMVD (33.92).
  • User Study: In a study with 87 participants, the method ranked highest across four metrics: Natural Color, More Details, Less Artifacts, and Alignment with Prompt.
  • Qualitative: Visual results show much sharper details and fewer "seam" artifacts compared to sequential merging methods like Text2Tex or averaging methods like Latent-NeRF.
Fig. 1: Given a 3D mesh and a text prompt, we propose an optimization framework to synthesize the multi-view consistent texture. Top: meshes from a 3D generation model. Bottom: artist-created meshes.

Limitations and Future Work

  • Computational Cost: The optimization process (Stages II-IV) takes about 10–15 minutes on a standard desktop, which is roughly twice as long as the initial image generation. The authors suggest exploring neural networks to accelerate these stages.
  • Illumination Physics: The current color adjustment is a mathematical optimization that doesn't "understand" the underlying physics of light and shadow. Future work could involve learning a latent parameter space for illumination.
  • Decoupled Alignment: Currently, pairwise and joint alignments are decoupled. Integrating these into a single joint optimization could further improve feature matching.

Summary updated

BibTeX
@misc{zhao2024optimization,
  author = {Zhengyi Zhao and Chen Song and Xiaodong Gu and Yuan Dong and Qi Zuo and Weihao Yuan and Zilong Dong and Liefeng Bo and Qixing Huang},
  title = {{An Optimization Framework to Enforce Multi-View Consistency for Texturing 3D Meshes Using Pre-Trained Text-to-Image Models}},
  year = {2024},
  eprint = {2403.15559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.15559},
}
Figure