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
1.76k stars 170 forks source link

Challange with No module named 'diff_gaussian_rasterization' #29

Open xenonjargarta opened 5 months ago

xenonjargarta commented 5 months ago

Hey everyone,

I tried the the last 3 days of commits and it ends up in the fail below.

"diff_gaussian_rasterization" First question is this a custom (developer module)?

Regards

Marcus

File "H:\Programme\StabilityMatrix\Data\Packages\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 "H:\Programme\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack__init.py", line 18, in module = importlib.import_module(f".{nodes_filename}", package=name) File "importlib\init__.py", line 126, in import_module 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 "H:\Programme\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 26, in from .algorithms.main_3DGS import GaussianSplatting, GaussianSplattingCameraController, GSParams File "H:\Programme\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS.py", line 12, in from .main_3DGS_renderer import GaussianSplattingRenderer File "H:\Programme\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS_renderer.py", line 24, in from diff_gaussian_rasterization import ( ModuleNotFoundError: No module named 'diff_gaussian_rasterization'

Cannot import H:\Programme\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: No module named 'diff_gaussian_rasterization'

Kobak24 commented 4 months ago

got same error today! from diff_gaussian_rasterization import ( ModuleNotFoundError: No module named 'diff_gaussian_rasterization'

MrForExample commented 4 months ago

Can you please give me the command & steps you used for installed, I can't help you to debug with only the last error

Kobak24 commented 4 months ago

I've just installed from comfyui manager and reloaded/refreshed everything.

Here are some other info if those may help: xformers version: 0.0.23.post1 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 Laptop GPU : cudaMallocAsync VAE dtype: torch.bfloat16 Torch version: 2.1.2+cu121 ComfyUI startup time: 2024-02-12 21:04:41.408370 Platform: Windows Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] diffusers: 0.26.2

Here's the full error: Traceback (most recent call last): File "E:_AI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:_AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack__init.py", line 18, in module = importlib.import_module(f".{nodes_filename}", package=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users******\AppData\Local\Programs\Python\Python311\Lib\importlib\init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:_AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 26, in from .algorithms.main_3DGS import GaussianSplatting, GaussianSplattingCameraController, GSParams File "E:_AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS.py", line 12, in from .main_3DGS_renderer import GaussianSplattingRenderer File "E:_AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\algorithms\main_3DGS_renderer.py", line 24, in from diff_gaussian_rasterization import ( ModuleNotFoundError: No module named 'diff_gaussian_rasterization'

MrForExample commented 4 months ago

Seems you are not running the ComfyUI inside the miniconda/conda env

Have you run the install.bat or pip install -r requirements_post.txt in your miniconda/conda env? Did get any build error? If you didn't get any error, then please check run instruction

filliptm commented 4 months ago

is it required to run a conda env? im running the non portable version of comfy, pip installed your req.txt, getting this error still

drwootton commented 3 months ago

I am running a copy of ComfyUI I installed on my Linus system manually, without anaconda/conda. Everything else I installed in ComfyUI works without conda and other AI software works as well. Why is conda required? I don't understand what it adds beyond the Python virtual environment I set up with venv. How can I fix this without having anything to do with conda?