sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

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

Open entmike opened this issue 2 years ago • 1 comments

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?

entmike avatar May 15 '23 15:05 entmike

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

kft334 avatar May 15 '23 16:05 kft334

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!

entmike avatar May 15 '23 19:05 entmike

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

Haozhe-Xing avatar May 26 '23 02:05 Haozhe-Xing

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

PMykhailo avatar Dec 18 '23 09:12 PMykhailo