Interior Plan Generation for Residential Buildings
- Configuration Python PyTorch Visual Studio Qt
- Creating the dataset
(1) Download the dataset;
(2) Create a directory named
datasetunder the root directory, and divide the dataset intodataset/trainanddataset/val; (3) Runpython write_pickle.py, and this should create a new directory,pickle, under the root directory. - Training the models
We provide four training scripts:
train_living.py,train_continue.py,train_location.pyandtrain_wall.pythat you can find in the folderLiving,Continue,Location, andWall, respectively. The neural networks are described in detail in our paper. - Synth floor plans
- Move the trained models into the folder
synth/trained_model; These trained models includes: living_fc1_300.pth, living_resnet34_300.pth continue_fc2_300.pth, continue_resnet34_300.pth location_up1_100.pth, location_resnet34_100.pth wall_up1_100.pth, wall_resnet34_100.pth - Now, navigate to
/synth, and runpython synth.py. The output floor plan is in the foldersynth_output.
- Vectorization
To vectorize the floor plans generated by our method, run
python vectorization.py. This should create a new directory,synth_vectorization, under the root directory. There is also a GUI tool to visualize the vectorized floor plans.