如果正在运行中的comfyui突然报错
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
如下图示例:
这个问题是你电脑安装的cuda版本跟comfyui环境包里面的cuda版本不兼容,卸载或者重新另外增加一个cuda版本,一般情况都是cuda121和118.
然后上面cuda版本确定没有问题的话,就看下onnxruntime这个依赖的的问题,cuda12x版本的这个不一样。
安装cuda12x版本的的onnxruntime-gpu如下图命令:(pip前面需要指定python路径)
pip install onnxruntime-gpu==1.17.0 --index-url=https://pkgs.dev.azure.com/onnxruntime/onnxruntime/_packaging/onnxruntime-cuda-12/pypi/simple