Dataset creation
Dataset creation
Here we show an example of how to create a large scale dataset. There are three important scripts:
blender_script.py
- This is the script that performs the rendering. It is called by thecreate_dataset.py
script.generate_labels.py
- This script generates the per-instance labels (e.g. lighting, pose) that will be used when generating the dataset.create_dataset.py
- This script calls theblender_script.py
script to generate the dataset, managing threading.
This is the most robust way to generate datasets. generate_labels.py
could be managed inside blender_script.py
, but you may run into issues of managing seeding between threads & jobs, which is why generating it outside of the script is desirable.