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

KeyError: 'mapping' during CarnivoreFactory with animation_mode='run' #215

Open Batwho opened 2 months ago

Batwho commented 2 months ago

Describe the bug

A clear and concise description of what the bug is. Populate step crashed after changing self.animation_mode='run'in the __init__ in CarnivoreFactory

Steps to Reproduce

I changed self.animation_mode='run' in the __init__ in CarnivoreFactory and lead to the populate step crashed. The output .err is attached. It works fine if I didn't hardcode it to 'run' and leave it as self.animation_mode = animation_mode.

What version of the code were you using?

Tell us the commit & commit hash from git log

What command did you run?

python -m infinigen.datagen.manage_jobs --output_folder outputs/video/tiger --num_scenes 1 --specific_seed 0 --configs desert.gin simple.gin tiger.gin --pipeline_configs local_16GB.gin monocular_video.gin cuda_terrain.gin -v --pipeline_overrides iterate_scene_tasks.frame_range=[1,16]

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file. populate.txt

If this is your first time running Infinigen, what are the full install logs?**

Run pip install -vv -e . > logs.txt 2>&1 and send logs.txt as an attachment.

Platform

Additional context

Add any other context about the problem here. For tiger.gin, I just set carnivore probability to 1.0

araistrick commented 2 months ago

Hello,

I reproduced this and have looked into fixing it, but its proving tricky for the timebeing or at least for tonight.

For now, you can avoid this issue by disabling hair, if this would still be useful to you. The following runs fine:

from infinigen.assets import creatures
creatures.CarnivoreFactory(0, animation_mode='run')(0, hair=False)