/human-centric-scene-synthesis

Code for CVPR2018 - Human-centric Indoor Scene Synthesis Using Stochastic Grammar.

Primary LanguageC++MIT LicenseMIT

CVPR2018 - Human-centric Indoor Scene Synthesis Using Stochastic Grammar

Instructions

Running the sampler

cd src/cpp
mkdir build && cd build
cmake ..
make -j8
./cpp 0
  • The sampled results are saved as txt and json files in `tmp/samples'. The txt files can be opened and viewed by RoomArranger (free to use on Linux).

Visualizing the results

  • Change the paths in 'src/python/config.py'
  • Run 'src/python/visualize_activity.py'. The visualization results are saved in 'tmp/figures'.

If you find this code useful, please cite our work with the following bibtex:

@inproceedings{qi2018human,
    title={Human-centric Indoor Scene Synthesis Using Stochastic Grammar},
    author={Qi, Siyuan and Zhu, Yixin and Huang, Siyuan and Jiang, Chenfanfu and Zhu, Song-Chun},
    booktitle={Conference on Computer Vision and Pattern Recognition (CVPR)},
    year={2018}
}