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

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

    正在检查是否收录...

一、首先需要 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

erpwebuiweburlgithubcligitdiffusionclip文件夹codectr
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-17409.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

TiDB 如何利用 Copilot 优化数据库操作,提升用户体验与内部效率?

上一篇

技术周刊 116 期:Visual Copilot、INP、Kimi 支持 200 万字上下文、Grok 开源、Figure 01、Open Sora 开源

下一篇
  • 复制图片
按住ctrl可打开默认菜单