princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.14k stars 430 forks source link

How to adjust FPS #209

Closed xichenpan closed 3 months ago

xichenpan commented 3 months ago

Describe the feature you would like to see implemented

Hi @araistrick, thanks for the great work! How can I adjust FPS in the rendered video?

I just browsered https://github.com/princeton-vl/infinigen/blob/main/infinigen_examples/configs/base.gin, but only find execute_tasks.frame_range, you mentioned in the https://github.com/princeton-vl/infinigen/blob/main/docs/ConfiguringInfinigen.md that this repo use 24 fps by default. How can I change the FPS to higher?

araistrick commented 3 months ago

Hello,

There isn't a gin config setting for it in the current public version, although coincidentally I have added one in v1.3 which will release soon.

In the meantime, you can just add bpy.context.scene.render.fps=100 to the start the compose_scene function in generate_nature.py