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

Crash at 'Flat Shading' step for blendergt task - 'AttributeError' #385

Open
hdoi5324 opened this issue Dec 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@hdoi5324
Copy link

hdoi5324 commented Dec 5, 2024

Describe the bug

when running blendergt task in hello_world example, it crashes with an 'Attribute Error'.

Steps to Reproduce

nice -n 20 /home/heather/.conda/envs/infinigen/bin/python -m infinigen_examples.generate_nature -- --input_folder /home/heather/GitHub/infinigen_4_2/outputs/hello_world/7e8bb778/fine --output_folder /home/heather/GitHub/infinigen_4_2/outputs/hello_world/7e8bb778/frames_0_0_0048_0 --seed 7e8bb778 --task render --task_uniqname blendergt_0_0_0048_0 -g desert desert.gin simple.gin -p render.render_image_func=@flat/render_image LOG_DIR='/home/heather/GitHub/infinigen_4_2/outputs/hello_world/7e8bb778/logs' execute_tasks.frame_range=[48,48] execute_tasks.camera_id=[0,0] execute_tasks.resample_idx=0 execute_tasks.point_trajectory_src_frame=1

What version of the code were you using?

commit e254428
Merge: 368ffff 9aa6bca
Author: pvl-bot [email protected]
Date: Wed Nov 20 10:54:36 2024 -0500

Merge branch 'develop' for v1.11.2

What command did you run?

python -m infinigen.datagen.manage_jobs --output_folder outputs/hello_world --num_scenes 1 --configs desert.gin simple.gin --pipeline_configs local_16GB.gin monocular.gin blender_gt.gin

What are your FULL output logs?

out.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

  • OS & OS Version: Linux
  • GPU (?) :
  • GPU Driver Version (?) :
  • RAM (GB):

Additional context

Proposed fix:
Seems to be leaving None in the object list after removing 'Atmosphere' and 'Atmosphere Fine' in global_flat_shading(). See https://docs.blender.org/api/current/info_gotcha.html

Adding bpy.context.view_layer.update() to the end of first for loop in global_shading() seems to fix it. I'll put in a PR.

@hdoi5324 hdoi5324 added the bug Something isn't working label Dec 5, 2024
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

1 participant