安装步骤
首先看官方教程 sd-webui-roop插件, 如下:

- 执行
pip install insightface==0.7.3 - 在web-ui 界面,插件菜单,从网址安装
https://github.com/s0md3v/sd-webui-roop - web-ui 界面重启
- 如果遇到
'NoneType' object has no attribute 'get'的错误,下载inswapper_128.onnx ,放到<webui_dir>/models/roop/目录
一些报错问题
- ModuleNotFoundError: No module named ‘insightface’

这个其实就是没有安装或者加载’insightface’ 有问题
可以执行如下命令:
# 卸载再安装
pip uninstall insightface
pip install insightface==0.7.3
- urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

根据报错提示文件,可以追踪到如下区域,然后增加两行代码即可解决ssl报错问题
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

参考链接
git unable to get local issuer certificate (_ssl.c:1007)>

















![[考研机试] KY20 完数VS盈数 清华大学复试上机题 C++实现](https://img-blog.csdnimg.cn/6a5ae9b1311e442590baf58e99c42684.png)
