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

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

Abstract

We introduce a novel approach that takes a single semantic mask as input to synthesize multi-view consistent color images of natural scenes, trained with a collection of single images from the Internet. Prior works on 3D-aware image synthesis either require multi-view supervision or learning category-level prior for specific classes of objects, which can hardly work for natural scenes. Our key idea to solve this challenging problem is to use a semantic field as the intermediate representation, which is easier to reconstruct from an input semantic mask and then translate to a radiance field with the assistance of off-the-shelf semantic image synthesis models. Experiments show that our method outperforms baseline methods and produces photorealistic, multi-view consistent videos of a variety of natural scenes.

Introduction

Generating 3D content from a single image or mask is a long-standing challenge in computer vision. While significant progress has been made for objects with well-defined structures like human faces or cars, natural landscapes—comprising mountains, seas, and skies—lack a standard "template" or category-level prior. Existing 2D semantic synthesis tools, such as SPADE, can generate high-quality images from masks but struggle with 3D consistency; moving the camera often results in unnatural flickering or warping. Conversely, 3D-aware methods typically require multi-view training data, which is difficult to obtain for diverse natural environments.

Example of a simple 2D semantic mask used as input for scene synthesis.

This paper introduces a framework that transforms a single 2D semantic mask into a photorealistic, 3D-consistent video. By utilizing a "semantic field" as an intermediate bridge, the proposed method synthesizes complex natural landscapes that maintain structural integrity across novel perspectives, learning 3D priors from collections of unrelated single images.

Methods

The proposed approach employs a "divide and conquer" strategy, breaking the transition from a 2D mask to a 3D color world into two primary stages:

1. Generating View-Consistent Semantic Masks

The input mask is first warped to novel views using a predicted depth map. An Inpainting Network, trained on single-view image collections, fills in the disoccluded regions created by camera movement. To ensure spatial consistency, the authors introduce a Neural Semantic Field. This 3D representation fuses and denoises the various 2D masks, ensuring that semantic labels (e.g., the boundary between a mountain and the sea) remain consistent in 3D space.

2. Translating Semantics to Radiance

Once a consistent 3D semantic structure is established, the system uses a SPADE generator to translate these masks into RGB images. To mitigate remaining flickering artifacts, a Neural Scene Representation (utilizing a tri-plane architecture) is optimized. This step "bakes" the appearance into a 3D volume, enabling smooth, photorealistic rendering from any viewpoint.

A key insight is that inpainting semantic masks—which have low complexity and discrete labels—is significantly more stable than inpainting high-frequency RGB pixels. The semantic field acts as a "spatial anchor," forcing the RGB generator to produce consistent results.

Results

The framework was evaluated using the LHQ (Landscapes High Quality) dataset for training and Flickr Landscapes for testing. Quantitative results demonstrate the method's superiority, achieving a Fréchet Inception Distance (FID) of 109.85, a significant improvement over the next best baseline (127.74).

Synthesized natural scenes demonstrating variety in environment and lighting while maintaining 3D consistency.

Qualitative human preference studies further validate the approach, with users rating it significantly higher for both view consistency (4.11/5) and photo-realism (3.13/5) compared to existing pipelines. Furthermore, the system supports "semantic manipulation," allowing users to modify elements in the initial 2D mask and see corresponding updates in the 3D scene.

Conclusion

This work presents a robust pipeline for synthesizing 3D-consistent natural scenes from single semantic masks. While the current implementation requires per-scene optimization—taking several hours—future work aims to develop amortized inference models for near-instant generation. Additionally, while the model excels at static "fly-through" videos, extending the framework to handle dynamic elements like flowing water or swaying trees remains an open challenge.

Summary updated

BibTeX
@inproceedings{zhang2023painting,
  author = {Shangzhan 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