realcrane / iPLAN-Interactive-and-Procedural-Layout-Planning

Our CVPR 2022 paper, iPLAN: Interactive and Procedural Layout Planning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paper Image

Layout design is ubiquitous in many applications, e.g. architecture/urban planning, etc, which involves a lengthy iterative design process. Recently, deep learning has been leveraged to automatically generate layouts via image generation, showing a huge potential to free designers from laborious routines. While automatic generation can greatly boost productivity, designer input is undoubtedly crucial. An ideal AI-aided design tool should automate repetitive routines, and meanwhile accept human guidance and provide smart/proactive suggestions. However, the capability of involving humans into the loop has been largely ignored in existing methods which are mostly end-to-end approaches. To this end, we propose a new human-in-the-loop generative model, iPLAN, which is capable of automatically generating layouts, but also interacting with designers throughout the whole procedure, enabling humans and AI to co-evolve a sketchy idea gradually into the final design. iPLAN is evaluated on diverse datasets and compared with existing methods. The results show that iPLAN has high fidelity in producing similar layouts to those from human designers, great flexibility in accepting designer inputs and providing design suggestions accordingly, and strong generalizability when facing unseen design tasks and limited training data.

Getting Started

Dependencies

Below is the key environment under which the code was developed, not necessarily the minimal requirements:

  1. Python 3.6.13
  2. pytorch 1.7.0
  3. cuda 10.1

And other libraries such as numpy.

Prepare data

Download RPLAN from here and each data can be processed into the following format:

  data_item
      - name: file name in RPLAN dataset
      - boundary: (x, y, dir, isNew), external boundary and first two point indicate the front door
      - gt_rTypes: room categories
      - gt_rBoxes: (y0,x0,y1,x1), left-top(in) and right-bottom(out) corner of a room bounding box, extracted directly from the RPLAN dataset

Train

Train the models for predicting room types, locating room and partitioning room in sequence.

Run the training script, the experiment logs and outputs are saved in experiment.

For example:

  cd room_type
  python train_roomtype.py

The trained model can be download here for test.

Authors

Feixiang He, Yanlong Huang, He Wang

Feixiang He, scfh@leeds.ac.uk

He Wang, h.e.wang@leeds.ac.uk, Personal website

Project Webpage: http://drhewang.com/pages/iplan.html

Contact

If you have any questions, please contact me: Feixiang He(scfh@leeds.ac.uk)

Acknowledgement

Toolbox to render floorplan: https://github.com/zzilch/RPLAN-Toolbox

Original RPLAN dataset: http://staff.ustc.edu.cn/~fuxm/projects/DeepLayout/index.html

Citation (Bibtex)

Please cite our paper if you find it useful:

@article{he2022iplan,
title={iPLAN: Interactive and Procedural Layout Planning},
author={He, Feixiang and Huang, Yanlong and Wang, He},
journal={The Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2022}
}

License

Copyright (c) 2022, The University of Leeds, UK. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Our CVPR 2022 paper, iPLAN: Interactive and Procedural Layout Planning


Languages

Language:Python 100.0%