stable-diffusion-webui/scripts
bryanlyon b5462536f8
Fixed decimal prompt weights without leading digit (#1182)
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.
2022-09-16 20:42:41 +01:00
..
relauncher.py Repo merge (#712) 2022-09-06 23:50:14 +01:00
webui_streamlit.py Dev merge (#819) 2022-09-08 11:41:04 +01:00
webui.py Fixed decimal prompt weights without leading digit (#1182) 2022-09-16 20:42:41 +01:00