Open UnicornJoe42 opened 2 months ago
Hi Joe,
I have spent all day yesterday trying to install this thing. I'm not a programmer, so I nearly went nuts. Around the same time you posted this, I finally managed to get it to work. I was just about to post an issue, when I saw your message, so I will post it here for anyone else having the same issue.
I use Anaconda and Windows OS. Basically, what I managed to piece together is that this doesn't work on Python 3.12 or Python 3.10. You need Python 3.11. Not because of this repo, but because of all the dependencies and the dependencies' dependencies.
Using Anaconda, you set up the environment and install Python:
conda create --name py311
conda activate py311
conda install python=3.11.9
Get CUDA Toolkit v12.1 (this line of code is commented out in this repo, very easy to miss):
conda install -c "nvidia/label/cuda-12.1.0" cuda-toolkit
Get xformers for CUDA 12.1 (this is adapted from miniconda batch file):
python -s -m pip install --force-reinstall xformers --index-url https://download.pytorch.org/whl/cu121
Get torch for CUDA 12.1:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
That was the hardest part. Assuming all this well, the rest basically comes down to running pip install -r
for each of the requirements.txt
files.
Starting with the main repo:
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
pip install -r requirements.txt
ComfyUI-Manager:
git clone https://github.com/ltdrdata/ComfyUI-Manager custom_nodes
pip install -r custom_nodes/ComfyUI-Manager/requirements.txt
And lastly, the Comfy3D:
git clone https://github.com/MrForExample/ComfyUI-3D-Pack custom_nodes
pip install -r custom_nodes/ComfyUI-3D-Pack/requirements.txt
pip install -r custom_nodes/ComfyUI-3D-Pack/requirements_post.txt
Never, under any circumstances, are you to update all your dependencies. That is, apparently, the worst sin Python developer can make. Only update things through ComfyUI-Manager.
I hope this helps you and anyone else struggling with this. Good luck!
I guess many of you are having trouble installing requirements_post.txt
.
Try my all-in-one package:
(For Windows) https://github.com/YanWenKun/ComfyUI-Windows-Portable
(For Linux) https://github.com/YanWenKun/ComfyUI-Docker
Unboxed8941 Thanks, but it failed on wheel compilation this time
YanWenKun Thanks! It works for CRM for 2 first stages and then i have error:
ImportError: DLL load failed while importing nvdiffrast_plugin: the specified module cannot be found.
Unboxed8941 Thanks, but it failed on wheel compilation this time
I'm not surprised. I remember that error well, it was the biggest hurdle for me. Ultimately, I got past that point when I deleted my Python 3.12.3 environment and created a new environment with Python 3.11.9.
I guess it also depends on other factors like, how much VRAM you have, which OS, do you have the right version of CUDA, does your graphics card support it, is the PyTorch installed, is the PyTorch compiled with the same version of CUDA is, etc...
Basically, all the stars have to align for this to work.
Good luck!
YanWenKun Thanks! It works for CRM for 2 first stages and then i have error:
ImportError: DLL load failed while importing nvdiffrast_plugin: the specified module cannot be found.
Here's an easy (although not elegant) way to fix errors with nvdiffrast
:
(Assume you're using Windows 11)
Install Visual Studio (Community is fine), then select & install "Desktop development with C++" workload. This will provide VC++ compilers.
Install CUDA Toolkit. This will provide a big set of CUDA tools and auto-config env vars for you. NOTE: just use latest version, no need to stick with 12.1.
edit run_nvidia_gpu.bat
, add this line before ComfyUI starts:
NOTE: Make sure you edited "EDIT_THIS_TO_PATH_TOYOUR"
set PATH=%PATH%;C:\EDIT_THIS_TO_PATH_TO_YOUR_\python_embeded\Scripts\
This will make sure Ninja (a compiler tool) works.
I tested the example CRM workflow on a clean install with a TITAN Xp:
Hope this will have more details covered. Wish you good luck!
YanWenKun I'm on windows 10. I have VS and CUDA installed, but I still get the error: ninja: build stopped: subcommand failed.
@UnicornJoe42 What's the detail of the subcommand? The log may be very long so recommend wrap it with triple backticks:
```log the long long logs ```
YanWenKun Last error i have:
''' Error occurred when executing [Comfy3D] Load Convolutional Reconstruction Model:
Error building extension 'nvdiffrast_plugin': [1/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output rasterize.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize.cu -o rasterize.cuda.o FAILED: rasterize.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output rasterize.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize.cu -o rasterize.cuda.o [2/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output antialias.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\antialias.cu -o antialias.cuda.o FAILED: antialias.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output antialias.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\antialias.cu -o antialias.cuda.o [3/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output RasterImpl.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\cudaraster\impl\RasterImpl.cu -o RasterImpl.cuda.o FAILED: RasterImpl.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output RasterImpl.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\cudaraster\impl\RasterImpl.cu -o RasterImpl.cuda.o [4/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output texture.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\texture.cu -o texture.cuda.o FAILED: texture.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output texture.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\texture.cu -o texture.cuda.o [5/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output interpolate.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\interpolate.cu -o interpolate.cuda.o FAILED: interpolate.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output interpolate.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\interpolate.cu -o interpolate.cuda.o ninja: build stopped: subcommand failed.
File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\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 "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 1910, in load_CRM crm_model = CRM(crm_conf).to(device) ^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\model\crm\model.py", line 59, in init self.renderer = Renderer(tet_grid_size=self.tet_grid_size, camera_angle_num=self.camera_angle_num, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\util\renderer.py", line 15, in init self.glctx = dr.RasterizeCudaContext() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 177, in init self.cpp_wrapper = _get_plugin().RasterizeCRStateWrapper(cuda_device_idx) ^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 118, in _get_plugin torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=opts, extra_cuda_cflags=opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False) File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load return _jit_compile( ^^^^^^^^^^^^^ File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile _write_ninja_file_and_build_library( File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1823, in _write_ninja_file_and_build_library _run_ninja_build( File "C:\3d\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 2112, in _run_ninja_build raise RuntimeError(message) from e
'''
@UnicornJoe42 Joe, backtick key is below the ESC key on the keyboard. Unfortunately, backtick (`) and apostrophe (') are deceptively similar. It's located on the same key where ~ symbol is. 👍
Error occurred when executing [Comfy3D] Load Convolutional Reconstruction Model:
Error building extension 'nvdiffrast_plugin': [1/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output rasterize.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -
@UnicornJoe42 I didn't find any clue in the log... Maybe try other workflows? Like TripoSR, which requires fewer dependencies, and is more likely to work.
Hi Joe,
I have spent all day yesterday trying to install this thing. I'm not a programmer, so I nearly went nuts. Around the same time you posted this, I finally managed to get it to work. I was just about to post an issue, when I saw your message, so I will post it here for anyone else having the same issue.
I use Anaconda and Windows OS. Basically, what I managed to piece together is that this doesn't work on Python 3.12 or Python 3.10. You need Python 3.11. Not because of this repo, but because of all the dependencies and the dependencies' dependencies.
Using Anaconda, you set up the environment and install Python:
conda create --name py311 conda activate py311 conda install python=3.11.9
Get CUDA Toolkit v12.1 (this line of code is commented out in this repo, very easy to miss):
conda install -c "nvidia/label/cuda-12.1.0" cuda-toolkit
Get xformers for CUDA 12.1 (this is adapted from miniconda batch file):
python -s -m pip install --force-reinstall xformers --index-url https://download.pytorch.org/whl/cu121
Get torch for CUDA 12.1:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
That was the hardest part. Assuming all this well, the rest basically comes down to running
pip install -r
for each of therequirements.txt
files.Starting with the main repo:
git clone https://github.com/comfyanonymous/ComfyUI cd ComfyUI pip install -r requirements.txt
ComfyUI-Manager:
git clone https://github.com/ltdrdata/ComfyUI-Manager custom_nodes pip install -r custom_nodes/ComfyUI-Manager/requirements.txt
And lastly, the Comfy3D:
git clone https://github.com/MrForExample/ComfyUI-3D-Pack custom_nodes pip install -r custom_nodes/ComfyUI-3D-Pack/requirements.txt pip install -r custom_nodes/ComfyUI-3D-Pack/requirements_post.txt
Never, under any circumstances, are you to update all your dependencies. That is, apparently, the worst sin Python developer can make. Only update things through ComfyUI-Manager.
I hope this helps you and anyone else struggling with this. Good luck!
Thank you! :) After spending 2 days trying (the front page guide) this guide finally worked for me. This should be the default installation guide!
@YanWenKun
Hello! I'm using your repo: https://github.com/YanWenKun/ComfyUI-Windows-Portable Loads cleanly after I install both CUDA and Visual Studio, however I'm getting this error when executing [CRM_Img_to_Multi-views_to_CCMs_to_Mesh.json]:
Error occurred when executing [Comfy3D] Load Convolutional Reconstruction Model:
Ninja is required to load C++ extensions
File "D:\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\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 "D:\ComfyUI_Windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 1910, in load_CRM crm_model = CRM(crm_conf).to(device) ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\model\crm\model.py", line 59, in init self.renderer = Renderer(tet_grid_size=self.tet_grid_size, camera_angle_num=self.camera_angle_num, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\util\renderer.py", line 15, in init self.glctx = dr.RasterizeCudaContext() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 177, in init self.cpp_wrapper = _get_plugin().RasterizeCRStateWrapper(cuda_device_idx) ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 118, in _get_plugin torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=opts, extra_cuda_cflags=opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False) File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load return _jit_compile( ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile _write_ninja_file_and_build_library( File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1793, in _write_ninja_file_and_build_library verify_ninja_availability() File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1842, in verify_ninja_availability raise RuntimeError("Ninja is required to load C++ extensions")
[Comfy3D] [Load_CRM_MVDiffusion_Model] loaded model ckpt from D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints/crm\ccm-diffusion.pth DDIM Sampler: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50/50 [00:04<00:00, 11.02it/s] Fatal error in launcher: Unable to create process using '"D:\a\ComfyUI-Windows-Portable\ComfyUI-Windows-Portable\python_embeded\python.exe" "D:\ComfyUI_Windows_portable\python_embeded\Scripts\ninja.exe" --version': The system cannot find the file specified.
!!! Exception during processing !!! Traceback (most recent call last): File "D:\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\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 "D:\ComfyUI_Windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 1910, in load_CRM crm_model = CRM(crm_conf).to(device) ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\model\crm\model.py", line 59, in init self.renderer = Renderer(tet_grid_size=self.tet_grid_size, camera_angle_num=self.camera_angle_num, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\crm\util\renderer.py", line 15, in init self.glctx = dr.RasterizeCudaContext() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 177, in init self.cpp_wrapper = _get_plugin().RasterizeCRStateWrapper(cuda_device_idx) ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\torch\ops.py", line 118, in _get_plugin torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=opts, extra_cuda_cflags=opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False) File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load return _jit_compile( ^^^^^^^^^^^^^ File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile _write_ninja_file_and_build_library( File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1793, in _write_ninja_file_and_build_library verify_ninja_availability() File "D:\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1842, in verify_ninja_availability raise RuntimeError("Ninja is required to load C++ extensions") RuntimeError: Ninja is required to load C++ extensions
Prompt executed in 41.87 seconds
I'm not a programmer, but it seems as though the script can not find python: the "a\", as the beginning invalidates the path:
'"D:\a\ComfyUI-Windows-Portable\ComfyUI-Windows-Portable\python_embeded\python.exe" "D:\ComfyUI_Windows_portable\python_embeded\Scripts\ninja.exe" --version': The system cannot find the file specified.
Any idea how to fix?
@rethink-studios I guess something went wrong with PIP's Ninja, so I updated the package and replaced ninja.exe
with its official one (sounds weird, but I tested it and it works).
If you don't want to download the whole package again, just download the Ninja binary, extract it to python_embeded/Scripts
, and replace the ninja.exe
.
I guess many of you are having trouble installing
requirements_post.txt
.Try my all-in-one package:
(For Windows) https://github.com/YanWenKun/ComfyUI-Windows-Portable
(For Linux) https://github.com/YanWenKun/ComfyUI-Docker
How do i use the .sh files? As readme states "Run run_nvidia_gpu.bat
to start ComfyUI.", but there was no such file in your fork/distro.
How do i use the .sh files? As readme states "Run
run_nvidia_gpu.bat
to start ComfyUI.", but there was no such file in your fork/distro.
https://github.com/YanWenKun/ComfyUI-Windows-Portable/releases
How do i use the .sh files? As readme states "Run
run_nvidia_gpu.bat
to start ComfyUI.", but there was no such file in your fork/distro.https://github.com/YanWenKun/ComfyUI-Windows-Portable/releases
Thanks mate :)
So, a few bumps on that road once extracted and launched.
[AnimateDiffEvo] - ERROR - No motion models found. Please download one and place in: ['C:\\Users\\Duckers\\Downloads\\ComfyUI_Windows_portable_cu121\\ComfyUI_Windows_portable\\ComfyUI\\custom_nodes\\ComfyUI-AnimateDiff-Evolved\\models', 'C:\\Users\\Duckers\\Downloads\\ComfyUI_Windows_portable_cu121\\ComfyUI_Windows_portable\\ComfyUI\\models\\animatediff_models']
As well as this error:
Tested another workflow from 3d pack, and now got this.
[AnimateDiffEvo] - ERROR - No motion models found.
Just ignore this. It's not related to 3D-Pack.
For workflows:
Try TripoSR first, it's more likely to work.
For zero123plus:
Click "Manager" on the right side panel, then click "Update All" and then click "RESTART" when done updating.
[AnimateDiffEvo] - ERROR - No motion models found.
Just ignore this. It's not related to 3D-Pack.
For workflows:
Try TripoSR first, it's more likely to work.
For zero123plus:
Click "Manager" on the right side panel, then click "Update All" and then click "RESTART" when done updating.
Updated all now, and neither of these will open at all.
CRM MVDiffusion_to_InstantMesh.json CRM_Img_to_Multi-views_to_CCMs_to_Mesh.json Multi-View-Images_to_Instant-NGP_to_3DMesh.json MVDream_to_Large_Multiview_Gaussian_Model_to_3DGS and_3DMesh.json Render_Mesh_and_3DGS_Example.json Triplane_Gaussian_Transformers_to_3DGS_and_3DMesh.json TripoSR_to_Mesh.json Using_Stack_Orbit_Camera_Poses_to_conditioning_StableZero123.json Wonder3D_to_Large_Multiview_Gaussian_Model_to_3DGS and_3DMesh.json
These ones does load
[FlexiCubes] Multi-View Depth plus Optional Normal maps to 3D Mesh.json Wonder3D_to_NeuS_to_Mesh.json Zero123Plus_to_InstantMesh.json
Zero can successfully generate 3d models, but any other diffuser pipeline scheduler will crash, and not work again until you load the workflow json anew
But wonder3D errors out on generation
Error occurred when executing [Comfy3D] Load Diffusers Pipeline:
Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115/wonder3d-v1.0\image_encoder.
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\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 "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 1303, in load_diffusers_pipe
pipe = diffusers_pipeline_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 819, in from_pretrained
loaded_sub_model = load_sub_model(
^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\diffusers\pipelines\pipeline_loading_utils.py", line 473, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\transformers\modeling_utils.py", line 3305, in from_pretrained
raise EnvironmentError(
I tested "model impactframes__if_3d_crm_playground__comfyworkflows.json" from a youtuber, it also works, albeit very low quality 3d models and low textures.
Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115/wonder3d-v1.0\image_encoder.
The 3D-Pack will try to download the models when needed. But errors may happen.
Just download the model from HF and put it in:
ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115\wonder3d-v1.0\image_encoder
The same goes with other "Model file not found" error. Just google the model/repo name and put them under ComfyUI-3D-Pack\checkpoints
respectively.
Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory C:\Users\Duckers\Downloads\ComfyUI_Windows_portable_cu121\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115/wonder3d-v1.0\image_encoder.
The 3D-Pack will try to download the models when needed. But errors may happen.
Just download the model from HF and put it in:
ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115\wonder3d-v1.0\image_encoder
The same goes with other "Model file not found" error. Just google the model/repo name and put them under
ComfyUI-3D-Pack\checkpoints
respectively.
thanks :)
But what about the other workflows that won't load in at all?
And for wonder3d, now model complaints are gone, but i've faced this error before, but never managed to fix it, what does it mean by "keys"?
And for wonder3d
Check HF, download/clone the whole repo into
ComfyUI\custom_nodes\ComfyUI-3D-Pack\checkpoints\flamehaze1115\wonder3d-v1.0\
what about the other workflows that won't load in at all
Need console output to know what happened. (AFAIK, most workflows will try to download models at first. If workflows won't load at all, it's more likely a download problem.)