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

Handle found object problem #27

Open
Tachimura opened this issue Feb 12, 2024 · 10 comments
Open

Handle found object problem #27

Tachimura opened this issue Feb 12, 2024 · 10 comments

Comments

@Tachimura
Copy link

Hello, first of all thanks for your work!
I've tried to follow the blender tutorial, and after successfully install everything I got an error while executing main.py

Problem

When I run : python3 main.py I get the following error:

image

No images are rendered after the script finishes.

Context

I'm working with: Ubuntu 22.04.3 LTS (running on the linux sub-system for windows)

@aquarter147
Copy link

I have the same error as you. Have you fixed it?

@zoctipus
Copy link

I get this problem as well

@nnanhuang
Copy link

I have the same error as you. Have you fixed it?

@Dwawayu
Copy link

Dwawayu commented Mar 21, 2024

This issue comes when the rendering command quits with errors, but you cannot see what exactly it is. I suggest commenting the line 153 in main.py, and you will find the key problem.

@lulcai
Copy link

lulcai commented Mar 26, 2024

I commented out line 153 and got this error.How to solve this problem?
image

@Dwawayu
Copy link

Dwawayu commented Mar 26, 2024

I commented out line 153 and got this error.How to solve this problem? image

It shows that there is no (virtual) display. Make sure you have started the xserver-xorg following Setup-3 and the DISPLAY in your environment is right.

@mikimiso
Copy link

I had the same issue when I used "main.py" directly. And I solve it when I change "render_objects->gpu_devices" from None to 1. I guess rendering Objaverse must need GPU. ubuntu 20.04, python=3.10, and I don't install Xserver.

@mikimiso
Copy link

I had the same issue when I used "main.py" directly. And I solve it when I change "render_objects->gpu_devices" from None to 1. I guess rendering Objaverse must need GPU. ubuntu 20.04, python=3.10, and I don't install Xserver.

I try more.1) Don't change "gpu_devices", the code will use GPU and the bash command is "--engine BLENDER_EEVEE". Then I change it to "--engine CYCLES", fine.
2) Change "gpu_devices" to 1, the code will not use GPU and use "-- engine CYCLES", fine.
3) I git clone "objaverse-xl-test-files" to local, and directly "export DISPLAY=:0.0 && blender-3.2.2-linux-x64/blender --background --python blender_script.py -- --object_path 'xxxx/example.obj' --num_renders 12 --output_dir /xxx --engine CYCLES " in terminal,fine and fast.
so the core is --engine CYCLES, hoping to help you.

@lulcai
Copy link

lulcai commented Mar 28, 2024 via email

@Tachimura
Copy link
Author

Thank you @mikimiso; using --engine CYCLES works well for me.
When using main.py, I also had to modify the code so that the output results are saved into a non-temporary folder (in the render_objects function, I changed the values of render_dir and download_dir to a different directory)

Unfortunately, even after commenting out line 153 of main.py as recommended by @Dwawayu , I didn't receive any new error information (this action only printed the values of render_dir and download_dir in the terminal). However, changing line 127 from: args += " --engine BLENDER_EEVEE" to: args += " --engine CYCLES" resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants