NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PanoDiffusion: 360-degree Panorama Outpainting via Diffusion

Tianhao Wu, Chuanxia Zheng, Tat-Jen Cham

TL;DR

PanoDiffusion is a latent diffusion framework that generates high-quality, 360° indoor panoramas from narrow field-of-view images. By training on bi-modal RGB-D data and employing a clever progressive camera rotation mechanism during denoising, it achieves superior semantic diversity and perfect "wraparound" consistency without requiring depth information at inference time.

What Problem Does This Paper Address?

Creating 360° panoramas is a "high-effort, high-cost" task, yet these images are essential for VR/AR and 3D scene synthesis. The goal of panorama outpainting is to take a standard, narrow field-of-view (NFoV) image and "hallucinate" the rest of the 360° scene.

This is significantly harder than standard image inpainting for several reasons:

  1. Scale: The missing regions are often much larger than the visible ones.
  2. Semantics: The model must generate complex, structurally sound objects (like beds or sofas) rather than just filling in textures.
  3. Geometry: Panoramas use equirectangular projection, which introduces non-linear distortions.
  4. Wraparound Consistency: In a 360° view, the far-left edge of the image must seamlessly match the far-right edge.

Existing Generative Adversarial Network (GAN) approaches often suffer from "mode collapse" (generating repetitive, simple textures) and struggle to maintain consistency at the image boundaries.

Methods

The authors propose PanoDiffusion, a two-stage pipeline built on Latent Diffusion Models (LDM).

1. Bi-modal Latent Diffusion

During training, the model uses two separate VQ-based encoders to process RGB and Depth data. These latents are concatenated into a single bi-modal representation ($z_{rgbd}$).

  • The "Aha" Moment: Even though depth is used during training to help the network learn the physical layout and structure of rooms, it is not required during inference. At test time, the depth channel is simply filled with random noise, yet the model still produces structurally superior RGB results.

2. Wraparound Consistency Mechanism

To ensure the left and right ends of the panorama match, the authors introduce two strategies:

  • Camera-Rotated Data Augmentation: During training, images are randomly shifted horizontally (circular shift) so the network learns that any point can be a boundary.
  • Two-Ends Alignment Sampling: During the iterative denoising process at inference, the scene is rotated by 90° at each step. This effectively moves the "seam" to the center of the image, allowing the UNet to process the transition naturally and ensure a seamless connection.
Figure 2: The overall pipeline of our proposed PanoDiffusion method. (a) During training, the model is optimized for RGB-D panorama synthesis, without the mask. (b) During inference, however, the depth information is no longer needed for masked panorama outpainting. (c) Finally, a super-resolution model is implemented to further enhance the high-resolution outpainting. We only show the input/output of each stage and omit the details of circular shift and adding noise. Note that the VQ-based encoder-decoders are pre-trained in advance, and fixed in the rest of our framework.

3. RefineNet

Because diffusion on high-resolution panoramas is computationally expensive, the LDM operates at $256 \times 512$. A dedicated Super-Resolution (SR) GAN then upscales the result to a final $512 \times 1024$ resolution.

Datasets

The model was trained and evaluated on the Structured3D dataset, which contains 16,930 training instances of indoor RGB-D panoramas. The authors tested the model against four distinct mask types to prove generalization:

  • NFoV Mask: Simulating a single standard camera view.
  • Camera Mask: Simulating multiple random camera views.
  • Random Box Mask: Standard random rectangular holes.
  • Layout Mask: Muffling everything except floors and ceilings to test generative power.

Key Insights and Ideas

  • Depth as a Teacher: Jointly learning RGB and depth allows the model to understand 3D space better. The authors found that even 50% sparse depth data during training significantly improved the final RGB outpainting quality.
  • Rotational Denoising: Instead of adding complex loss functions to enforce boundary consistency, simply rotating the latent space during the diffusion process forces the model to treat the entire 360° field equally.
  • Diversity: Unlike GANs, which might produce one "safe" completion, PanoDiffusion can generate multiple, diverse, and semantically distinct versions of the same room from a single input.
Figure 1: Example results of 360◦Panorama Outpainting on various masks. Compared to BIPS (Oh et al., 2022) and OmniDreamer (Akimoto et al., 2022), our model not only effectively generates semantically meaningful content and plausible appearances with many objects, such as beds, sofas and TV’s, but also provides multiple and diverse solutions for this ill-posed problem. (Masked regions are shown in blue for better visualization. Zoom in to see the details.)

Key Results

  • Quantitative: PanoDiffusion achieved a relative 67% improvement in FID score (a measure of image quality and diversity) compared to previous state-of-the-art methods like BIPS and OmniDreamer.
  • Wraparound Quality: Using a new metric called RGB-LRCE (Left-Right Consistency Error), the authors showed that their rotational denoising reduced boundary artifacts by roughly 25-30% across different mask types.
  • 3D Synthesis: The model can simultaneously synthesize high-quality depth maps, allowing for the creation of realistic 3D indoor models from a single 2D photo.

Limitations and Future Work

  • Latent Space Errors: The authors noted that because rotational denoising happens in the latent space, minor errors can sometimes be introduced during the final decoding process.
  • Computational Cost: As with most diffusion models, inference is slower than GAN-based alternatives due to the iterative denoising steps.
  • Domain Specificity: The current work focuses on indoor environments; extending this to complex outdoor urban or natural environments remains a future challenge.

Summary updated

BibTeX
@inproceedings{wu2024panodiffusion,
  author = {Tianhao Wu and Chuanxia Zheng and Tat-Jen Cham},
  title = {{PanoDiffusion: 360-degree Panorama Outpainting via Diffusion}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=ZNzDXDFZ0B},
}
Figure