princeton-vl / infinigen

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

Size of exported usdc file is 2kb and it completes processing immediately. I don't think it's a valid export #330

Open andytriboletti opened 1 week ago

andytriboletti commented 1 week ago

Describe the bug

A clear and concise description of what the bug is. I ran teh sample code to produce a scene hello world. The scene.blend file it created is 934 MB. I looked at the images folder and it looks correct. When I ran the export to usdc command it completed immediately and the size of hte file is very small

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log

What command did you run?

(infinigen) andy@andys-pc:~/infinigen/outputs/hello_world/0/fine$ python -m infinigen.tools.export --input_folder . --output_folder outputs/my_export -f usdc -r 1024

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file. (infinigen) andy@andys-pc:~/infinigen/outputs/hello_world/0/fine$ python -m infinigen.tools.export --input_folder . --output_folder outputs/my_export -f usdc -r 1024 Failed to open dir (No such file or directory): /run/user/1002/gvfs/ Skipping non-blend file MaskTag.json Skipping non-blend file assets Skipping non-blend file outputs Skipping non-blend file pipeline_fine.csv Skipping non-blend file polycounts.txt USD export of 'outputs/my_export/export_scene.blend/export_scene.usdc' took 18.8 ms updating: outputs/my_export/export_scene.blend/ (stored 0%) updating: outputs/my_export/export_scene.blend/export_scene.usdc (deflated 45%) Skipping non-blend file scene.blend1 Skipping non-blend file version.txt

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

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

Platform

Additional context

Add any other context about the problem here.

andytriboletti commented 1 week ago

In export_logs.log I see: INFO:root:Exporting to directory export_folder=PosixPath('outputs/my_export/export_scene.blend') INFO:root:Deleting placeholders collection DEBUG:root:Triangulating Meshes DEBUG:root:Triangulating <bpy_struct, Object("Cube") at 0x3b30758> INFO:root:--------------------------- INFO:root:Camera INFO:root:Not mesh, skipping ... INFO:root:--------------------------- INFO:root:Cube INFO:root:UV Unwrapping INFO:root:Material.001 INFO:root:Material.001 has no procedural input for DIFFUSE, not using baked textures INFO:root:No necessary materials to bake on Cube, skipping bake INFO:root:Material.001 INFO:root:Material.001 has no procedural input for ROUGHNESS, not using baked textures INFO:root:No necessary materials to bake on Cube, skipping bake INFO:root:Removed extraneous UV Layer <bpy_struct, MeshUVLoopLayer("UVMap") at 0x3c37008> INFO:root:Reapplying baked texs on Material.001 INFO:root:Trivial shader graph, using old BSDF INFO:root:--------------------------- INFO:root:Light INFO:root:Not mesh, skipping ... INFO:root:Exporting file to export_file=PosixPath('outputs/my_export/export_scene.blend/export_scene.usdc')