MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.21k stars 221 forks source link

Convert 3DGS to Mesh... Error: 'NoneType' object has no attribute 'ray_aabb_intersect' #133

Open SudaBad opened 5 months ago

SudaBad commented 5 months ago

Hi again my friend, I have been getting stuck on this one node with this particular error. Keep up the great work, you are awesome for the community. Thanks.

Error occurred when executing [Comfy3D] Convert 3DGS to Mesh with NeRF and Marching Cubes:

'NoneType' object has no attribute 'ray_aabb_intersect'

File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/ComfyUI-3D-Pack/nodes.py", line 1459, in convert_gs_ply converter.fit_nerf() File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/nerf_marching_cubes_converter.py", line 175, in fit_nerf image_pred, alpha_pred = self.render_nerf(pose) File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/nerf_marching_cubes_converter.py", line 124, in render_nerf ray_indices, t_starts, t_ends = self.estimator.sampling( File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, *kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/nerfacc/estimators/occgrid.py", line 164, in sampling intervals, samples, = traverse_grids( File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(args, kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/nerfacc/grid.py", line 158, in traverse_grids t_mins, t_maxs, hits = ray_aabb_intersect(rays_o, rays_d, aabbs) File "/home/ubuntu/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, *kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/nerfacc/grid.py", line 43, in ray_aabb_intersect t_mins, t_maxs, hits = _C.ray_aabb_intersect( File "/home/ubuntu/.local/lib/python3.10/site-packages/nerfacc/cuda/init.py", line 13, in call_cuda return getattr(_C, name)(args, **kwargs)

MrForExample commented 5 months ago

Thank you very much friend, and sorry for the late reply , was quite busy recently

From your error message, I can't tell what went wrong, I'm guessing some part of input is missing, is this error show in my example workflow? if not, then, can you pls share me your workflow?

SudaBad commented 5 months ago

Thanks for your reply, yes this is in your examples only where the 3DGS node is concerned, im going to try put my gpu in another computer and try your setup if that works then its probably a driver issue. Will report back. thanks.

WorkSync commented 2 months ago

Thanks for your reply, yes this is in your examples only where the 3DGS node is concerned, im going to try put my gpu in another computer and try your setup if that works then its probably a driver issue. Will report back. thanks.感谢您的回复,是的,这只是在您的示例中涉及 3DGS 节点的情况,我将尝试将我的 GPU 放入另一台计算机中,然后尝试您的设置,如果有效,则可能是驱动程序问题。会回来报告。谢谢。

hallo,how about now?