This repository contains the code for generating the data described in "Efficient Realistic Data Generation Framework leveraging Deep Learning-based Human Digitization"
- Python3
- Pyglet
- Pycocotools
- Opencv
- Matplotlib
- Scikit-image
- PyWavefront
- Pickle5
- Pillow
pip install -r requirements.txt
- Run the following shell script in order to download the 3D human models and other files neccessary for the generation process. The 3D human models are generated through https://github.com/shunsukesaito/PIFu, which is provided under the MIT licence, using images from the Clothing Co-Parsing (CCP) dataset as input, which are provided under the Apache 2.0 licence.
mkdir -p ./background_images/CityScapes/in
mkdir -p ./background_images/CityScapes/out
chmod +x download_files.sh
./download_files.sh
- Download the CityScapes dataset from www.cityscapes-dataset.net
- RGB images: (a) leftImg8bit_trainvaltest.zip, (b) leftImg8bit_trainextra.zip
- Annotation images: gtCoarse.zip
- RGB images: (a) leftImg8bit_trainvaltest.zip, (b) leftImg8bit_trainextra.zip
The folder hierarchy should look like this:
├─ background_images
| ├─ CityScapes
| └─ in
| | ├─ leftImg8Bit
| | └─ gtCoarse
| └─ out
|
...
- Run the following script to reformat the CityScapes dataset.
python reformat_cityscapes.py
python create_background_images.py
- Run the following script to generate the dataset.
python create_dataset.py
If you make use of the dataset, please cite the following reference in any publications:
@inproceedings{symeonidis2021data,
title={Efficient Realistic Data Generation Framework leveraging Deep Learning-based Human Digitization},
author={Symeonidis, C. and Nousi, P. and Tosidis, P. and Tsampazis, K. and Passalis, N. and Tefas, A. and Nikolaidis, N.}
booktitle={Proceedings of the International Conference on Engineering Applications of Neural Networks (EANN)},
year={2021}
}