Open NeuroLord opened 3 months ago
Please refrain writing "solution" in title when the topic so vaguely defined.
The problem of the pre-built Pytorch3D
Especially when no actual solution
provided.
win11, cu121,torch 2.3.0,cuda 12.1, VS tools 17.9
/!!! Exception during processing!!! CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FF895BD366200007FF895BD3600 c10.dll!c10::Error::Error [
Traceback (most recent call last):
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(*slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 2942, in run_ET_mesh_optimization
vertices, faces = run_mesh_refine(vertices, faces, pil_normal_list, steps=refinement_steps, update_normal_interval=target_update_interval, update_warmup=target_warmup_update_num, )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\mesh_reconstruction\refine.py", line 53, in run_meshrefine
, _, target_normal = from_py3d_mesh(multiview_color_projection(py3d_mesh, pils, cameras_list=cameras, weights=[2.0, 0.8, 1.0, 0.8], confidence_threshold=0.1, complete_unseen=False, below_confidence_strategy='original', reweight_with_cosangle='linear'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 283, in multiview_color_projection
ret = project_color(meshes, camera, image, eps=eps, resolution=resolution, device=device, use_alpha=use_alpha)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 134, in project_color
faces_normals = meshes.faces_normals_packed()[unique_faces]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\structures\meshes.py", line 800, in faces_normals_packed
self._compute_face_areas_normals()
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\structures\meshes.py", line 868, in _compute_face_areas_normals
face_areas, face_normals = mesh_face_areas_normals(verts_packed, faces_packed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\autograd\function.py", line 598, in apply
return super().apply(args, **kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\ops\mesh_face_areas_normals.py", line 48, in forward
areas, normals = _C.face_areas_normals_forward(verts, faces)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FF895BD366200007FF895BD3600 c10.dll!c10::Error::Error [
Prompt executed in 136.25 seconds
got prompt
100%|████████████████████████████████████████████████████████████████████████████████| 200/200 [00:05<00:00, 38.69it/s]
0%| | 0/100 [00:00<?, ?it/s]
!!! Exception during processing!!! CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FF895BD366200007FF895BD3600 c10.dll!c10::Error::Error [
Traceback (most recent call last):
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(*slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 2942, in run_ET_mesh_optimization
vertices, faces = run_mesh_refine(vertices, faces, pil_normal_list, steps=refinement_steps, update_normal_interval=target_update_interval, update_warmup=target_warmup_update_num, )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\mesh_reconstruction\refine.py", line 53, in run_meshrefine
, _, target_normal = from_py3d_mesh(multiview_color_projection(py3d_mesh, pils, cameras_list=cameras, weights=[2.0, 0.8, 1.0, 0.8], confidence_threshold=0.1, complete_unseen=False, below_confidence_strategy='original', reweight_with_cosangle='linear'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 283, in multiview_color_projection
ret = project_color(meshes, camera, image, eps=eps, resolution=resolution, device=device, use_alpha=use_alpha)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 134, in project_color
faces_normals = meshes.faces_normals_packed()[unique_faces]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\structures\meshes.py", line 800, in faces_normals_packed
self._compute_face_areas_normals()
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\structures\meshes.py", line 868, in _compute_face_areas_normals
face_areas, face_normals = mesh_face_areas_normals(verts_packed, faces_packed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\autograd\function.py", line 598, in apply
return super().apply(args, **kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\StableDiff\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pytorch3d\ops\mesh_face_areas_normals.py", line 48, in forward
areas, normals = _C.face_areas_normals_forward(verts, faces)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FF895BD366200007FF895BD3600 c10.dll!c10::Error::Error [
Prompt executed in 6.25 seconds /
the same problem
3.10.14 2.3.0 cu121 vs-16.11.39
[Comfy3D] [Save_3D_Mesh] Saving model to F:\AI\ComfyUI\output\Unique3D/Mesh_Gen_0\mesh.obj
0%| | 0/200 [00:00<?, ?it/s]Warn!: F:\AI\ComfyUI\env\lib\site-packages\torch\utils\cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(
100%|████████████████████████████████████████████████████████████████████████████████| 200/200 [00:05<00:00, 37.69it/s]
0%| | 0/100 [00:00<?, ?it/s]
!!! Exception during processing !!! CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FFBB639366200007FFBB6393600 c10.dll!c10::Error::Error [<unknown file> @ <unknown line number>]
00007FFBB639318A00007FFBB6393130 c10.dll!c10::detail::torchCheckFail [<unknown file> @ <unknown line number>]
00007FFC3564F93F00007FFC3564F640 c10_cuda.dll!c10::cuda::c10_cuda_check_implementation [<unknown file> @ <unknown line number>]
00007FFA7451FB01 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744CB4A7 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744D9A2E <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744D9AB4 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744C763B <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFBB0C582F600007FFBB0C57530 python310.dll!PyCFunction_GetFlags [<unknown file> @ <unknown line number>]
00007FFBB0C1554C00007FFBB0C15410 python310.dll!PyObject_MakeTpCall [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AE9F00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBA66FF8C100007FFBA66EC4E0 torch_python.dll!THPPointer<THPStorage>::THPPointer<THPStorage> [<unknown file> @ <unknown line number>]
00007FFBB0C5832D00007FFBB0C57530 python310.dll!PyCFunction_GetFlags [<unknown file> @ <unknown line number>]
00007FFBB0C157A700007FFBB0C156B0 python310.dll!PyObject_Call [<unknown file> @ <unknown line number>]
00007FFBB0D0E9CC00007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D09D1900007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0C177D200007FFBB0C17700 python310.dll!PyMethod_Self [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0A8E200007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AEB500007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AEB500007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0C177D200007FFBB0C17700 python310.dll!PyMethod_Self [<unknown file> @ <unknown line number>]
00007FFBB0C1566D00007FFBB0C155B0 python310.dll!PyVectorcall_Call [<unknown file> @ <unknown line number>]
00007FFBB0D0E8F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D09D1900007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0A8E200007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
Traceback (most recent call last):
File "F:\AI\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "F:\AI\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "F:\AI\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "F:\AI\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "F:\AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 2942, in run_ET_mesh_optimization
vertices, faces = run_mesh_refine(vertices, faces, pil_normal_list, steps=refinement_steps, update_normal_interval=target_update_interval, update_warmup=target_warmup_update_num, )
File "F:\AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\mesh_reconstruction\refine.py", line 53, in run_mesh_refine
_, _, target_normal = from_py3d_mesh(multiview_color_projection(py3d_mesh, pils, cameras_list=cameras, weights=[2.0, 0.8, 1.0, 0.8], confidence_threshold=0.1, complete_unseen=False, below_confidence_strategy='original', reweight_with_cosangle='linear'))
File "F:\AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 283, in multiview_color_projection
ret = project_color(meshes, camera, image, eps=eps, resolution=resolution, device=device, use_alpha=use_alpha)
File "F:\AI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 134, in project_color
faces_normals = meshes.faces_normals_packed()[unique_faces]
File "F:\AI\ComfyUI\env\lib\site-packages\pytorch3d\structures\meshes.py", line 800, in faces_normals_packed
self._compute_face_areas_normals()
File "F:\AI\ComfyUI\env\lib\site-packages\pytorch3d\structures\meshes.py", line 868, in _compute_face_areas_normals
face_areas, face_normals = mesh_face_areas_normals(verts_packed, faces_packed)
File "F:\AI\ComfyUI\env\lib\site-packages\torch\autograd\function.py", line 598, in apply
return super().apply(*args, **kwargs) # type: ignore[misc]
File "F:\AI\ComfyUI\env\lib\site-packages\pytorch3d\ops\mesh_face_areas_normals.py", line 48, in forward
areas, normals = _C.face_areas_normals_forward(verts, faces)
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first):
00007FFBB639366200007FFBB6393600 c10.dll!c10::Error::Error [<unknown file> @ <unknown line number>]
00007FFBB639318A00007FFBB6393130 c10.dll!c10::detail::torchCheckFail [<unknown file> @ <unknown line number>]
00007FFC3564F93F00007FFC3564F640 c10_cuda.dll!c10::cuda::c10_cuda_check_implementation [<unknown file> @ <unknown line number>]
00007FFA7451FB01 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744CB4A7 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744D9A2E <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744D9AB4 <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFA744C763B <unknown symbol address> _C.cp310-win_amd64.pyd!<unknown symbol> [<unknown file> @ <unknown line number>]
00007FFBB0C582F600007FFBB0C57530 python310.dll!PyCFunction_GetFlags [<unknown file> @ <unknown line number>]
00007FFBB0C1554C00007FFBB0C15410 python310.dll!PyObject_MakeTpCall [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AE9F00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBA66FF8C100007FFBA66EC4E0 torch_python.dll!THPPointer<THPStorage>::THPPointer<THPStorage> [<unknown file> @ <unknown line number>]
00007FFBB0C5832D00007FFBB0C57530 python310.dll!PyCFunction_GetFlags [<unknown file> @ <unknown line number>]
00007FFBB0C157A700007FFBB0C156B0 python310.dll!PyObject_Call [<unknown file> @ <unknown line number>]
00007FFBB0D0E9CC00007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D09D1900007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0C177D200007FFBB0C17700 python310.dll!PyMethod_Self [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0A8E200007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AEB500007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AEB500007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0AF0800007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0C177D200007FFBB0C17700 python310.dll!PyMethod_Self [<unknown file> @ <unknown line number>]
00007FFBB0C1566D00007FFBB0C155B0 python310.dll!PyVectorcall_Call [<unknown file> @ <unknown line number>]
00007FFBB0D0E8F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D09D1900007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
00007FFBB0D0E6F200007FFBB0D0E300 python310.dll!PyEval_GetFuncDesc [<unknown file> @ <unknown line number>]
00007FFBB0D0A8E200007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0D0CE7B00007FFBB0D07A70 python310.dll!PyEval_EvalFrameDefault [<unknown file> @ <unknown line number>]
00007FFBB0C1585E00007FFBB0C15820 python310.dll!PyFunction_Vectorcall [<unknown file> @ <unknown line number>]
00007FFBB0D061A900007FFBB0D06060 python310.dll!PyOS_URandomNonblock [<unknown file> @ <unknown line number>]
Prompt executed in 156.07 seconds
[Comfy3D] ExplicitTarget Mesh Optimization
CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions. Exception raised from c10_cuda_check_implementation at ..\c10\cuda\CUDAException.cpp:43 (most recent call first): 00007FF9E1B1366200007FF9E1B13600 c10.dll!c10::Error::Error [
Warn!: xFormers is available (Attention) Warn!: D:\StableDiffusion\ComfyUI_3D\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn(
Warn!: Traceback (most recent call last):
File "D:\StableDiffusion\ComfyUI_3D\ComfyUI\nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "
Warn!: Cannot import D:\StableDiffusion\ComfyUI_3D\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: Cuda error: 304[cudaGraphicsGLRegisterBuffer(&s.cudaPosBuffer, s.glPosBuffer, cudaGraphicsRegisterFlagsWriteDiscard);]
Exception raised from rasterizeResizeBuffers at D:\StableDiffusion\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize_gl.cpp:371 (most recent call first):
00007FFE9152366200007FFE91523600 c10.dll!c10::Error::Error [
Import times for custom nodes: 0.0 seconds: D:\StableDiffusion\ComfyUI_3D\ComfyUI\custom_nodes\websocket_image_save.py 0.5 seconds: D:\StableDiffusion\ComfyUI_3D\ComfyUI\custom_nodes\ComfyUI-Manager 7.8 seconds (IMPORT FAILED): D:\StableDiffusion\ComfyUI_3D\ComfyUI\custom_nodes\ComfyUI-3D-Pack
Starting server
When installing pytorch3d from a whl file from this repository (Win 10, py 3.11, cuda 12.1) I was getting an error when using the ExplicitTarget Mesh Optimization node. When compiling manually the whole thing started working. If the other tips didn't work for you, try doing this.
Full error: