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

文章指导如何在SD-webui-aki中处理错误,包括下载特定模型文件、修改interpolate参数为BICUBIC,以及解决URLError和FileExistsError问题,参考了相关GitHubissue。
摘要由CSDN通过智能技术生成

一、首先需要 model_base_caption_capfilt_large.pth

在这里插入图片描述
下载放入:D:\sd-webui-aki-v4.7\models\BLIP\model_base_caption_capfilt_large.pth 中的 BLIP 下,有的话就不要再下载了。

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

1、错误截图

在这里插入图片描述
2、修改 D:\sd-webui-aki\sd-webui-aki-v4.7\modules\interrogate.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: <urlopen error [Errno 11004] getaddrinfo failed>

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

在这里插入图片描述

interrogate 文件夹位置

在这里插入图片描述
在这里插入图片描述

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

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值