princeton-vl / infinigen

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

Cannot generate scene using command in Hello World #241

Open AnneBai10 opened 6 months ago

AnneBai10 commented 6 months ago

Describe the bug

When I run the command "python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse", after generating one asset, it just stopped generating anything.

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log 830891c3ac988f6be02ded26388b1572a5463de3

What command did you run?

python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse

What are your FULL output logs?

Device with name Apple M1 supports metal minimum requirements [20:38:04.951] [root] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload [20:38:04.964] [infinigen.core.init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | infinigen version 1.2.6 [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None [20:38:04.975] [infinigen.times] [INFO] | [MAIN TOTAL] [20:38:04.975] [infinigen.core.execute_tasks] [INFO] | Processing frames 1 through 1 inclusive [20:38:04.982] [infinigen.times] [INFO] | [terrain] [20:38:04.982] [infinigen.times] [INFO] | [Create terrain] [20:38:04.982] [infinigen.terrain.core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/xxxx/Infinigen/infinigen/outputs/hello_world/coarse/assets') [20:38:34.564] [infinigen.terrain.core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere'] [20:38:34.564] [infinigen.times] [INFO] | [Create terrain] finished in 0:00:29.582581 [20:38:34.566] [infinigen.times] [INFO] | [meshing OpaqueTerrain]

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. i already use infinigen to generate individual assets, and it worked well

Platform

Additional context

Add any other context about the problem here.

AnneBai10 commented 6 months ago

logs.txt logs.txt

AnneBai10 commented 6 months ago

I add some log in generate_nature.py,and i found this sentence "terrain_mesh = terrain.coarse_terrain()" does not generate any results.And I also check the activity monitor on Mac, it seems the code is not running because only 10% CPU is used.Does anyone meet the same problem as I do? I am looking forward to receive a reply, thanks.

AnneBai10 commented 6 months ago

We also tried hello world on M2 and M3, and same problem happened.It seems that there is an issue with the kernel call. kernel

eric-prog commented 6 months ago

Having the same issue right now @araistrick

Are there any other commands to fix this? I am on an M1 right now.

mazeyu commented 6 months ago

Hi, I tested with my M1 MacOS Sonoma 14.5 but found no issues. I noticed there are warnings in your logld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly, which I don't have. Can you try to reinstall llvm or related packages?

eric-prog commented 6 months ago

Here are the installation steps I took: https://github.com/RaccoonResearch/infinigen

@mazeyu It is freezing here:

(infinigen) mycomputer@computer-MacBook-Air-2 infinigen % python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse Device with name Apple M1 supports metal minimum requirements [11:59:23.852] [root] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload [11:59:23.856] [infinigen.core.init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal [11:59:23.882] [infinigen.core.execute_tasks] [INFO] | infinigen version 1.3.4 [11:59:23.882] [infinigen.core.execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None [11:59:23.884] [infinigen.times] [INFO] | [MAIN TOTAL] [11:59:23.897] [infinigen.core.execute_tasks] [INFO] | Processing frames 1 through 1 inclusive [11:59:23.927] [infinigen.core.init] [INFO] | Available devices have types=['METAL', 'CPU'] [11:59:23.927] [infinigen.core.init] [INFO] | Cycles will use use_device_type='METAL', len(use_devices)=1 [11:59:23.943] [infinigen.times] [INFO] | [terrain] [11:59:23.943] [infinigen.times] [INFO] | [Create terrain] [11:59:23.943] [infinigen.terrain.core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/computer/Desktop/Folder/infinigen/outputs/hello_world/coarse/assets') [12:00:20.477] [infinigen.terrain.core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere'] [12:00:20.481] [infinigen.times] [INFO] | [Create terrain] finished in 0:00:56.537609 [12:00:20.489] [infinigen.times] [INFO] | [meshing OpaqueTerrain]

Freezes here forever (does not get past the meshing OpaqueTerrain).

I reinstalled the llvm.

When i do llvm-config --version I get 18.1.6

eric-prog commented 6 months ago

I am also on M1 MacOS Sonoma 14.2.1

eric-prog commented 6 months ago

Is it maybe because I am on 8gb of RAM

mazeyu commented 5 months ago

I checked it is using very little memory below 2G, so it is definitely not about RAM. But unfortunately, I don't know the real cause.

artgillespie commented 4 months ago

I'm seeing the same issue on M3.


python -m infinigen_examples.generate_nature --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse

Device with name Apple M3 Pro supports metal minimum requirements
[11:45:57.084] [acceleratesupport] [INFO] | No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
[11:45:59.367] [smb_client] [WARNING] | SMB_AUTH envvar is not set, smb_client upload will not work. Ignore this message if not using upload
[11:45:59.377] [init] [INFO] | Converted seed='0' to scene_seed=0, parsed as hexadecimal
[11:45:59.390] [execute_tasks] [INFO] | infinigen version 1.5.0
[11:45:59.390] [execute_tasks] [INFO] | CUDA_VISIBLE_DEVICES=None
[11:45:59.390] [logging] [INFO] | [MAIN TOTAL]
[11:45:59.390] [execute_tasks] [INFO] | Processing frames 1 through 1 inclusive
[11:45:59.394] [init] [INFO] | Available devices have types=['METAL', 'CPU']
[11:45:59.395] [init] [INFO] | Cycles will use use_device_type='METAL', len(use_devices)=1
[11:45:59.404] [logging] [INFO] | [terrain]
[11:45:59.404] [logging] [INFO] | [Create terrain]
[11:45:59.404] [core] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/Users/art/src/infinigen/outputs/hello_world/coarse/assets')
[11:46:24.569] [core] [INFO] | Terrain elements: ['ground', 'landtiles', 'warped_rocks', 'voronoi_rocks', 'atmosphere']
[11:46:24.570] [logging] [INFO] | [Create terrain] finished in 0:00:25.165732
[11:46:24.700] [logging] [INFO] | [meshing OpaqueTerrain]

From there, it hangs indefinitely. Process isn't using much memory or CPU.

txOdyssey commented 3 months ago

Same issue on M3....

zoctipus commented 2 months ago

Same issue on M2