Skip to content
프로젝트

소개

The implementation of "HouseDiffusion: Vector Floorplan Generation via a Diffusion Model with Discrete and Continuous Denoising", https://arxiv.org/abs/2211.13287

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

HouseDiffusion

HouseDiffusion: Vector Floorplan Generation via a Diffusion Model with Discrete and Continuous Denoising

Installation

1. Clone our repo and install the requirements:

Our implementation is based on the public implementation of guided-diffusion. For installation instructions, please refer to their repository. Keep in mind that our current version has not been cleaned and some features from the original repository may not function correctly.

git clone https://github.com/aminshabani/house_diffusion.git
cd house_diffusion
pip install -r requirements.txt
pip install -e .

2. Download the dataset and create the datasets directory

  • You can download the datasets from RPLAN's website or by filling this form.
  • We also use data preprocessing from House-GAN++ which you can find in this link. Put all of the processed files from the downloaded dataset in a datasets folder in the current directory:
house_diffusion
├── datasets
│   ├── rplan
|   |   └── 0.json
|   |   └── 1.json
|   |   └── ...
|   └── ...
└── guided_diffusion
└── scripts
└── ...
  • We have provided a temporary model that you can download from Google Drive.

NOTE: We have recently received many requests regarding issues with downloading the RPLAN dataset. If you are looking for an alternative, we highly recommend using the MagicPlan dataset provided in our PuzzleFusion paper. MagicPlan is a real-world dataset of room layouts constructed via AR, and the link includes both the data and the necessary reader.

Running the code

1. Training

You can run a single experiment using the following command:

python image_train.py --dataset rplan --batch_size 32 --set_name train --target_set 8

2. Sampling To sample floorplans, you can run the following command from inside of the scripts directory. To provide different visualizations, please see the save_samples function from scripts/image_sample.py

python image_sample.py --dataset rplan --batch_size 32 --set_name eval --target_set 8 --model_path ckpts/exp/model250000.pt --num_samples 64

You can also run the corresponding code from scripts/script.sh.

Citation

@article{shabani2022housediffusion,
  title={HouseDiffusion: Vector Floorplan Generation via a Diffusion Model with Discrete and Continuous Denoising},
  author={Shabani, Mohammad Amin and Hosseini, Sepidehsadat and Furukawa, Yasutaka},
  journal={arXiv preprint arXiv:2211.13287},
  year={2022}
}

관련 프로젝트 살펴보기

불러오는 중…