webUI下利用IP-adapter的简要说明
IP-adapter是一个最近比力火的模型,但是在webUI下利用,经常会报各种各样的错误,这里简单讲一下模型匹配问题的处理方式,希望对你有资助。错误案例说明:
比如说选择了sdxl的模型,并且选择了ip-adapter_clip_sdxl_plus_vith预处理器后,模型选择ip-adapter_xl ,
https://i-blog.csdnimg.cn/blog_migrate/4b86481892e7b2ada2cbb5d35a31d53a.png
大概会遇到这样的情况:
https://i-blog.csdnimg.cn/blog_migrate/32929008c17b3454a623890ee8a7e013.png
参考图与天生图可以说,毫无关系。
这个时候打开背景你大概会看到这样的报错:
ERROR - Invalid pair of IP-Adapter preprocessor(ip-adapter_clip_sdxl_plus_vith) and model(ip-adapter_xl ).
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,
}
https://i-blog.csdnimg.cn/blog_migrate/bdc13caca91aa128862249b36dd239df.png
嗯,简单来说,就是ip-adapter的预处理器和处理模型必须得一一对应才可以,不像之前哪些controlnet,主要stablediffuison的模型(1.5照旧xl)对应上就行。
简单查了下,发现,这个ip-adapter居然有十几个变种...所以很多朋友搞不明确,也下载不下来。
具体到这个案例,ip-adapter_clip_sdxl_plus_vith的处理器,需要对应下载ip-adapter-plus_sdxl_vit-h 的模型,可以到huggingface上下载:
https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_models
下载完成之后,需要把模型放在controlnet的model文件夹下。
https://i-blog.csdnimg.cn/blog_migrate/55da41114c3dae5560b83d67412e6734.png
https://i-blog.csdnimg.cn/blog_migrate/736afbd97472bb4043ffc06021a2f146.png
固然了,假如你的网络不太好,大概会遇到打不开的情况,网盘下载也行:
IP-adapter网盘分享
https://i-blog.csdnimg.cn/blog_migrate/21ae6aa8aaaa3361983365eb45c81a5d.png
这样设置完成之后,背景就不报错了,并且可以正常天生了。
https://i-blog.csdnimg.cn/blog_migrate/e5ffa34e1c1b9961845ba10113ba0aaf.png
固然照旧不太像,但多少有点相干了。
(假如你的webui照旧报错,记得照旧开一下网络,大概需要下载预处理器相干的几个模型。)
假如对你有资助,还请帮忙点个赞咯
页:
[1]