DreamDrone: Text-to-Image Diffusion Models Are Zero-Shot Perpetual View Generators

Hanyang Kong, Dongze Lian, Michael Bi Mi, Xinchao WangECCV 2024

Abstract

DreamDrone is a novel, zero-shot pipeline that transforms pre-trained text-to-image diffusion models into "perpetual view generators" without any additional training or fine-tuning. By explicitly warping the latent codes of the diffusion process rather than raw pixels, it generates high-quality, geometrically consistent flythrough videos from a single starting image and a text prompt.

Introduction

Creating a "perpetual view"—an infinite, seamless flythrough of a scene—is a long-standing challenge in computer vision. Traditional approaches generally fall into two categories: frame-by-frame warping and 3D reconstruction. Frame-by-frame methods shift pixels based on depth data but suffer from error accumulation, leading to drift, blurriness, and distortion. 3D reconstruction methods, while more consistent, are computationally intensive and often limited by the quality of the underlying model, struggling with truly infinite generation.

DreamDrone addresses these issues by leveraging the generative power of pre-trained diffusion models. Unlike existing solutions that are often restricted to specific datasets, DreamDrone generalizes across diverse environments and artistic styles by intervening directly in the diffusion process.

Methodology

The core innovation of DreamDrone is the shift from warping RGB pixels to warping latent codes. The pipeline consists of three primary components designed to maintain geometric and semantic consistency during the generation of novel views.

Latent Code Warping with High-Pass Filtering

DreamDrone uses DDIM inversion to find the latent representation ($x_t$) of the current frame. To simulate camera movement, the system warps this latent code. However, direct warping often introduces blurriness. To mitigate this, the authors employ a Fast Fourier Transform (FFT) to separate the latent code into low and high frequencies. The low-frequency components, which represent the scene's structure, are warped, while the high-frequency details are preserved from the original latent to ensure visual clarity.

The DreamDrone pipeline: from current view to novel view generation via latent warping and feature guidance.

Feature-Correspondence Guidance

To ensure the newly generated frame aligns with the previous frame's geometry, a guidance loss is introduced. By extracting intermediate features from the U-Net and calculating the cosine distance between warped features of the current frame and the features of the new frame, the diffusion process is "steered" toward geometric integrity.

Cross-View Self-Attention

Semantic consistency is maintained by modifying the U-Net's self-attention layers. During the generation of a new frame, the "Keys" and "Values" in the attention mechanism are replaced with those from the preceding frame. This mechanism forces the model to retain the appearance and identity of objects across different views.

Results and Evaluation

DreamDrone is training-free and was evaluated using 50 diverse text prompts generated by GPT-4, covering indoor, outdoor, and stylized scenes. The system utilized Stable Diffusion v2.1 and MiDaS for monocular depth estimation.

Generated flythrough sequences in the style of Van Gogh's "Backyards of Old Houses in Antwerp in the Snow".

Key findings include:

  • Superior Quality: DreamDrone outperformed baselines in CLIP scores, indicating better adherence to text prompts over extended sequences.
  • Temporal Consistency: The method maintained higher PSNR and SSIM scores compared to other training-free models across 8, 16, and 32-frame tests.
  • Versatility: The model successfully generated consistent flythroughs for varied styles, including realistic landscapes and artistic interpretations like Van Gogh paintings, while supporting interactive camera trajectory control.

Conclusion

DreamDrone demonstrates that pre-trained diffusion models can be effectively repurposed for perpetual view generation without retraining. By operating in the latent space and utilizing frequency separation and feature guidance, it overcomes the limitations of traditional pixel-warping methods. While the system's performance is currently tied to the accuracy of monocular depth estimation, it represents a significant step toward versatile, high-quality infinite scene generation.

Summary updated

BibTeX
@inproceedings{kong2024dreamdrone,
  author = {Hanyang Kong and Dongze Lian and Michael Bi Mi and Xinchao Wang},
  title = {{DreamDrone: Text-to-Image Diffusion Models Are Zero-Shot Perpetual View Generators}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72624-8\_19},
}
Figure