Error running postprocess_batch: D:\sd-webui-aki-v4.2\extensions\sd-webui-roop\scripts\faceswap.py
Traceback (most recent call last):
File "D:\sd-webui-aki-v4.2\modules\scripts.py", line 496, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "D:\sd-webui-aki-v4.2\extensions\sd-webui-roop\scripts\faceswap.py", line 184, in postprocess_image
result: ImageResult = swap_face(
File "D:\sd-webui-aki-v4.2\extensions\sd-webui-roop\scripts\swapper.py", line 123, in swap_face
source_face = get_face_single(source_img, face_index=0)
File "D:\sd-webui-aki-v4.2\extensions\sd-webui-roop\scripts\swapper.py", line 76, in get_face_single
face_analyser = insightface.app.FaceAnalysis(name="buffalo_l", providers=providers)
File "D:\sd-webui-aki-v4.2\python\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
assert 'detection' in self.models
AssertionError
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 作者:某仙人指路 https://www.bilibili.com/read/cv24605095/ 出处:bilibili
解决办法:
C:\Users\你的用户名\.insightface\models这个文件夹看看buffalo_l有没有解压出来一个完整一个文件里面有各种模型,如果没有buffalo_l直接去insightface的release里面下载然后解压出一个名为 buffalo_l里面含有模型放在C:\Users\你的用户名\.insightface\models这个文件夹。
感谢WilliamJackham大佬