mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Add validation for image_encoder model too
This commit is contained in:
parent
95ecb1a0c1
commit
99fe95ab03
@ -62,6 +62,8 @@ class ControlField(BaseModel):
|
||||
elif values["control_type"] == "IP-Adapter":
|
||||
if values.get("ip_adapter_model") is None:
|
||||
raise ValueError('IP-Adapter control_type requires "ip_adapter_model" be provided')
|
||||
if values.get("image_encoder_model") is None:
|
||||
raise ValueError('IP-Adapter control_type requires "image_encoder_model" be provided')
|
||||
return values
|
||||
|
||||
@validator("control_weight")
|
||||
|
Loading…
Reference in New Issue
Block a user