-
Notifications
You must be signed in to change notification settings - Fork 913
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
controlnet arguments unit.image #1059
Comments
Same issue. ControlNet API call works in A1111 but fails in Forge. I found Reference does not work by api call but IP-Adapter does (even through it still throws a missing parameter error and the type error). |
I used the |
I get this error when using controlnet in adetailer through the forge UI. Not sure why this issue was closed as completed. What is the solution? If I do a "passthrough" in adetailer to the main controlnet integrated, then it works fine. So there seems to be a problem with using controlnet within adetailer? |
@Jonseed, I had the same issue with using controlnet with adetailer, which I fixed using the suggested code change by @dermesut above. Here is the code change I made (pretty much, switching
@lllyasviel is this a safe change to check in? Or is there a better solution? |
this is the arguments that i provide:
controlnet_args = {..., "image": base64_image, "mask_image": base64_mask_image, ...}
this is the output in the terminal:
if i change the code in "...\extensions-builtin\sd_forge_controlnet\scripts\sdfcontrolnet.py" to:
and
unit_mask_image = unit.image["mask"]
a bit further down the road, the terminal doesn't show the error anymore and controlnet works as expected.this is happening only with the forge-versions that came after the "old" version.
i'm not understanding, what i am expected to provide in my dict - i tried a few variations on the theme, without success.
i've also looked at the output of the extension "api payload", but my payload doesn't seem to differ in a meaningful way.
while this addition to the forge-code might be my workaround, i really would like to not change parts of the forge-code at all.
could someone help me figure it out?
The text was updated successfully, but these errors were encountered: