mcmonkeyprojects / sd-dynamic-thresholding

Dynamic Thresholding (CFG Scale Fix) for Stable Diffusion (eSwarmUI, ComfyUI, and Auto WebUI)
MIT License
1.1k stars 103 forks source link

fire checkbox change event #77

Closed wkpark closed 11 months ago

mcmonkey4eva commented 11 months ago

I'm very confused what this PR is doing?

wkpark commented 11 months ago

I'm very confused what this PR is doing?

when PNG info is read from an image or the params.txt, the enable checkbox is turned on but the fake check box does not change. (I guess this is a gradio bug. the original checkbox changed, but the change event is not fired by gradio) this fix simply fires change event to sync the fake checkbox state.

PR #76 just tries to change the fake checkbox state but the appearance remains [ ]. (unchecked) this fix do real job.

image