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

[Bug]: Web Interface and API uses different defaults for controlnet_threshold_a and controlnet_threshold_b #2732

Closed
1 task done
allo- opened this issue Apr 3, 2024 · 0 comments · Fixed by #2746
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@allo-
Copy link

allo- commented Apr 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

What happened?

The controlnet extension uses different defaults (especially for controlnet_threshold_a/b) when used in the webinterface and when used via the API.

In the API, both thresholds are initialized with 64, which is different from what the webinterface does, e.g. when using the tile controlnet, which seems to require both parameters to be 0.

Related code:
https://github.com/Mikubill/sd-webui-controlnet/blob/eb451a007f7040288e865f96e9ee0842aa6ef91c/scripts/api.py#L99C9-L99C31

Steps to reproduce the problem

  1. Use img2img with the sd-webui API and the tile controlnet

What should have happened?

The controlnet should use the same defaults like it uses in the webinterface.

Commit where the problem happens

webui: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
controlnet: aa2aa81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants