Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.97k stars 1.96k forks source link

[Question]: How do I specify Style Fidelity for reference mode in the API? #1295

Closed entmike closed 11 months ago

entmike commented 1 year ago

How do I specify Style Fidelity for reference mode in the API?

I checked the examples, but given the recent addition of the reference processor, I suspect it's not been documented yet. Any hint?

kft334 commented 1 year ago

It uses threshold_a supposedly. I'm using that in my app and it does appear to work somewhat when using 'Balanced' mode but I can't say for sure since I've only tested it on one image.

Screenshot 2023-05-15 125821

Top left is the reference image, the two below it are using threshold_a = 0.01 and the two on the right are using threshold_a = 1.0

entmike commented 1 year ago

It uses threshold_a supposedly. I'm using that in my app and it does appear to work somewhat when using 'Balanced' mode but I can't say for sure since I've only tested it on one image.

Screenshot 2023-05-15 125821

Top left is the reference image, the two below it are using threshold_a = 0.01 and the two on the right are using threshold_a = 1.0

Thanks for the tip! And neat looking app!

Haozhe-Xing commented 1 year ago

Could someone tell what is the meaning of ‘threshold_a'? I didn't find the same name ckpt such as canny

PMykhailo commented 10 months ago

Could someone tell what is the meaning of ‘threshold_a'? I didn't find the same name ckpt such as canny

this is one of the parameters for any controlnet in the api. But for me it does not work like it should for some reasone. When I make threshold_a = 0,5 I don't get the same result as for style fidelity = 0.5