TL;DR
This paper introduces NormalCrafter, a novel method for generating temporally consistent surface normals from videos. It leverages the power of video diffusion models and introduces a Semantic Feature Regularization technique to improve detail and a two-stage training process for better spatial accuracy and long-term temporal coherence.
What Problem Does This Paper Address?
Estimating surface normals, crucial for 3D scene understanding, is well-studied for static images. However, extending this to videos presents a significant challenge: maintaining temporal consistency. Simply applying image-based methods to video frames often results in flickering or unstable normal maps. While video diffusion models show promise, directly applying them to normal estimation leads to overly smoothed results lacking fine geometric details. This paper aims to bridge this gap by developing a method that produces temporally coherent, high-fidelity normal maps from arbitrary-length videos.
Methods
NormalCrafter builds upon video diffusion models (VDMs), specifically adapting the Stable Video Diffusion (SVD) architecture. The core innovations are:
- Semantic Feature Regularization (SFR): To combat the over-smoothing issue inherent in VDMs, SFR aligns the diffusion model's intermediate features with robust semantic representations extracted from an external encoder (DINOv2). This encourages the model to focus on geometric details.
- Two-Stage Training Protocol: To balance long-term temporal context and high spatial accuracy, the authors propose a two-stage training approach.
- Stage 1: The model is trained in the latent space, allowing it to capture long-term temporal dependencies across longer sequences.
- Stage 2: Only the spatial layers are fine-tuned in pixel space using an angular loss, refining spatial accuracy while preserving the ability to process long sequences.
- VAE Fine-tuning: The VAE decoder, crucial for reconstructing normal maps, is specifically fine-tuned on normal data to improve reconstruction quality.
Datasets
The paper uses a combination of datasets for training and evaluation:
- Training:
- Single-frame: Replica, 3D Ken Burns
- Video: Hypersim, MatrixCity, Objaverse
- Evaluation:
- Single-image: NYUv2, iBims
- Video: ScanNet, Sintel
Key Insights and Ideas
- VDMs are powerful but need guidance for normals: While VDMs excel at generating coherent video, they inherently smooth out fine details when directly applied to tasks like normal estimation.
- Semantic features are key to geometric detail: Aligning diffusion features with semantically rich external features (like DINOv2) effectively guides the model to capture intricate geometric structures.
- Latent space for temporal context, pixel space for detail: A two-stage training approach is crucial. The latent space is ideal for learning long-range temporal relationships, while pixel-space fine-tuning is necessary for high-fidelity spatial details.
- Fine-tuning the VAE decoder matters: Pre-trained VAES are often optimized for RGB images, and fine-tuning the decoder for normal data significantly improves reconstruction quality.
Key Results
NormalCrafter achieves state-of-the-art performance on video normal estimation benchmarks:
- Quantitative: Outperforms leading methods like DSINE, StableNormal, and Marigold-E2E-FT on ScanNet and Sintel datasets, showing improvements in mean and median angular errors. For instance, on Sintel, it achieves the best rank with a mean angular error of 30.7°.
- Qualitative: Produces temporally coherent normal sequences with finer details compared to baselines. Visualizations show smooth y-t slices, indicating the absence of flickering artifacts seen in other methods.
Limitations and Future Work
- Computational Cost: The authors acknowledge that the model's large parameter size poses challenges for deployment on mobile devices.
- Future Directions: They suggest exploring model pruning, quantization, and distillation techniques to optimize efficiency for edge devices.
Summary updated