AI大模型教程
一起来学习

【Stable Diffusion】Argument interpolation should be a InterpolationMode or a corresponding Pillow int

一、首先需要 model_base_caption_capfilt_large.pth


下载放入:D:sd-webui-aki-v4.7modelsBLIPmodel_base_caption_capfilt_large.pth 中的 BLIP 下,有的话就不要再下载了。

二、Argument interpolation should be a InterpolationMode or a corresponding Pillow integer constant

1、错误截图


2、修改 D:sd-webui-akisd-webui-aki-v4.7modulesinterrogate.py 中的 interrogate.py 文件

2.1文件顶部添加:import torchvision.transforms.functional as F

2.2 搜索 InterpolationMode,修改后保存(ctrl + s)

interpolation=InterpolationMode.BICUBIC

# 改成

interpolation=F.InterpolationMode.BICUBIC

如图:

3、重新运行 sd 后,提示已经 ok,感谢大哥,大哥文章 https://blog.csdn.net/codemethod/article/details/136772089

三、interrogate CLIP crash in FileExistsError 或者 During handling of the above exception, another exception occurred:

urllib.error.URLError:

1、下载 interrogate https://www.mediafire.com/file/9rwytbudhjgfa3b/interrogate.7z/file 解压后放 sd 根目录

interrogate 文件夹位置


2、相关 issues https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7193

文章来源于互联网:【Stable Diffusion】Argument interpolation should be a InterpolationMode or a corresponding Pillow int

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » 【Stable Diffusion】Argument interpolation should be a InterpolationMode or a corresponding Pillow int
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们