← Latest papers
💻 computer science

Enhancing In-context Panoramic Generation via Geometric-aware Pretraining

The paper introduces Canvas360, a two-stage framework that leverages a newly created 1M-sample dataset and geometry-aware pretraining techniques to achieve state-of-the-art performance in diverse in-context panoramic generation tasks while ensuring superior geometric consistency and global coherence.

Original authors: Haoran Feng, Ruiyang Zhang, Longyi Zhang, Dizhe Zhang, Lu Qi

Published 2026-07-10
📖 4 min read☕ Coffee break read

Original authors: Haoran Feng, Ruiyang Zhang, Longyi Zhang, Dizhe Zhang, Lu Qi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you're trying to paint a perfect 360-degree panorama of a room on a flat piece of paper. The problem? When you wrap a flat map around a sphere, the top and bottom get squished and stretched like a weird, melted cheese pizza. Most AI art generators try to fix this by using special "cube" maps or 3D tricks, but the authors of this paper, Canvas360, suggest those methods still leave the geometry looking a bit wonky. They argue that if you want a truly seamless, distortion-free panoramic world, you can't just look at the picture; you need to understand the depth and the shape of the space itself.

So, how did they fix it? They built a two-stage training pipeline that acts like a master architect and then a versatile painter.

Stage 1: The Geometry Boot Camp
First, the team taught their AI model to see the world in 3D, not just 2D. They didn't just show the model pictures; they paired every single image with a depth map (a blueprint showing how far away every object is). They fed 100,000 of these paired samples into the model.

To make sure the model didn't get confused between the picture and the blueprint, they used a clever trick: they gave the depth map a "positional offset," like giving it a different seat number in a theater so it knows it's not the same as the picture next to it. They also added a special rule called a "similarity loss," which basically scolded the model if the picture and the depth map started looking too much alike, forcing them to stay distinct.

The coolest part? They introduced velocity circular padding. Imagine a video game world where if you walk off the right edge of the screen, you instantly appear on the left. The authors made sure the AI understood that the left and right edges of a panorama are actually neighbors on a sphere. They didn't just copy-paste the edges; they taught the model that the "velocity" (the direction of change) at the edge must flow perfectly into the other side. This helped the model learn to keep the seams invisible.

Stage 2: The Versatile Painter
Once the model understood the geometry, they moved to the second stage: teaching it to be a master of in-context generation. This means the AI can now take an existing image and a text prompt to do all sorts of magic tricks without needing the depth maps anymore. They trained it on a massive new dataset called Canvas360Dataset, which contains 1 million high-quality samples.

This dataset was built by synthesizing 900,000 new examples covering four specific tasks:

  • Style Transfer: Turning a photo into a pencil sketch or a painting (200,000 samples).
  • Outpainting: Expanding the view beyond the original borders (250,000 samples).
  • Inpainting: Filling in missing holes in the image (250,000 samples).
  • Editing: Removing objects (like a sofa) or adding new ones (200,000 samples).

The authors explicitly argue against the idea that you need to train separate models for each of these tasks or rely on older "cube map" methods. Instead, they suggest that a single, unified model, pre-trained on geometry, can handle all these jobs better.

Did it work?
The results suggest a strong improvement. When they tested the model, it scored the best on a specific metric called FAED (which measures how faithful the panorama is to the geometry) and performed very well on other quality checks. In a user study with 71 people looking at 10 images, Canvas360 was the favorite for having the most seamless boundaries and the best overall quality.

The authors note that while previous methods often left blurry edges or distorted objects when editing a panorama, Canvas360 managed to keep the 3D structure intact. They didn't claim to have solved every problem in the universe, but their experiments suggest that by teaching the AI to respect the spherical shape of the world from the very beginning, they created a tool that generates much more consistent and realistic panoramic images.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →