-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comfy 3D Pack Errors #3
Comments
Try 3D-Pack's exmaple input file and workflow: |
Thanks, that fixed that issue but now this error pops up: Error occurred when executing [Comfy3D] Load Convolutional Reconstruction Model: DLL load failed while importing nvdiffrast_plugin: The specified module could not be found. File "D:\Downloads\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute |
CRM needs CUDA installed, here's steps: |
Thank you for all your assistance, its really appreciated as I have very coding experience and using this from a design background. Visual Studio and Cuda 12.1 were installed. I added the path to .bat file and that fixed the above error. Now this error persists: Error occurred when executing [Comfy3D] Load Convolutional Reconstruction Model: DLL load failed while importing nvdiffrast_plugin: The specified module could not be found. File "D:\Downloads\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute |
I guess this is still relevant to PATH environment variable. Make sure you have edited "EDIT_THIS_TO_PATH_TO_YOUR_"
The real working PATH in bat file should be like:
|
.bat file looks like this: rem set HTTP_PROXY=http://localhost:1081 Getting this error now: 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 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 -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 -DNVDR_TORCH -lineinfo -c D:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\texture.cu -o texture.cuda.o texture.cu [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 -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 -DNVDR_TORCH -lineinfo -c D:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\antialias.cu -o antialias.cuda.o antialias.cu [3/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 -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 -DNVDR_TORCH -lineinfo -c D:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize.cu -o rasterize.cuda.o rasterize.cu [4/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 -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 -DNVDR_TORCH -lineinfo -c D:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\cudaraster\impl\RasterImpl.cu -o RasterImpl.cuda.o RasterImpl.cu [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 -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\TH -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\Downloads\ComfyUI_Windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 -DNVDR_TORCH -lineinfo -c D:\Downloads\ComfyUI_Windows_portable\python_embeded\Lib\site-packages\nvdiffrast\common\interpolate.cu -o interpolate.cuda.o interpolate.cu ninja: build stopped: subcommand failed. File "D:\Downloads\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute |
Try:
The key error message is For reference, I have installed latest VS 2022 17.10.0 and CUDA Toolkit 12.4 (latest is 12.5. There's no need to stick with 12.1). |
Hello, I keep getting this issue when I try to use any of the Comfy3D nodes
Error occurred when executing [Comfy3D] CRM Images MVDiffusion Model:
Sizes of tensors must match except in dimension 2. Expected size 1000 but got size 64 for tensor number 1 in the list.
File "D:\Downloads\ComfyUI_Windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\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:\Downloads\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:\Downloads\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 1792, in run_model
pixel_img = torch_img_to_pil_rgba(reference_image, reference_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\ComfyUI_Windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\shared_utils\image_utils.py", line 24, in torch_img_to_pil_rgba
single_image = torch.cat((img, mask), dim=2).detach().cpu().numpy()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered: