Painting 3D Nature in 2D: View Synthesis of Natural Scenes from a Single Semantic Mask

Shangzan Zhang, Sida Peng, Tianrun Chen, Linzhan Mou, Haotong Lin, Kaicheng Yu, Yiyi Liao, Xiaowei Zhou

TL;DR

This paper presents a novel framework that synthesizes photorealistic, multi-view consistent 3D videos of natural scenes from just a single 2D semantic mask. By using a 3D neural semantic field as an intermediate representation, the method successfully learns complex landscape geometry and texturing from unposed, single-view internet photos without requiring scarce multi-view training data.

What Problem Does This Paper Address?

Creating 3D virtual environments from simple 2D inputs (like user-drawn semantic layouts) is a dream for game developers and film producers. However, existing 3D-aware image synthesis methods typically rely on multi-view image collections or strict category-level priors (e.g., models trained specifically to generate human faces or cars). These approaches fail when applied to arbitrary natural landscapes like mountains, rivers, and oceans, where camera poses are unknown and layouts vary wildly.

A naive workaround is a two-stage pipeline: use an off-the-shelf 2D image generator (like SPADE) to turn a semantic mask into a realistic photo, and then apply a single-view 3D view synthesis network. However, this fails dramatically in practice. 2D image generators are incredibly sensitive; even tiny, pixel-level inconsistencies in warped semantic masks across different viewpoints cause the generator to produce wildly different textures and details, resulting in severe flickering and artifacting.

The sensitivity of 2D generators to minor semantic mask changes across views.

Methods

The core insight of this paper is that semantic masks are much less complex than color images, making them far easier to inpaint and make consistent in 3D space before generating textures.

The pipeline operates in two primary phases:

  1. Generating View-Consistent Semantic Masks: The input mask is converted to an initial RGB image to estimate a rough depth map. Using this depth, the semantic mask is warped to novel viewpoints. Because warping leaves empty holes (disocclusions), a self-supervised semantic inpainting network fills in the missing regions. To fix any view-inconsistencies introduced by the inpainter, these multi-view masks are fused into a continuous Neural Semantic Field (using Signed Distance Functions and volume rendering) to denoise and enforce strict 3D geometric consistency.

  2. Natural Scene Representation: The refined, view-consistent semantic masks are rendered from the semantic field and passed back through SPADE to generate pseudo-ground truth images. These images are then used to train a 3D appearance field (utilizing a tri-plane feature map representation). This appearance field is optimized via perceptual and adversarial losses to render final, flicker-free photorealistic images.

Overview of the proposed pipeline.

Datasets

  • LHQ (Landscape High-Quality) Dataset: A benchmark dataset containing a large collection of nature and landscape photos collected from the internet.
  • COCO-Stuff: Used to train a DeepLabv2 segmentation network, which automatically extracts the semantic masks from the LHQ dataset required to train the framework's inpainting network.

Key Insights and Ideas

  • The "SPADE Butterfly Effect": Tiny variations in a semantic layout cause massive, jarring changes in generated RGB textures. Therefore, achieving absolute 3D consistency in the semantic space before texture generation is crucial.
  • Semantics Over Pixels: Inpainting missing regions in a semantic mask (e.g., deciding where "grass" ends and "mountain" begins) is a much simpler learning problem for a neural network than trying to directly inpaint complex, high-frequency RGB textures.
  • Decoupling Geometry and Appearance: By using the semantic field strictly to lock down 3D geometry and layout consistency, the model can safely leverage powerful 2D image synthesis models to handle complex texturing without losing multi-view stability.

Key Results

The proposed method was evaluated against several strong baselines that combine SPADE with state-of-the-art view synthesis methods (such as InfiniteNatureZero, 3DPhoto, and AdaMPI).

  • Quantitative Metrics: The approach achieved a Fréchet Inception Distance (FID) of 109.85 and a Kernel Inception Distance (KID) of 0.050 on the LHQ dataset, significantly outperforming the closest baseline (SPADE + 3DPhoto at 127.74 FID / 0.064 KID).
  • User Study: Human evaluators rated the generated videos on a scale of 1–5. The proposed method scored highest in both View Consistency (4.11) and Realism (3.13), whereas baselines suffered from severe distortion or blurring when moving far from the original viewpoint.
Qualitative comparison showing more realistic and stable results against baselines.

Limitations and Future Work

  • Per-Scene Optimization: The primary limitation is computational efficiency. The neural scene representation must be optimized from scratch for every new input mask. Training takes roughly 16 hours per scene (13 hours for the semantic field and 3 hours for the appearance field) on an NVIDIA RTX 3090.
  • Future Directions: The authors point toward developing amortized inference models. If a network can learn to generalize across different semantic masks instantly without per-scene retraining, it would enable real-time, interactive 3D digital content creation.

Summary updated

BibTeX
@inproceedings{zhang2023painting,
  author = {Shangzan Zhang and Sida Peng and Tianrun Chen and Linzhan Mou and Haotong Lin and Kaicheng Yu and Yiyi Liao and Xiaowei Zhou},
  title = {{Painting 3D Nature in 2D: View Synthesis of Natural Scenes from a Single Semantic Mask}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=gM7GroGDO8},
}
Figure