mcmonkeyprojects / sd-dynamic-thresholding

Dynamic Thresholding (CFG Scale Fix) for Stable Diffusion (SwarmUI, ComfyUI, and Auto WebUI)
MIT License
1.12k stars 109 forks source link

Colab breaks due to python version #1

Closed x-legion closed 1 year ago

x-legion commented 1 year ago

image

mcmonkey4eva commented 1 year ago

match syntax was introduced by Python 3.10, which is the support target for the WebUI - it used to target 3.9 though, so I imagine what happened here is your Python install is outdated?

x-legion commented 1 year ago

Using it in Google colab

mcmonkey4eva commented 1 year ago

Argh, yeah, I forgot colab has outdated python for some reason. I replaced the match syntax with something backwards compatible.