SIGGRAPH Asia 2026 ACM TOG Journal Track

AnyStitch

Generative Large Parallax
Image Stitching

Shenzhen at dusk

23 views / 104.47 MP

Explore panorama

Authors

  1. The Chinese University of Hong Kong
  2. Tsinghua University
  3. Shanghai AI Laboratory
  4. CPII under InnoHK

Stitching with parallax

Two photographs, taken from different positions. Project them into the same view and a gap opens along the sail. Drag the divider across the roofline to see how AnyStitch closes the gap.

Geometric projectionAnyStitch

How AnyStitch works

Given photographs taken from different positions, AnyStitch combines two priors to generate a panorama from a chosen viewpoint.

3D prior

A 3D feed-forward model jointly estimates camera poses and depth maps. We lift the two photos into a shared point cloud and project it into the target view.

Generative prior

The projection leaves a hole along the roof and doubles a tower in the skyline. A diffusion transformer uses the original image features and their projected positions to generate the panorama.

Open the generated panorama

RGB conditioning warps the pixels first

The baseline warps each photo into the target view using depth and camera pose. A diffusion transformer uses the warped images to denoise the panorama. Gaps along the crane’s boom change its generated outline.

Compare the crane
The thin diagonal crane boom in the original photograph.
Black gaps interrupt the crane and the surrounding building in the projected pixels.
The RGB-conditioned output fills the gaps but changes the crane’s outline.
First Sydney Harbour photo projected into the target view.
Warped view 1
Second photo projected into the same target view.
Warped view 2
Noise in the target panorama’s latent grid.
Noisy target latent
Diffusion transformerDenoise the target panorama

Projected RoPE moves the patch coordinates

Each token keeps its original patch feature. Depth and camera pose project its position onto the panorama. Rotary positional encoding (RoPE) uses those coordinates to guide attention to the intact crane.

Compare the crane
The thin diagonal crane boom in the original photograph.
The RGB-conditioned output fills the gaps but changes the crane’s outline.
Projected RoPE recovers the slender boom visible in the source photograph.
Input view 2Target view
Depth + pose
View 2 crane patch Spatial RoPE (u, v) → (u′, v′)

HPRoPE gives each patch two positionsHow self-attention uses both positions

Dense depth shifts the pole 12 pixels from its base. Hierarchical Projected RoPE projects each patch twice, using local depth and the photo’s median depth. The transformer uses both positions to guide attention.

Both groups see the same input patches. The pole patch’s position affects how strongly a panorama query matches its key. The output projection combines the features retrieved by both groups to update the panorama token.

Compare the pole
In the input photograph the pole meets the middle of its white base.
The generated pole shifts to the right of the white base.
The pole is aligned above the base in the final generated panorama.
HPRoPE stages
Input view 1
Dense depth(450, 580)
View median depth(533, 580)
View 1 pole patch
Input image tokens
Noisy panorama tokens
DiT self-attention

Scale patch positions to the latent grid, then rotate queries and keys.

½ of heads Dense-depth RoPE Pole patch(450, 580) px
½ of heads Median-depth RoPE Pole patch(533, 580) px
Learned output projectionUpdated panorama tokens

Generate the panorama one window at a time

The 17 street views define a wide canvas. The DiT starts in the center, denoising one window with the input tokens whose dense projections fall inside it.

The next window shifts right by three quarters of its width. Tokens from the generated 25% overlap act as memory. Generation then continues outward on both sides.

Input tokens
Noisy target tokens
Overlap memory
DiT
Current window
Target panorama
25% overlap

Window-relative RoPE keeps the far end consistent

Training uses 1,024 × 1,024 crops and sampled view IDs. Farther along a panorama, global indices can exceed the training range. Both depth projections subtract the same window origin, and the view IDs shift together so the smallest becomes 1.

Compare the SUV and garage
A dark blue SUV parked in front of a pale garage in the input view.
Global RoPE shifts the color and distorts the SUV and garage wall.
The window-relative result preserves the dark blue SUV and the garage outline.
Far-right generation window
Training cropLocal token columns
Far-right windowGlobal token columns
From global to window-local coordinates
EncodingGlobalShiftWindow-local
Dense RoPE(568, 96)− (512, 64)(56, 32)
Median RoPE(572, 98)(60, 34)
View IDs[15, 16, 17]− 15 + 1[1, 2, 3]
AnyStitchSyn training data

Each pair has two inputs and three target panoramas rendered at the average camera pose. We built 2,192 training pairs from 950 InteriorGS scenes.

First training input of a dining room.
Input 1
Second training input from a different position in the dining room.
Input 2
Equirectangular rendering of the dining room.
Equirectangular
Cylindrical rendering of the same scene.
Cylindrical
Rectilinear rendering of the same scene.
Rectilinear
View the full method diagram Method pipeline from input images and camera geometry through HPRoPE and spatial autoregressive panorama generation.

Method comparison

Compare panoramas stitched from the same photographs. Choose a scene, then open either result to inspect it at full size.

Comparison scene
Input photographs
Glass façade, input photograph 1 Glass façade, input photograph 2
Comparison method for Glass façade Glass façade stitched by GPIS, full panorama Glass façade stitched by UDIS++, full panorama Glass façade stitched by RopStitch, full panorama
AnyStitch
Glass façade stitched by AnyStitch, full panorama

Trace the glass roofline and count the red chimneys behind it.

