Open mhjiang0408 opened 2 months ago
It is OK! If you want to use 'CYCLES', you can directly change this command:
subprocess.run(f'{args.blender_install_path} -b {config_file} -E {args.engine_type} --python {script_file} \
-- --fbx_file {fbx_file} \
--output_dir {output_dir} \
--mesh_file {mesh_file}', shell=True)
Now I have add the engine_type
setting here:
parser.add_argument('--engine_type', default='BLENDER_EEVEE', help='BLENDER_EEVEE/CYCLES')
However, 'CYCLES' is too slower than 'BLENDER_EEVEE'.
In order to deploy this project on a linux server, since the server can't graphically visualise blender, I made the following changes, replacing the
render_colour_and_pos
function in the/3_style_translator/blender_animation.py
with the following code:My environment: python==3.9.19 CUDA==12.1 torch==2.4.1 NVIDIA GeForce RTX 4090 Less than 6GB of GPU memory.