Panoramic Image Generation

Enhancing In-context Panoramic Generation via Geometric-aware Pretraining

Meet Canvas360  — a two-stage framework that injects geometry-aware priors through parallel RGB–depth pretraining, then transfers them to diverse downstream tasks within a single unified model.

Haoran Feng1,2,*Ruiyang Zhang1,3,*Longyi Zhang2Dizhe Zhang1,✉,†Lu Qi1,4,✉
1Insta360 Research  2Tsinghua University  3Beihang University  4Wuhan University
* Equal Contribution † Project Lead ✉ Corresponding Author
Canvas360 results across tasks
Visualization of Canvas360's results, spanning text-to-panorama generation, inpainting, outpainting, panorama editing, and style transfer. The model captures a rich panoramic prior and supports a wide range of downstream applications.

Comparison Against Prior Methods

Across both text-to-panorama synthesis and in-context tasks, Canvas360 delivers sharper distortion-aware details, cleaner structure, and seamless boundaries. Representative artifacts of competing methods are marked in red.

Qualitative comparison for panorama generation
Text-to-panorama. Canvas360 introduces depth to learn geometry-aware panoramic details globally, producing more accurate renderings that better respect panoramic projection distortions than PanFusion, SMGD, PAR, WorldGen, HunyuanWorld, and DiT360.
In-context panoramic generation comparison
In-context tasks. On inpainting, outpainting, and editing, prior methods introduce blur or fail to apply correct panoramic distortion; Canvas360 generates panorama-consistent, artifact-free outputs with geometry-aware edits.
Style transfer qualitative comparison
Style transfer. Against FLUX.1-Kontext-dev, FLUX.2-dev, and Qwen-Image-Edit, Canvas360 better preserves geometric structure and content layout while producing visually coherent stylized panoramas.

Abstract

We present Canvas360, a two-stage framework for in-context panoramic generation that combines geometry-aware pretraining with downstream task-specific fine-tuning. To address the lack of large-scale, high-quality training data tailored to in-context panoramic tasks, we propose Canvas360Dataset, a collection of 1M high-quality paired panoramic samples for style transfer, inpainting, outpainting, and editing.

On the modeling side, Canvas360 enhances text-to-panorama generation through parallel depth generation, velocity circular padding, and similarity loss regularization, enabling the model to learn geometry-aware representations, capture object distortion details, and improve geometric consistency and global coherence. Empowered by strong panoramic priors, Canvas360 enables a unified in-context framework supporting diverse downstream tasks via token-level concatenation.

Extensive experiments show that Canvas360 improves panoramic image fidelity, achieving particularly strong performance on the panorama-specific FAED metric and competitive or leading results across the reported quantitative evaluations.

Key Contributions

A data-centric, geometry-aware approach to unified panoramic generation.

Geometry-aware Pretraining

Parallel RGB–depth generation, velocity circular padding, and similarity regularization instill spherical spatial priors and seamless 0°/360° boundaries.

Unified In-context Model

A single framework handles style transfer, inpainting, outpainting, and editing through token-level concatenation — surpassing prior methods in task coverage and flexibility.

Canvas360Dataset (1M)

A scalable data pipeline yields 1M paired samples — 100K RGB–depth panoramas plus 900K in-context samples across four tasks with geometry-aware supervision.

1M
Paired training samples
2.33
Best FAED (state-of-the-art)
4
Unified downstream tasks
0.0063
Lowest LRCE-RGB (boundary)

A Two-Stage Framework

Canvas360 first learns geometry-aware panoramic priors through text-to-panorama pretraining, then transfers them to downstream tasks via unified in-context fine-tuning.

Canvas360 two-stage training pipeline
Two-stage training pipeline. Pretraining uses 100K RGB–depth panoramas with parallel depth generation and velocity circular padding; unified fine-tuning uses token-level concatenation across 900K downstream samples.
1

Parallel Depth Generation

RGB and depth generated in parallel via sequence concatenation, with a positional offset separating the two modalities.

2

Velocity Circular Padding

Ghost columns synchronize features across the 0°/360° seam, supervising boundary-consistent velocity prediction.

3

Similarity Loss Regularization

Penalizes RGB–depth correlation to avoid degenerate collapse and suppress over-darkened failures.

4

Unified In-context Fine-tuning

One shared context–prompt–target formulation handles all four tasks under appearance-only supervision.

Canvas360Dataset

A scalable synthesis pipeline producing 1M task-driven samples for in-context panoramic generation — explicitly designed with paired input–output data and geometry-aware supervision.

Data synthesis pipeline for four in-context tasks
Data synthesis pipeline across four tasks. (a) Style Transfer: FLUX.2-dev generates stylized panoramas across 12 styles. (b) Outpainting: random camera parameters produce diverse perspective-view masks. (c) Inpainting: random rectangular masks with complementary global and local prompts. (d) Editing: VLMs and grounding models localize objects, then FLUX.2-dev removes them — pairs are inverted for both erasure and addition.

Dataset Examples