Paper, Fig. 9
Input photographs
Snowy junction, input photograph 1 Snowy junction, input photograph 2
Comparison method for Snowy junction Snowy junction stitched by LPC, full panorama Snowy junction stitched by UDIS++, full panorama Snowy junction stitched by SRStitcher, full panorama
AnyStitch
Snowy junction stitched by AnyStitch, full panorama

Look at the foreground stop sign and its pole where the two photos overlap.

Supplement, Fig. 21
Input photographs
Skiers, input photograph 1 Skiers, input photograph 2
Comparison method for Skiers Skiers stitched by UDIS++, full panorama Skiers stitched by RopStitch, full panorama Skiers stitched by SRStitcher, full panorama
AnyStitch
Skiers stitched by AnyStitch, full panorama

Follow the two skiers at the railing from the first photograph into each panorama.

Paper, Fig. 8
Input photographs
Garden pavilion, input photograph 1 Garden pavilion, input photograph 2
Comparison method for Garden pavilion Garden pavilion stitched by UDIS++, full panorama Garden pavilion stitched by LPC, full panorama Garden pavilion stitched by SRStitcher, full panorama
AnyStitch
Garden pavilion stitched by AnyStitch, full panorama

Trace the columns beneath the pavilion roof and compare their tilt with the tower behind them.

Paper, Fig. 9
Input photographs
Traffic cones, input photograph 1 Traffic cones, input photograph 2
Comparison method for Traffic cones Traffic cones stitched by RopStitch, full panorama Traffic cones stitched by LPC, full panorama Traffic cones stitched by SRStitcher, full panorama
AnyStitch
Traffic cones stitched by AnyStitch, full panorama

Count the cones in the road and look for doubled edges around their bases.

Paper, Fig. 8
Input photographs
Tissue box, input photograph 1 Tissue box, input photograph 2
Comparison method for Tissue box Tissue box stitched by SRStitcher, full panorama Tissue box stitched by UDIS++, full panorama Tissue box stitched by LPC, full panorama
AnyStitch
Tissue box stitched by AnyStitch, full panorama

Follow the tabletop from the yellow note to the patterned tissue box and look for a seam.

Supplement, Fig. 21
Input photographs
Office windows, input photograph 1 Office windows, input photograph 2 Office windows, input photograph 3 Office windows, input photograph 4 Office windows, input photograph 5
GES-GSP
Office windows stitched by GES-GSP, full panorama
AnyStitch
Office windows stitched by AnyStitch, full panorama

Follow the edge of the roller blind down to the vertical window frame.

Paper, Fig. 10
Input photographs
Moving pedestrian, input photograph 1 Moving pedestrian, input photograph 2 Moving pedestrian, input photograph 3 Moving pedestrian, input photograph 4 Moving pedestrian, input photograph 5 Moving pedestrian, input photograph 6 Moving pedestrian, input photograph 7
GES-GSP
Moving pedestrian stitched by GES-GSP, full panorama
AnyStitch
Moving pedestrian stitched by AnyStitch, full panorama

Track the pedestrian past the parked cars, then compare the outlines of the cars.

Paper, Fig. 10
Two-view benchmark scores

Stitching Image Quality Score

A multimodal model grades seams, brightness transitions, distortion, clarity and abnormal content. Higher scores indicate better stitching quality across the dataset.

Paper, Table 2
Stitching Image Quality Score on the PTIS and RISMR two-view benchmarks
MethodPTISRISMR
SPW7.267.11
LPC7.497.64
UDIS++7.636.69
SRStitcher8.007.88
PIS3R/LiftProj-style†7.918.36
GPIS6.06Not reported
RopStitch5.574.57
AnyStitch9.409.71

† Our reproduction of a PIS3R/LiftProj-style pipeline. A dash marks an unreported score.

Applications

Choose an application
Choose a panorama

Follow the highway from the daylight skyline on the left to the illuminated roads on the right. The two photographs were taken at different times.

Paper, Fig. 15
City towers and a highway interchange in daylight.
The highway lit by streetlights at dusk.
The daylight skyline and illuminated highway joined in a single panorama.

The darker exposure captures the sunset. The brighter exposure reveals the people and paving. AnyStitch aligns and fuses the two views of the plaza.

Paper, Fig. 15
The sun above the trees with most of the plaza in shadow.
People and patterned paving in the plaza beneath a bright sky.
Fused image showing the pale sunset, trees, people and foreground paving.

From one photograph, AnyStitch extends the wooded shoreline and its reflection on both sides. The outline marks the original field of view.

Paper, Fig. 15
Autumn foliage along the shore of a turquoise lake.
The supplied lakeshore photograph extends into a wide panorama, with the original view outlined.

Publication

Cite AnyStitch

ACM Transactions on Graphics
Volume 45, Issue 6, Article 264 (2026)

DOI 10.1145/3842587
BibTeX
@article{chen2026anystitch,
  title = {{AnyStitch}: Generative Large Parallax Image Stitching},
  author = {Chen, Zixuan and Li, Lingen and Zhuang, Junhao
            and Li, Ruikang and Xue, Tianfan},
  journal = {ACM Transactions on Graphics},
  volume = {45},
  number = {6},
  articleno = {264},
  year = {2026},
  doi = {10.1145/3842587}
}

25,846 × 4,042 pixels

Shenzhen at dusk

Drag to pan · Scroll or pinch to zoomOriginal JPEG