Logo

ainewsto

如果正在运行中的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

如下图示例:

onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded.

这个问题是你电脑安装的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

 

本文对你是否有用?
98 人中有 3 人觉得有帮助

贡献排行

doublex2
内容贡献:1 第1名
zhaojunjie
内容贡献:1 第2名
wudideasdf
内容贡献:1 第3名
显示验证码
没有账号?注册  忘记密码?