-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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]: API returns different results than web-ui #10929
Comments
@missionfloyd thank you so much for taking your time and helping! This indeed fixed it. I specifically used this code because it was on ControlNets wiki, and it warned that if you didn't use it like this it would mess up your input image, but that doesn't seem to be the case. Resolved 😄 |
Where are you guys seeing the BGR image - [:, :, ::-1] ?? I am having the same problem when sending this call with the img2img controlNet api.
For some reason I am getting weird results compared to the web-ui results. |
Is there an existing issue for this?
What happened?
Using the API I retreive different results than over the web-ui. I have found multiple people saying the same, but all issues were closed due to them not having the exact same settings. This might be my case too, however I wouldn't know which setting is causing this then.
Steps to reproduce the problem
Make sure to send the input image using this method, otherwise you might upload an image that has slightly different colors, and that could cause different results
What should have happened?
The API and the web-ui should have returned the exact same image. However they are different and when using
PNG Info
there is 1 difference I can find.The API:
The web-ui
I will save you some time comparing, the only difference is the
Denoising strength
setting which is added from the API generated image. This should not affect the generated image since I am usingtxt2img
andhires fix
is disabled. I've looked into the source code and the default setting for this seems to be set at0.75
. I've tried to sent an API request with this value at0
,1
,0.75
and0.70
which all result in an image different than the one generated by the web-ui, which does not show this setting at all.Commit where the problem happens
89f9faa
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (GTX 16 below)
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
Console logs
Additional information
What could cause this difference? Is there anything I should change in my API request?
Thanks for any help!
The text was updated successfully, but these errors were encountered: