The overall scene synthesis dataset is not compatible with the popular 3D graphics program such as blender. This repository contains code to convert .blend files to .json files for use with 3D-FRONT.
Our code requires the following dependencies.- Blender 4.0
- pyyaml
- json
- numpy
To use the program:
- First, run the Blender script to generate .txt files containing scene information
- Then, execute the Python script. When running the Python script, make sure to specify the paths to the Blender output files in the Python project's config file.
-
Blender script
You can run the Blender script by copying the code into the scripting tab within the Blender program and executing it, or by following the appropriate method for running Blender scripts.
-
Python script
When running the Python script to convert Blender files to 3D-FRONT files, you need to pass the config file path as an argument:
python blender_to_front.py --config_file CONFIG_FILE_PATH
-
Python script
To update the
model_info.json
, run the provided Python script, passing the config file path as an argument:python update_model_info.py --config_file CONFIG_FILE_PATH