princeton-vl / infinigen

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

How to decrease the memory usage when realising a tree's leaves? #189

Open xiaogangw opened 5 months ago

xiaogangw commented 5 months ago

Hi, thanks for the great work!

When I create a tree using the command "blender --background --python tools/generate_individual_assets.py -- -f TreeFactory", I found that the leaves are not realized during the generation stage since realize is set to False. But if I turn it on, the memory will be easily exploded.

Hence, is there a better way to handle the memory issue? Or how to realize the leaves batch by batch instead of all the leaves at the same time to possibly control the memory usage within a doable range?

YHD23 commented 4 months ago

I also had problems doing a similar task, I used the command line: python -m infinigen_examples.generate_individual_assets -f TreeFactory -n 1 --save_blend. But it doesn't work. Is it a problem with gin-config?