大视差拼接:让AI重画而非对齐
传统全景拼接靠「先对齐再融合」,前提是几张照片的视差不大;一旦前景和背景错位严重,2D 变换就解不开背后的 3D 结构,接缝立刻穿帮。AnyStitch 换了思路:不拼,而是把「多张参考图」当成条件,让模型直接生成一张全景图——拼接问题变成参考图生图,接缝从源头就不存在。关键是怎么让生成的全景既听你的、又保真:他们用 3D 前馈模型算出每张输入和画布之间的几何关系,编码进位置信息(HPRoPE),再按输入数量自适应地逐块生成,所以 22 张视角、大幅相机移动也能接成一张,还能调目标视角和投影方式。训练数据不是靠人拍,而是用 3D Gaussian Splatting 场景合成配对样本。做 VR 全景、房产/酒店实景展示、想把多张手机照片接成一张不穿帮大图的人,这是能直接用上的方向。
📄 原文摘要(英文)
Wide field-of-view panorama stitching is important for computational photography and immersive visual applications, but often faces some challenges like severe geometric disparities. The typical "warp-and-blend" stitching technique only works with limited parallax and fails on large-parallax scenes, due to its inherent restriction to 2D geometric transformations that cannot resolve underlying 3D structures. To break this limitation, we present AnyStitch, a generative framework that can merge multiple reference images with large parallax into a seamless panorama. Unlike previous methods, we formulate the stitching problem as a reference-based image generation process, which naturally avoids stitching artifacts. Specifically, we propose a Hierarchical Projected Rotary Positional Encoding (HPRoPE) based on a 3D feed-forward model to establish accurate geometric relationships between the inputs and the panoramic canvas while preserving fidelity. Given that the resolution of the generated image varies with the number of inputs, we design a spatial autoregressive generation strategy to generate visually coherent panoramas at flexible resolutions. Finally, to enable the supervised fine-tuning of the proposed model, we construct a paired dataset utilizing 3D Gaussian Splatting (3DGS) scenes. Experiments demonstrate that AnyStitch can seamlessly stitch a variable number of inputs (like 22 views in teaser) with large camera motion, support flexible control of target view and projection type, and handle simple dynamic scenes. Project page: https://cecret3350.github.io/AnyStitch/.