mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
b5462536f8
The regex was not accounting properly for prompt weights that didn't begin with a leading number such as .5 or .1 and was instead splitting those off into their own prompt which got everything all screwed up. For example, the prompt string of "Fruit:1 grapes:-.5" should parse as [('Fruit', 1.0), ('grapes', -.5)] but was being incorrectly parsed as [('Fruit', 1.0), ('grapes', 1.0), ('-.5', 1.0)] This fixes that by making the regex properly catch decimals. |
||
---|---|---|
.. | ||
relauncher.py | ||
webui_streamlit.py | ||
webui.py |