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

Update dynthres_comfyui.py #87

Closed kaibioinfo closed 8 months ago

kaibioinfo commented 8 months ago

comfyui timestep arg returns the sigma instead of the timestep. This messes up the timestep schedule of the cfg thresholding script.

Thanks to piezo for helping me figure out how to convert sigma to timestep.

mcmonkey4eva commented 8 months ago

Timesteps was correct when that was written - I guess it's changed since, I tested and confirmed it's wrong now and your fix indeed fixes it. Thank you!