先需要安装python
可能还需要升级下组件
pip install --upgrade httpx httpcore
解决方案:
卸载onnxruntime-gpu
pip uninstall onnxruntime-gpu
1
卸载onnxruntime
pip uninstall onnxruntime
1
卸载rembg
pip uninstall rembg
1
重装onnxruntime
pip install onnxruntime==1.17.1
1
重装rembg
pip install rembg
不知道为什么,这样就好了。相当于不用gpu了,就用cpu。其实如果用rembg抠图的话,cpu和gpu速度差不多,没什么影响。
原文链接:https://blog.csdn.net/weixin_45615730/article/details/136753670