- Download the following files and save to
src/metatdata/stats
- Modify the paths in the
main
function insrc/cpp/main.cpp
- Build and run 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).
- 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}
}