ResPlan CVAE
Floor plan generation and interpolation
2 min read
ResPlan CVAE is a conditional variational autoencoder (CVAE, an architecture that compresses data into a latent space to generate new samples) trained on the ResPlan residential floor plan dataset. It encodes floor plan geometry into a 64-dimensional latent space and reconstructs it via a decoder conditioned on numerical parameters like area and wall depth. Built during the IAAC AI Architecture 2026 hackathon, this model is designed for exploratory generative design rather than production-ready architectural documentation.
Key features
- CVAE architecture: A compact 64-dimensional latent space for encoding and reconstructing spatial patterns.
- ResPlan dataset: Trained on 17,000 residential floor plans across 14 geometric channels, including walls, doors, rooms, and gardens.
- ONNX format: Exported to ONNX for fast inference via ONNX Runtime without heavy deep learning frameworks.
- Interpolation: Supports smooth transitions between the latent representations of two different floor plans.
What you can do
- Design exploration: Generate intermediate residential floor plan variations using latent interpolation.
- ONNX inference: Run the model locally to reconstruct 14-channel raster floor plan representations.
- Pipeline integration: Use saved sample inputs to test and prototype architectural ideas.
Example
Running model inference with ONNX Runtime:
import onnxruntime as ort
import numpy as np
session = ort.InferenceSession(
"resplan_cvae.onnx",
providers=["CPUExecutionProvider"]
)
images = np.load("example_inputs/floorplan_01.npy").astype(np.float32)
conditions = np.load("example_inputs/condition_01.npy").astype(np.float32)
input_names = [item.name for item in session.get_inputs()]
outputs = session.run(
None,
{
input_names[0]: images,
input_names[1]: conditions
}
)
print("Output shape:", outputs[0].shape)Read more
DetailsParameters: 2.32M (for the CVAE_z64 configuration).
Best metric: Lowest reconstruction error and objective score achieved with a latent dimension of 64 (test objective: 187.84).
Inputs: 64x64 raster resolution, 14 geometric channels, and 3 numerical features.
Limitations: Outputs raster images rather than vector CAD/BIM files; walls and details can appear blurry, and architectural validity is not guaranteed.










Comments