Paired input–output samples across the four tasks. Use the arrows to browse three examples per task.

Style Transfer
Inpainting
Outpainting
Editing

Quantitative Results

Canvas360 achieves state-of-the-art panorama-specific fidelity (FAED) and leading perceptual quality on text-to-panorama generation, and consistently leads across the in-context tasks of style transfer, inpainting, outpainting, and editing.

Quantitative comparison on text-to-panorama generation. Best and second-best are highlighted.
MethodFID↓FIDpoleFIDequ FAED↓IS↑CS↑QAqualQAaesBRISQUE↓NIQE↓
PanFusion124.87182.09108.1211.061.3028.353.833.5627.384.31
SMGD46.7265.6934.843.291.4031.144.053.7730.354.75
PAR47.7276.9327.392.971.3433.853.913.5432.264.38
WorldGen67.1179.3233.453.291.4034.614.303.5932.314.82
LayerPano3D62.8280.3738.672.981.5034.404.733.9333.913.79
HunyuanWorld76.75106.5841.752.911.5334.734.673.8539.125.18
DiT36042.8850.8824.772.911.6034.684.694.1910.253.72
Canvas360 (Ours)44.1751.0225.962.331.7634.624.714.2017.123.70
Best result Second best ↓ lower is better ↑ higher is better
Style transfer. CP: content preservation, SR: style resemblance, OV: overall vision. Higher is better.
MethodCP↑SR↑OV↑
FLUX.1-Kontext-dev0.4570.4820.467
FLUX.2-dev0.4900.5030.495
Qwen-Image-Edit0.4640.4830.471
Ours0.5020.4910.497
Editing. Lower LPIPS/FAED and higher PSNR are better.
MethodLPIPS↓FAED↓PSNR↑
FLUX.1-Kontext-dev0.1020.45825.77
FLUX.2-dev0.0990.41026.17
NanoBanana0.0940.39525.91
SE3600.1380.38625.16
Omni20.1050.39225.03
Ours0.0840.35826.40
Inpainting. Lower LPIPS/FAED and higher PSNR are better.
MethodLPIPS↓FAED↓PSNR↑
Flux.1-Fill-dev0.1710.46124.23
PAR0.1580.45523.76
PanoDiffusion0.1470.52323.93
Ours0.0960.37125.87
Outpainting. Lower LPIPS/FAED and higher PSNR are better.
MethodLPIPS↓FAED↓PSNR↑
Flux.1-Fill-dev0.5091.91616.32
PAR0.5531.84916.71
PanoDiffusion0.6741.98915.21
Ours0.4161.79117.16

Across all four in-context tasks, Canvas360 leads on nearly every metric — strongest content preservation and overall vision in style transfer, and the best perceptual similarity (LPIPS), panorama fidelity (FAED), and reconstruction accuracy (PSNR) in inpainting, outpainting, and editing.

Downstream Applications

A single unified model applies correct panoramic distortion across inpainting, outpainting, editing, and style transfer — producing clean, geometry-consistent results.

Editing
Predicted Depth
More Results
More Editing
Editing qualitative comparison
Qualitative comparison for panorama editing. Canvas360 produces more faithful edits while better preserving panoramic geometry and surrounding-content consistency, achieving the best LPIPS (0.084), FAED (0.358), and PSNR (26.40).
Predicted depth maps
Predicted depth maps generated by Canvas360. The depth branch is structurally aligned with the panoramic scenes, showing that it captures meaningful geometric information rather than auxiliary noise — effective guidance for in-context panoramic generation.
More Canvas360 results
Additional in-context panoramic generation results. Across all tasks, Canvas360 consistently produces high-fidelity, visually coherent panoramas with distortion-consistent details and strong seam continuity.
More Canvas360 editing results
More panorama editing results from Canvas360, showing geometry-consistent object addition and removal with correct panoramic distortion across diverse scenes.

Ablations & Geometry Priors

Each geometry-aware component contributes to training robustness, boundary continuity, and panorama-consistent generation.

Velocity circular padding ablation
Velocity circular padding. Inputs are yaw-rotated by 180° to expose the panorama boundary. Compared with standard circular padding, our approach adds boundary supervision, yielding better continuity and edge alignment.
Parallel depth generation ablation
Parallel depth generation. Progressively adding depth conditioning, positional offsets, and the similarity loss reduces degenerate dark-output cases and produces cleaner, more stable panoramic generations.
Geometry prior retained after depth-supervised training
Retained geometry prior. Converting generated panoramas to cubemap side faces and re-estimating depth shows that depth-supervised training yields more geometrically consistent structures, especially around seams and boundaries.

BibTeX

@article{feng2026canvas360,
  title   = {Enhancing In-context Panoramic Generation via Geometric-aware Pretraining},
  author  = {Feng, Haoran and Zhang, Ruiyang and Zhang, Longyi and Zhang, Dizhe and Qi, Lu},
  journal = {arXiv preprint},
  year    = {2026}
}
×enlarged figure
Drag to look around
×