Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling' In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>) #360

Open
wancmx opened this issue Oct 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@wancmx
Copy link

wancmx commented Oct 25, 2024

Describe the bug

Hello, After I finished Hello Room,I wanted to export the furniture inside the building as a single obj, so I executed the following command:
python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/my_export2 -f obj -r 1024 --individual
report errors:
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling'
In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>)
image

Steps to Reproduce

first I use the "python -m infinigen_examples.generate_indoors --seed 0 --task coarse --output_folder outputs/indoors/coarse -g fast_solve.gin singleroom.gin -p compose_indoors.terrain_enabled=False restrict_solving.restrict_parent_rooms=["DiningRoom"]",
and then i use the "python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/my_export2 -f obj -r 1024 --individual ",after that, the program reported two errors.

What version of the code were you using?

Commit 0fd9e54

What command did you run?

python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/my_export2 -f obj -r 1024 --individual

What are your FULL output logs?

FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling'
In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>)

Platform

  • OS & OS Version: Ubuntu 20.04.6 LTS
  • GPU (?) : GTX 4080 super
  • GPU Driver Version (?) : NVML Version:12.550.120
  • RAM (GB):32GB
@wancmx wancmx added the bug Something isn't working label Oct 25, 2024
@GCChen97
Copy link
Contributor

The path is wrong because the filename is 'bathroom_0/0_ceiling' with a '/' in itself.

@wancmx
Copy link
Author

wancmx commented Oct 28, 2024

The path is wrong because the filename is 'bathroom_0/0_ceiling' with a '/' in itself.

Sorry, I don't understand what you mean,and if I use "python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/my_export2 -f obj -r 1024", there is no error,but only one obj file of the entire house will be generated, which is not what I want

Thanks for your reply

@GCChen97
Copy link
Contributor

The slashes "/" in the object names result in the errors. If you check the object names in blender, you will notice that some meshes are named "xx0/xx1/xx2". So when you export those objects individually, the save path will also be "/xx0/xx1/xx2", which means saving object "xx2" into folder "/xx0/xx1". But obviously, folder "/xx0/xx1" does not exists. You need to modify the code so that it replaces every "/" in the object names before saving them.

@wancmx
Copy link
Author

wancmx commented Oct 29, 2024

对象名称中的斜杠“/”会导致错误。如果您在 blender 中检查对象名称,您会注意到一些网格被命名为“xx0/xx1/xx2”。因此,当您单独导出这些对象时,保存路径也将是“/xx0/xx1/xx2”,这意味着将对象“xx2”保存到文件夹“/xx0/xx1”中。但显然,文件夹“/xx0/xx1”不存在。您需要修改代码,以便在保存对象名称之前替换它们中的每个“/”。

Thank you for your help,after I modified the following code, the code outputs the obj file normally
edit file: infinigen/tools/export.py
image
image

@araistrick
Copy link
Contributor

araistrick commented Nov 1, 2024

@GCChen97 feel free to PR this, otherwise @David-Yan1 can patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants