DreamStereo: Towards Real-Time Stereo Inpainting for HD Videos

Yuan Huang, Sijie Zhao, Jing Cheng, Hao Xu, Shaohui JiaoCVPR 2026

TL;DR

DreamStereo is a novel framework that achieves real-time, high-definition (768×1280) stereo video inpainting at 25 FPS on a single GPU. By combining a gradient-aware warping mechanism to generate clean training data from standard monocular videos with a sparsity-aware diffusion transformer that prunes 70% of redundant visual tokens, it delivers state-of-the-art 3D video conversion without the typical computational bottleneck.

What Problem Does This Paper Address?

With the rise of AR/VR headsets, the demand for stereoscopic (3D) video content has skyrocketed. However, capturing true stereo video requires expensive multi-camera setups. A scalable alternative is mono-to-stereo conversion: taking existing 2D videos, estimating their depth, and warping the frames to simulate a second eye's perspective.

The catch? Warping an image leaves "holes" or occlusions behind foreground objects that must be filled in—a process known as stereo video inpainting. Current diffusion-based approaches face two massive hurdles:

  1. Data Scarcity: High-quality stereo video datasets with accurate occlusion masks are rare and difficult to collect.
  2. Extreme Redundancy: Occlusion zones usually occupy only a tiny fraction of a video frame (often less than 10%), mostly scattered along object boundaries. Despite this, standard video diffusion models process every single pixel uniformly, wasting immense computational power and making real-time HD processing impossible.

Methods

The authors introduce three interconnected components to tackle these data and computational bottlenecks:

1. Gradient-Aware Parallax Warping (GAPW)

Traditional forward warping often results in messy, scattered pixel artifacts ("fly-points") at object edges. To fix this, GAPW utilizes backward warping and analyzes the continuous spatial derivatives—specifically the Jacobian matrix—of the coordinate mapping function. Regions with large geometric deformations indicate occlusions, allowing the model to generate exceptionally clean, smooth occlusion masks.

Comparison of traditional forward warping vs the proposed Gradient-Aware Parallax Warping (GAPW).

2. Parallax-Based Dual Projection (PBDP)

To bypass the need for actual stereo training videos, PBDP uses a clever double-reprojection strategy. It takes a standard monocular video, estimates its depth, warps it to a virtual second view using GAPW, and then warps it back to the original view. The discrepancies between the original and round-tripped video reveal highly accurate, geometrically consistent occlusion masks, allowing the model to turn virtually any monocular video into high-quality stereo training pairs.

3. Sparsity-Aware Stereo Inpainting (SASI)

Built on top of a Diffusion Transformer (DiT) architecture, SASI exploits the spatial sparsity of the inpainting task. Because attention mechanisms scale quadratically ($O(N^2)$) with the number of tokens, SASI downsamples and dilates the occlusion mask to select only the essential visual tokens that actually need modification (plus a narrow boundary band). It prunes the remaining ~70% of redundant tokens from the heavy DiT attention computation, drastically accelerating the model.

Figure 3. (a) Illustration of the Parallax-Based Dual Projection, which utilizes Gradient-Aware Parallax Warping for reprojection to obtain the occlusion mask under input view. (b) Our proposed Sparsity-Aware Stereo Inpainting utilizes Mask-Based Token Selection to reduce the redundancy of visual tokens.

Datasets

  • Training: The authors generated a 56k × 3 pseudo-stereo inpainting dataset by applying their PBDP pipeline to the large-scale monocular OpenVid dataset.
  • Evaluation:
  • HD-100: A newly collected real-world benchmark consisting of 100 4K video clips from the internet.
  • Dynamic Replica: A synthetic stereo dataset (20 validation samples) providing ground-truth disparity maps.
  • SVD (Spatial Video Dataset): A spatial video dataset (20 samples) captured and selected from an Apple Vision Pro subset.

Key Insights and Ideas

  • Exploiting DiT Sparsity: While sparse processing is common in traditional CNNs, applying it effectively to Diffusion Transformers for video editing is a major win. Dropping unneeded tokens directly targets the $O(N^2)$ bottleneck of self-attention.
  • Gradients over Discretization: Turning a discrete pixel-shifting problem into a continuous gradient-thresholding problem (via the Jacobian matrix) naturally eliminates edge artifacts without requiring complex post-processing heuristics.
  • Single-Step Inference (NFE=1): By fine-tuning a robust base model (WanVideo) with their token-selection strategy, the authors achieved high-fidelity results in just a single denoising step, which is paramount for real-time deployment.

Key Results

  • Real-Time Speed: DreamStereo achieves an inference speed of 24.9 FPS (40.1 ms per frame) at HD resolution ($768 \times 1280$) on a single NVIDIA A100 GPU. This represents a 10.7× speedup over its full-computation counterpart.
  • State-of-the-Art Quality: On the HD-100 benchmark, DreamStereo achieves a PSNR of 30.48 dB (and 32.65 dB for its blended variant), significantly outperforming specialized stereo baselines like StereoCrafter (23.99 dB) and ZeroStereo (24.73 dB).
Figure 1. Comparison among different methods at a resolution of 768 × 1280: our method achieves a PSNR of 30.5 dB at 1 NFE, with an inference speed of 24.9 fps.

Limitations and Future Work

  • Wide-Baseline Sensitivity: While the model is highly robust, extremely large disparities (which simulate a very wide distance between the left and right eyes) expand the occlusion zones significantly, leading to a slight, expected drop in quantitative metrics.
  • Upstream Dependencies: The quality of the generated pseudo-stereo training data inherently relies on the accuracy of the initial monocular depth estimator (e.g., DepthCrafter). Errors in the initial depth map can propagate into imperfect occlusion masks.
  • Future Work: The authors suggest exploring more dynamic token-selection strategies that can adaptively adjust the mask dilation size based on the motion complexity of the video scene.

Summary updated

BibTeX
@inproceedings{huang2026dreamstereo,
  author = {Yuan Huang and Sijie Zhao and Jing Cheng and Hao Xu and Shaohui Jiao},
  title = {{DreamStereo: Towards Real-Time Stereo Inpainting for HD Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=6pIglY9ALt},
}
Figure