Skip to main content
QUICK REVIEW

[Paper Review] Roof-GAN: Learning to Generate Roof Geometry and Relations for Residential Houses

Yiming Qian, Hao Zhang|arXiv (Cornell University)|Dec 17, 2020
3D Shape Modeling and AnalysisEngineering39 references6 citations
TL;DR

Roof-GAN is a novel generative adversarial network that generates realistic, diverse residential roof structures by modeling roof primitives as a graph with learned geometric relationships. It uses a differentiable vectorizer and raster-based geometry representation to jointly generate structured geometry and enforce spatial relationships, outperforming prior methods in both qualitative and quantitative evaluations with a new metric for structured geometry generation.

ABSTRACT

This paper presents Roof-GAN, a novel generative adversarial network that generates structured geometry of residential roof structures as a set of roof primitives and their relationships. Given the number of primitives, the generator produces a structured roof model as a graph, which consists of 1) primitive geometry as raster images at each node, encoding facet segmentation and angles; 2) inter-primitive colinear/coplanar relationships at each edge; and 3) primitive geometry in a vector format at each node, generated by a novel differentiable vectorizer while enforcing the relationships. The discriminator is trained to assess the primitive raster geometry, the primitive relationships, and the primitive vector geometry in a fully end-to-end architecture. Qualitative and quantitative evaluations demonstrate the effectiveness of our approach in generating diverse and realistic roof models over the competing methods with a novel metric proposed in this paper for the task of structured geometry generation. Code and data are available at https://github.com/yi-ming-qian/roofgan .

Motivation & Objective

  • To generate diverse and realistic residential roof structures with complex geometric relationships.
  • To model roof geometry as a graph of primitives with learned spatial relationships (e.g., colinearity, coplanarity).
  • To enable end-to-end training of geometry and relationship generation using a differentiable vectorizer.
  • To develop a new evaluation metric (RMMD) for structured geometry generation that captures physical and topological fidelity.
  • To demonstrate compositional generalization, such as generating novel roof forms not in the training data.

Proposed method

  • The generator constructs a graph where nodes represent roof primitives with 4-channel raster images encoding facet segmentation and angles.
  • Edges encode geometric relationships (colinearity and coplanarity) using one-hot vectors.
  • A novel differentiable vectorizer converts raster geometry into vector format at each node, enabling end-to-end backpropagation.
  • The discriminator evaluates both holistic geometry composition and the correctness of relationships and vectorized geometry.
  • Two discriminators are used: one for global geometry and one for local relationships and geometry.
  • The model is trained end-to-end using adversarial loss, with supervision on relationships and geometry.

Experimental results

Research questions

  • RQ1Can a GAN-based model generate diverse and realistic residential roof structures with complex geometric relationships?
  • RQ2Can differentiable vectorization enable end-to-end learning of vectorized roof geometry while enforcing spatial relationships?
  • RQ3Does modeling relationships explicitly (e.g., colinearity, coplanarity) improve generation quality over methods that ignore such constraints?
  • RQ4Can the model generalize to novel roof configurations (e.g., O-shaped buildings) not present in the training data?
  • RQ5How does the proposed RMMD metric compare to FID in capturing meaningful differences in structured geometry?

Key findings

  • Roof-GAN outperforms PQ-Net and House-GAN by 39% in RMMD on cross-validation (3-primitive test set), demonstrating superior generalization.
  • The ablation study shows that removing relationship encoding reduces performance by 6.6%, confirming its critical role in realism.
  • The differentiable vectorizer contributes significantly, with performance dropping by 4.5% when removed, validating its effectiveness.
  • Roof-GAN generates novel, realistic roof forms such as O-shaped buildings not present in the training data, indicating strong compositional generalization.
  • In model retrieval, Roof-GAN consistently produces samples closest to ground truth in topology and structure, as confirmed by both visual inspection and RMMD scores.
  • FID scores are consistently better for Roof-GAN, though the metric's interpretability is limited compared to RMMD, which provides physical-unit-based distance measures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.