Replies: 3 comments 6 replies
-
The following code works, https://github.com/Mikubill/sd-webui-controlnet/wiki/API#route-post-controlnetdetect # A1111 payload
payload = {
"prompt": 'your-promot',
"negative_prompt": "",
"batch_size": 1,
"sampler_index": "Euler a",
"seed":0,
"steps": 20,
"cfg_scale": 7,
"alwayson_scripts": {
"controlnet": {
"args": [
{
"input_image": LR_encoded_image,
"model": "control_v11f1e_sd15_tile [a371b31b]",
"resize_mode":1,
"control_mode":0,
"weight":1,
},
{
"input_image": Depth_encoded_image,
"model": "control_v11f1p_sd15_depth [cfd03158]",
"resize_mode":1,
"control_mode":0,
"weight":1,
}
]
}
}
}
|
Beta Was this translation helpful? Give feedback.
-
when I use this payload, it will return 3 images, the same in the webui, but it seems that the softedge doesn't work. If I use only one controlnet, either openpose or softedge will work, but not both together |
Beta Was this translation helpful? Give feedback.
-
是的,之前失败是因为参数配错了,导致controlnet没有被使用 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to use multi controlnet in the api mode? For example, I want to use both the control_v11f1p_sd15_depth and control_v11f1e_sd15_tile models. Has anyone tried this?
Beta Was this translation helpful? Give feedback.
All reactions