問(wèn)題
Stable Diffusion使用“面部修復(fù)”時(shí)報(bào)TypeError: ‘NoneType’ object is not subscriptable錯(cuò)
解決方案
下載【detection_Resnet50_Final.pth】和【parsing_parsenet.pth】到【repositories\CodeFormer\weights\facelib】目錄下,并重新運(yùn)行項(xiàng)目即可。
https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth
https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-520047.html
注:上面的兩個(gè)文件,可以在自己服務(wù)器的文件夾中直接clone,但是可能會(huì)很慢,建議是在本地下載好后,通過(guò)xftp之類的工具,將文件上傳到服務(wù)器sd項(xiàng)目的【repositories\CodeFormer\weights\facelib】目錄文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-520047.html
到了這里,關(guān)于Stable Diffusion使用“面部修復(fù)”時(shí)報(bào)TypeError: ‘NoneType‘ object is not subscriptable錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!