先需要安裝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