Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Explicit error on ipadapter invalid preprocessor/model pair #2551

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

huchenlei
Copy link
Collaborator

Related issue: #2546

Many users have difficulties interpret error on wrong preprocessor/model pair. This PR makes error log more explicit.

Sample output:

2024-01-22 19:22:30,880 - ControlNet - ERROR - Invalid pair of IP-Adapter preprocessor(ip-adapter_clip_sd15) and model(ip-adapter-faceid-plus_sd15 [d86a490f]).

{
    "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,
}

@huchenlei huchenlei merged commit 7fb40bf into Mikubill:main Jan 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant