mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-06 21:08:57 +08:00
Update forge_ipadapter.py
This commit is contained in:
parent
c839ba59dd
commit
34268609e9
@ -20,7 +20,7 @@ class IPAdapterPatcher(ControlModelPatcher):
|
||||
st_model["ip_adapter"][key.replace("ip_adapter.", "")] = model[key]
|
||||
model = st_model
|
||||
|
||||
if "ip_adapter" not in model.keys() or not model["ip_adapter"]:
|
||||
if "ip_adapter" not in model.keys() or len(model["ip_adapter"]) == 0:
|
||||
return None
|
||||
|
||||
return IPAdapterPatcher(model)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user