comfyui-reactor-node
comfyui-reactor-node copied to clipboard
Please install the correct version of CUDA and cuDNN
First, confirm
- [X] I have read the instruction carefully
- [X] I have searched the existing issues
- [X] I have updated the extension to the latest version
What happened?
I don't know how to install the correct version of CUDA and cuDNN :(
Steps to reproduce the problem
Pretend like you don't know how to install the correct version of CUDA and cuDNN.
The problem becomes evident
Sysinfo
Windows 11, Nvidia 3060ti, OperaGX
Relevant console log
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 84, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 77, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 112, in execute
script.process(
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_faceswap.py", line 96, in process
result = swap_face(
^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 195, in swap_face
source_faces = analyze_faces(source_img)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 114, in analyze_faces
face_analyser = copy.deepcopy(getAnalysisModel())
^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 69, in getAnalysisModel
ANALYSIS_MODEL = insightface.app.FaceAnalysis(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\reactor_log_patch.py", line 48, in patched_faceanalysis_init
model = model_zoo.get_model(onnx_file, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 96, in get_model
model = router.get_model(providers=providers, provider_options=provider_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\reactor_log_patch.py", line 21, in patched_get_model
session = PickableInferenceSession(self.onnx_file, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 25, in __init__
super().__init__(model_path, **kwargs)
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 430, in __init__
raise fallback_error from e
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 425, in __init__
self._create_inference_session(self._fallback_providers, None)
File "C:\Users\cjand\Downloads\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session
sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded.
Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.
Additional information
No response
My GPU is supported btw. I use reactor in automatic1111 regularly. But I'm new to comfyui and I don't know what to do
The issue is that the onnxruntime-gpu library requires CUDA 11.8, just downgrade CUDA version or install the appropriate build of ComfyUI with CU11.8 Or you can try the following if you skilled enough https://github.com/Gourieff/comfyui-reactor-node/issues/119#issuecomment-1841350868
Ok I managed to get it all working on a fresh comfyui cu11.8 version (I might suggest updating the installation instructions, pretty much every step failed)
Now how do I install the restore models?
It downloaded all the models it needs except these
Ok I managed to get it all working on a fresh comfyui cu11.8 version (I might suggest updating the installation instructions, pretty much every step failed)
Now how do I install the restore models? It downloaded all the models it needs except these
https://github.com/Gourieff/comfyui-reactor-node#installation
Step 5: