Introduction
Capturing the full scale of a landscape or an urban environment often involves a panning motion with a smartphone. While modern software can easily stitch these frames into a static panoramic image, creating a panoramic video remains a significant challenge. Standard stitching methods fail when the scene is dynamic, leading to ghosting or artifacts where moving objects are sliced across frames. VidPanos introduces a generative framework designed to transform these casual handheld pans into wide-angle panoramic videos with realistic, synthesized motion.
The Challenge of Dynamic Consistency
The primary hurdle in panoramic video generation is maintaining temporal and spatial consistency across a wide field of view. In a typical panning sequence, objects enter and leave the frame. Traditional video outpainting models, while powerful, suffer from a limited "context window"—they can typically only process a few seconds of video at once. This limitation prevents them from "remembering" the state of an object that might have disappeared from view several seconds ago but should still exist in the broader panoramic canvas. Without global context, these models produce "hallucinations" that lack coherence, causing objects to morph, vanish, or reappear inconsistently.
The VidPanos Framework
To address these challenges, VidPanos employs a multi-stage pipeline that registers input frames onto a global canvas and synthesizes missing content through a novel temporal strategy.
1. Video Registration
The process begins by projecting input video frames onto an equirectangular canvas. Using SLAM (Simultaneous Localization and Mapping) or homography solvers, the system establishes a consistent global coordinate system, ensuring that the original pixels are correctly anchored in space.
2. Temporal Coarse-to-Fine Synthesis
The core innovation of VidPanos is its temporal coarse-to-fine strategy. To overcome memory constraints, the system temporally downsamples the entire video duration until it fits within the generative model’s context window (e.g., 80 frames). By generating a "base" panoramic video at this low frame rate, the model can observe the entire timeline simultaneously, establishing global motion consistency.
3. Progressive Upsampling and Spatial Aggregation
Once the global motion is established, the system progressively upsamples the video in time. This "zooming in" on the temporal dimension restores high-frequency details and fluid motion. To handle the extreme aspect ratios of panoramas, VidPanos uses overlapping spatial windows. By adapting techniques like MultiDiffusion, the system averages predictions across these windows to eliminate visible seams.
4. Mask-Conditioned Finetuning
Generative models are typically trained on rectangular frames. Panning videos, however, create irregular, often diagonal masks on a panoramic canvas. The authors finetuned their underlying model (Lumiere) on a dataset of 5 million videos using synthetic "panning-style" masks, significantly improving the model's ability to handle these unique boundaries.
Evaluation and Results
The researchers evaluated VidPanos using both synthetic benchmarks and real-world captures.
- Datasets: A synthetic dataset of 12 high-quality 360-degree videos provided a ground-truth baseline for reconstruction. Additionally, 10 real-world smartphone captures involving complex "multi-pan" motions were used to test robustness.
- Performance: VidPanos demonstrated superior motion consistency compared to existing baselines like ProPainter and MAGVIT. In dynamic regions, VidPanos achieved a significantly lower Endpoint Error (EPE) of 1.25, compared to 1.70 for ProPainter.
- Qualitative Success: The model successfully synthesized complex, continuous motions. For instance, it could realistically complete the stroke of a kayaker’s paddle even when the paddle moved entirely out of the original camera's field of view.
Key Insights
The success of VidPanos hinges on the "Anchor Effect." By re-inserting original input pixels into the generated frames at every stage of the coarse-to-fine process, the original video acts as a physical constraint. This prevents the AI's generative "hallucinations" from drifting away from the established reality of the scene. Furthermore, the shift from causal (past-only) to non-causal (global) processing allows the model to anticipate future camera views, grounding the synthesized content in both past and future observations.
Limitations and Future Directions
Despite its impressive results, VidPanos faces several hurdles:
- Computational Intensity: Generating high-resolution panoramic videos is resource-heavy, often requiring hours of TPU time for a single clip.
- Fine Details: Like many diffusion-based models, it can struggle with the intricate details of human faces, particularly in close-up shots.
- Temporal Scale: Current iterations are limited to approximately 160–170 frames. Future work may involve moving the pipeline into latent space to improve efficiency and extend the possible duration of the generated panoramas.
Summary updated