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.08k stars 201 forks source link

ImportError: simple_knn undefined symbol #63

Open signorinileandro opened 6 months ago

signorinileandro commented 6 months ago

I'm getting this error on Ubuntu 22.04:

`Traceback (most recent call last): File "/home/leandro/ComfyUI/nodes.py", line 1893, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/home/leandro/ComfyUI/custom_nodes/ComfyUI-3D-Pack/init.py", line 18, in module = importlib.import_module(f".{nodes_filename}", package=name) File "/home/leandro/miniconda3/envs/gensei/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/home/leandro/ComfyUI/custom_nodes/ComfyUI-3D-Pack/nodes.py", line 26, in from .algorithms.main_3DGS import GaussianSplatting, GaussianSplattingCameraController, GSParams File "/home/leandro/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/main_3DGS.py", line 12, in from .main_3DGS_renderer import GaussianSplattingRenderer File "/home/leandro/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/main_3DGS_renderer.py", line 28, in from simple_knn._C import distCUDA2 ImportError: /home/leandro/miniconda3/envs/gensei/lib/python3.10/site-packages/simple_knn/_C.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops4full4callEN3c108ArrayRefINS2_6SymIntEEERKNS2_6ScalarENS2_8optionalINS2_10ScalarTypeEEENS9_INS2_6LayoutEEENS9_INS2_6DeviceEEENS9_IbEE

Cannot import /home/leandro/ComfyUI/custom_nodes/ComfyUI-3D-Pack module for custom nodes: /home/leandro/miniconda3/envs/gensei/lib/python3.10/site-packages/simple_knn/_C.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops4full4callEN3c108ArrayRefINS2_6SymIntEEERKNS2_6ScalarENS2_8optionalINS2_10ScalarTypeEEENS9_INS2_6LayoutEEENS9_INS2_6DeviceEEENS9_IbEE `

hggz commented 6 months ago

I had to rollback and install kiuiu @ 0.23 instead of the latest 0.24. It doesn't fix all the issues tho, just gets over this one

hggz commented 6 months ago

On second thought, I think you might need to make sure you're running with cuda12.1. I ran into this with other dependencies when using cuda 11.8

signorinileandro commented 6 months ago

Worked by installing kiuiu@0.2.3. Thanks! Now I'm getting a memory issue that is requesting a exorbitant amount File "/home/leandro/miniconda3/envs/gensei/lib/python3.10/site-packages/diff_gaussian_rasterization/__init__.py", line 92, in forward num_rendered, color, depth, alpha, radii, geomBuffer, binningBuffer, imgBuffer = _C.rasterize_gaussians(*args) torch.cuda.OutOfMemoryError: Allocation on device 0 would exceed allowed memory. (out of memory) Currently allocated : 6.36 GiB Requested : 66977657.62 GiB Device limit : 23.68 GiB Free (according to CUDA): 16.19 GiB PyTorch limit (set by user-supplied memory fraction) : 17179869184.00 GiB