-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug]: ControlNet web api no longer working after latest update #2982
Comments
Make sure you pass |
The breaking change is documented in #2847 |
Oh wow -- ok, thank you, that really helped. I got everything through intuition and scraping around, but I never would have gotten the "enabled" change. Note that the API wiki is out of date, I would recommend updating that when big breaking changes like this are made. Hard to discover/plan for breaking changes in an issues comment. Thank you for your quick response!! I had to have this working again by Monday so I can sleep better this weekend. Cheers. |
Note to others that the "input_image" param has changed to "image" in the CN Unit |
Yes. I kept Wiki page is updated to reflect the change made in 1.1.448: https://github.com/Mikubill/sd-webui-controlnet/wiki/API |
TODO: Make API units enabled by default |
Is there an existing issue for this?
What happened?
I recently updated my server-based webui + ControlNet from 1.9.3 to 1.9.4 and 1.1.443 to 1.1.449, respectively. Now ControlNet is completely broken. Using my original request schema:
"alwayson_scripts": {
"controlnet": {
"args": [
{
"module": "pidinet_scribble",
"model": "control_v11p_sd15_scribble [d4ba51ff]",
"weight": 0.4,
"resize_mode": 2,
"lowvram": false,
"processor_res": 400.0,
"guidance_start": 0,
"guidance_end": 0.4,
"control_mode": 0,
"pixel_perfect": false,
"threshold_a": 0.0,
"threshold_b": 0.5,
"input_image": "iVBORw0KGgoAAAANSUhEUgAAAwAAAAIACAYAAAA19gs6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwA
...
owAAAABJRU5ErkJggg=="
},
After the update, I get a 500 Internal Server Error with validation errors for both control_mode and resize_mode, as if they no longer accept int and require the string argument. After changing both control_mode and resize_mode arguments to the appropriate strings, ControlNet doesn't throw a validation error, but controlnet has zero effect and returns no preprocessor results. I also tried adding a PNG header to the input_image string (which has never been required before), but no effect.
Any ideas?
Steps to reproduce the problem
Upgrade as above. Send an API request with the documented API.
What should have happened?
ControlNet should work
Commit where the problem happens
webui: 1.9.4
controlnet: 1.1.449
What browsers do you use to access the UI ?
No response
Command Line Arguments
List of enabled extensions
lots, I did add InpaintAnything since that last update. Would that have an effect? I'm not using it in the API, my api calls have not changed since the update.
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: