infinigen: Running python generate images command crash
issue
The error says no module ‘gin’, But I’ve run requirements.txt, Use the pip list to check that gin-config=0.5.0 already exists
System:
Windows 11 22H2 - WSL Ubuntu 22.04 LTS
Hardware:
AMD 4800HS + RTX 2060
Command
python -m tools.manage_datagen_jobs --output_folder outputs/hello_world --num_scenes 1 --pipeline_configs local_16GB monocular blender_gt --specific_seed 0 --configs desert simple
Screenshot
Crash Files
crashed.txt
0 coarse 48951254576 Error: Python: Traceback (most recent call last):,Error: No module named 'gin' fatal=True 06/18 09:36PM
48951254576_0_log.out
The following command is sent: “nice -n 20 …/blender/blender --background -y -noaudio --python generate.py – --output_folder outputs/hello_world/0/coarse --seed 0 --task coarse --task_uniqname coarse -g desert simple -p LOG_DIR=‘outputs/hello_world/0/logs’ execute_tasks.frame_range=[1, 48] execute_tasks.camera_id=[0, 0]” Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) /mnt/wslg/runtime-dir/gvfs/ non-existent directory Error: Python: Traceback (most recent call last): File “/mnt/f/AIToolKit/AIGC/infinigen-main/worldgen/generate.py”, line 19, in <module> import gin ModuleNotFoundError: No module named ‘gin’ Blender quit
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 19 (2 by maintainers)
made it work by adding
--python-use-system-envparameter on my machine. The full command is$BLENDER -noaudio --background --python-use-system-env --python generate.py -- --seed 0 --task coarse -g desert simple --output_folder outputs/helloworld/coarseReference https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html#python-options
What fixed this error for me was to do
sudo apt install g++and then rerunning./blender/3.3/python/bin/pip install -r ./requirements.txtI started with the same gin package issue and followed the #37 patch, but it didn’t fix it for me, even after a fresh install using #37.
Running
Returns
Can confirm that #37 fixes my issues. Scenes are now generating and rendering. Thanks! 😃