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.16k stars 212 forks source link

I failed to deploy the ComfyUI 3D Pack in the Stability Matrix's ComfyUI. #281

Open Jojo-xqt opened 4 weeks ago

Jojo-xqt commented 4 weeks ago

Since directly installing the ComfyUI 3D Pack extension causes the entire ComfyUI to malfunction, I considered creating a virtual environment within ComfyUI using venv to install dependencies separately, but I keep encountering issues. I searched for an installation method on YouTube (https://www.youtube.com/watch?v=RjuoLMCpvbI), and here are the steps I followed (I don't understand code, I rely entirely on chat assistance):

  1. Installed the Comfy 3D Pack into the custom_nodes directory.
  2. Created a virtual environment using python -m virtualenv venv, and activated the virtual environment with venv\Scripts\activate in the Comfy 3D Pack directory.
  3. Installed torch-2.3.0+cu121-cp310-cp310-win_amd64.whl, torchaudio-2.3.0+cu121-cp310-cp310-win_amd64.whl, torchvision-0.18.0+cu121-cp310-cp310-win_amd64.whl in the virtual environment.
  4. Installed dependencies in the virtual environment using pip install -r requirements.txt.
  5. Added the 3D Pack extension to the startup file main.py. The code is:

# Activate ComfyUI-3D-Pack virtual environment pack_activate_this = 'X:/Data/Packages/ComfyUI/custom_nodes/ComfyUI-3D-Pack/venv/Scripts/activate_this.py' with open(pack_activate_this) as file_: exec(file_.read(), dict(__file__=pack_activate_this))

  1. Started ComfyUI in the Stability Matrix, and then encountered an error: OSError: [WinError 126] The specified module could not be found. Error loading "X:\Data\Packages\ComfyUI\custom_nodes\ComfyUI-3D-Pack\venv\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies. However, this file does exist.

These are the steps I took, which may be incorrect. I hope you can provide some assistance or a correct installation method. (I had successfully installed a previous version, but I can't manage it after the update.) Thank you.

Jojo-xqt commented 4 weeks ago

To add more details: My computer: Windows 11, Python: 3.10.11, CUDA: 12.1, ComfyUI's virtual environment: torch 2.12+cu121, torchaudio 2.12+cu121, torchvision 0.16.2+cu121.