webUI下利用IP-adapter的简要说明

莱莱  金牌会员 | 2024-8-12 23:53:26 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 573|帖子 573|积分 1719

IP-adapter是一个最近比力火的模型,但是在webUI下利用,经常会报各种各样的错误,这里简单讲一下模型匹配问题的处理方式,希望对你有资助。
错误案例说明:
比如说选择了sdxl的模型,并且选择了ip-adapter_clip_sdxl_plus_vith预处理器后,模型选择ip-adapter_xl [4209e9f7],

大概会遇到这样的情况:

参考图与天生图可以说,毫无关系。
这个时候打开背景你大概会看到这样的报错:
 ERROR - Invalid pair of IP-Adapter preprocessor(ip-adapter_clip_sdxl_plus_vith) and model(ip-adapter_xl [4209e9f7]).
Please follow following pairing logic:
{
    "ip-adapter_clip_sdxl": lambda model: "faceid" not in model and "vit" not in model,
    "ip-adapter_clip_sdxl_plus_vith": lambda model: "faceid" not in model and "vit" in model,
    "ip-adapter_clip_sd15": lambda model: "faceid" not in model,
    "ip-adapter_face_id": lambda model: "faceid" in model and "plus" not in model,
    "ip-adapter_face_id_plus": lambda model: "faceid" in model and "plus" in model,
}

嗯,简单来说,就是ip-adapter的预处理器和处理模型必须得一一对应才可以,不像之前哪些controlnet,主要stablediffuison的模型(1.5照旧xl)对应上就行。
简单查了下,发现,这个ip-adapter居然有十几个变种...所以很多朋友搞不明确,也下载不下来。
具体到这个案例,ip-adapter_clip_sdxl_plus_vith的处理器,需要对应下载ip-adapter-plus_sdxl_vit-h [bc449f62]的模型,可以到huggingface上下载:
https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_models
 下载完成之后,需要把模型放在controlnet的model文件夹下。


固然了,假如你的网络不太好,大概会遇到打不开的情况,网盘下载也行:
IP-adapter网盘分享

这样设置完成之后,背景就不报错了,并且可以正常天生了。

固然照旧不太像,但多少有点相干了。
(假如你的webui照旧报错,记得照旧开一下网络,大概需要下载预处理器相干的几个模型。)
假如对你有资助,还请帮忙点个赞咯

  
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

莱莱

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表