Abstract
Indoor panorama inpainting is a challenging task due to extreme geometric distortions and the need to preserve strict structural constraints, such as the sharp boundaries between walls, floors, and ceilings. We present LGPN-net, a layout-guided framework that utilizes estimated room layouts as a structural skeleton for the inpainting process. By introducing a novel plane-aware normalization module, the model treats different semantic regions independently, ensuring texture consistency and structural alignment. Evaluated on the Structured3D dataset, LGPN-net significantly outperforms state-of-the-art methods in both quantitative metrics and visual realism, effectively removing furniture and filling holes without the common issues of structural drift or blurring.
Introduction
360-degree indoor panoramas are essential for immersive virtual tours and interior design. However, editing these images—such as removing furniture or filling missing regions—presents unique challenges. Standard inpainting techniques designed for perspective images fail to account for the equirectangular projection's inherent geometric distortions, leading to warped lines and blurry textures. Furthermore, indoor scenes require strict adherence to global structural constraints; failing to align a wall with its adjacent ceiling results in "structural drift" and "ghosting" artifacts near room corners.
To address these issues, LGPN-net adopts a "structure-first" philosophy. By leveraging room layout priors to guide the inpainting process, the framework ensures that reconstructed areas remain perfectly aligned with the existing architecture, maintaining the integrity of the 3D scene.
Proposed Method
LGPN-net operates by integrating global structural context with local semantic details. The process begins with Layout Guidance, where an off-the-shelf model (HorizonNet) estimates the room's layout—the lines where walls, floors, and ceilings intersect. This layout acts as a "skeleton" that tells the generator exactly where structural boundaries should be.
Plane-aware Normalization
The core innovation of this work is the Plane-aware Normalization module. Unlike standard normalization techniques that treat the entire image uniformly, this module recognizes the ceiling, floor, and individual walls as distinct semantic planes.
- Style Extraction: The model extracts specific "style codes" for each plane.
- Structural Plane-aware Normalization (SPAN): Inspired by SEAN and SPADE architectures, this module injects plane-specific styles back into the decoder. This ensures that if the model is filling a hole on a wooden floor, it utilizes textures consistent with the surrounding floor rather than bleeding in colors from the white ceiling or painted walls.
The entire architecture is trained as an end-to-end Generative Adversarial Network (GAN), optimized using a combination of reconstruction, perceptual, style, and adversarial losses to ensure photorealistic results.
Experiments and Results
The model was primarily trained and evaluated on the Structured3D dataset, which contains over 21,000 photo-realistic indoor panoramas. This dataset provides unique pairs of "furnished" and "empty" versions of the same rooms, enabling direct ground-truth comparison for furniture removal tasks.
Quantitative Performance
On the Structured3D dataset, LGPN-net achieved superior scores across all major metrics. For empty scenes, it reached a PSNR of 41.84 (compared to PanoDR's 37.24) and a significantly lower FID of 2.52 (compared to PanoDR's 4.35), indicating much higher image quality and realism.
Qualitative Comparison
Visual results demonstrate that LGPN-net is significantly better at maintaining straight lines at room corners. While previous state-of-the-art models like EdgeConnect (EC) or PanoDR often produce "wavy" or blurry walls, LGPN-net's results are often indistinguishable from the ground truth.
Conclusion and Future Work
LGPN-net represents a significant advancement in indoor panorama editing by integrating global structural priors with local semantic style injection. By moving beyond simple "copy-paste" or unguided hallucination, the model achieves superior consistency and realism.
Despite these gains, some limitations remain. One persistent issue is "residual shading," where shadows from removed furniture may still be visible on the floor. Additionally, the model's performance is tied to the accuracy of the initial layout estimation. Future work will focus on developing more sophisticated segmentation masks that specifically account for shading to further improve the cleanliness of furniture removal in complex lighting environments.
Summary updated