Releases: TeoNikolov/genea_visualizer
GENEA-visualizer-minimal-v2022.1
Description
This release contains a minimal version of the GENEA visualization tool in the form of a Blender script that you can use directly with Blender through the command line or Blender's user interface. This release is useful if you have Blender installed on your system and you want to play around with the visualizer. Note that while the release should resemble the final visualizer as close as possible (i.e. the one that will be used during evaluation), it is possible that some of the code, or default settings, change. If you wish to avoid this, then it is better to use the server-based solution, either hosted by the GENEA organizers, or hosted by yourself after downloading the files from this repository.
Using the script
- Make sure you have
Blender 2.93.9
(other versions may work, but this is not guaranteed). - Extract the .zip contents to a directory of your choice.
- Start
Blender
and navigate to theScripting
panel above the 3D viewport. - In the panel on the right of the 3D viewport, press
Open
to navigate to the script directory and openGENEA_script_wip.py
. - Tweak the settings in
main()
online 200
, under theif
statement - make sure to specify full paths for the BVH and WAV files, including the extension and drive label. - When ready, run the script by pressing the "play" button at the top to render the scene (this can take a while, so try with fewer frames first).
- The rendered video will be output to the
output
directory, next to the script file.
A friendly tip
It is likely that your machine learning pipeline outputs a bunch of BVH and WAV files, such as during hyperparameter optimization. Instead of processing each BVH/WAV file pair separately through Blender's UI yourself, call Blender with command line arguments like this:
"<path to Blender executable>" -b --python "<path to Blender .py script>" -- --input "<path to BVH file>" --input_audio "<path to WAV file>" --video
On Windows, you may write something like this:
"C:\Program Files (x86)\Steam\steamapps\common\Blender\blender.exe" -b --python ./blender_render.py -- --input "C:\Users\Wolf\Documents\NN_Output\BVH_files\mocap.bvh" --input_audio "C:\Users\Wolf\Documents\NN_Output\audio.wav" --video
You can also specify a --duration <frame count>
flag to render clips shorter than 3600 frames, for faster testing!
GENEA-visualizer-minimal-v2022.0
This release contains a minimal working version of the GENEA visualization script. Using the visualization tool is currently a manual process, which requires the following to be performed:
- Make sure you have
Blender 2.83.19
(other versions may work, but this is not guaranteed) - Extract the .zip contents to a directory of your choice
- Start
Blender
and navigate to theScripting
panel above the 3D viewport - In the panel on the right of the 3D viewport, press
Open
to navigate to the script directory and openGENEA_script_wip.py
- Tweak the settings below
main()
online 196
- there are 7 settings you can configure - When ready, run the script by pressing the "play" button at the top to render the scene (this can take a while, so try with fewer frames first)
- To use your own data, place all BVH files in the
bvh_files
directory inside the script directory. Do the same for WAV files by putting them insidewav_files
inside the script directory. Make sure to changeBVH_FILE_NAME
andAUDIO_FILE_NAME
to point to the files you want to use!