Closed ramyma closed 1 year ago
set threshold_a to a number between 0 to 1 - it is the style fidelity - should fix this but will update a range check in future versions
@lllyasviel thanks for pointing that out! Turns out I had a bug with my implementation.
Don't you think it's better to return a 422 response?
While this defaults to a reasonable value, it would make it harder for someone to figure they sent a wrong value.
Is there an existing issue for this?
What happened?
After 36f0ff5f5c3d7a970103cbc4e2b4419771f533d1 using
reference_adin
,reference_adin+attn
orreference_only
withcontrol_mode
set toBalanced
doesn't work anymore.With
reference_adin1
andreference_adin+attn
throws this exception:While
reference_only
returns a scrambled image.When
threshold_a
is set to0
or1
withcontrol_mode
set toBalanced
an seemingly normal image is returned.I tested with the same generation request code before and after 36f0ff5f5c3d7a970103cbc4e2b4419771f533d1 to confirm that it broke on this commit.
It's worth noting that this issue doesn't happen when using the webui interface.
Steps to reproduce the problem
Create an api request with a controlnet unit with
model
set tonone
andmodule
set toreference_adin
,reference_adin+attn
orreference_only
andcontrol_mode
set toBalanced
andthreshold_a
set to0.5
.Here's an example payload:
What should have happened?
Image should be returned without an issue.
Commit where the problem happens
webui: v1.2.1 (but it seems to be working in webui) controlnet: 36f0ff5f5c3d7a970103cbc4e2b4419771f533d1
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of enabled extensions
-
Console logs