报错信息:
ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/dwpose.py:28: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly
warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly")
报错原因:
Onnx site only has support for 11.8 CUDA listed. New ComfyUI is using 1.21 (I think since that's what its downloading now).
Onnx 网站仅列出对 11.8 CUDA 的支持。新的 ComfyUI 使用的是 1.21
解决方案:
安装新版本的onnx
- 关键词:Added CUDA 12 packages for Python and Nuget.
For Cuda 12.x, please use the following instructions to install from ORT Azure Devops Feed
pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
安装验证:
# pip list|grep onnx
onnxruntime-gpu 1.17.0
运行结果更改为: