Replies: 1 comment
-
found that there is something to control this via the API called: union_control_type. Closing this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I’m hoping someone can help me figure out how to achieve more consistent results when using the API compared to the WebUI ControlNet.
Context
I’m using the Segmentation Control Type with the model:
xinsir-controlnet-union-promax-sdxl-v1 [9460e4db]
and the Preprocessor set to "None" in the WebUI. This setup produces the desired results. I also noticed the following message in the console:The Issue
When constructing an API payload for ControlNet, there doesn’t seem to be a variable for "Control Type." The API payload only provides access to
model
andmodule
.I reviewed the documentation but couldn’t find a way to explicitly set the Control Type to Segmentation.
Why This is a Problem
It seems the Control Type is being set automatically, but the generated results suggest it’s not being applied as expected. Through experimentation, I discovered that if I set the following in the WebUI:
xinsir-controlnet-union-promax-sdxl-v1 [9460e4db]
...the results are lower quality, matching what I get from the API. I suspect this happens because no specific Control Type is set, as indicated by the following console output:
My Questions
Is it possible to pass a Control Type to the API?
Maybe I’m not constructing the payload correctly, but I’d like to know if there’s a way to explicitly specify Segmentation as the Control Type.
How can I ensure the combination
module = "none"
andmodel = "xinsir-controlnet-union-promax-sdxl-v1 [9460e4db]"
automatically sets the Control Type to Segmentation?Any ideas on how to achieve this would be greatly appreciated. I’m not looking for code, just general approaches or insights.
Is this the right place to ask this question?
Or would it be better directed to the Automatic1111 API community?
Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions