crockwell / Cap3D

[NeurIPS 2023] Scalable 3D Captioning with Pretrained Models
https://huggingface.co/datasets/tiange/Cap3D
218 stars 13 forks source link

TypeError: bpy_struct: item.attr = val: enum "OPTIX" not found in ('OPENIMAGEDENOISE') #24

Open Larerr opened 5 months ago

Larerr commented 5 months ago

Thank you for your excellent work!

When I run render_script.py, I get the following error. I'm using the blender.zip provided in your documentation for my Blender configuration, but it's still reporting the error. Looking forward to your answers!

Blender 3.4.1 (hash 55485cb379f7 built 2022-12-20 00:46:45)
/run/user/1011/gvfs/ non-existent directory
Error: Python: Traceback (most recent call last):
  File "/data3/hongbo.wang/Cap3D/captioning_pipeline/render_script.py", line 43, in <module>
    bpy.context.scene.cycles.denoiser = 'OPTIX'
TypeError: bpy_struct: item.attr = val: enum "OPTIX" not found in ('OPENIMAGEDENOISE')
Larerr commented 5 months ago

When I comment out the line bpy.context.scene.cycles.denoiser = 'OPTIX' the code works fine, but the run gets a solid grey image. image The way I get the .glb file is this:

        rgb_255 = np.round(rgb * 255).astype(np.int64)
        cloud = trimesh.points.PointCloud(vertices=coords, colors=rgb_255)
        cloud.export('point_cloud_255.glb', file_type='glb')

Where coords is the N3 point cloud position and rgb is the N3 point cloud RBG, I converted to 255 and then exported via trimesh, is this process correct?

Looking forward to your reply!

tiangeluo commented 5 months ago

Hi @Larerr , could u please try the rendering script here https://github.com/tiangeluo/DiffuRank/blob/main/render_script_type1.py, and let me know if the results is good or bad?