diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-04 08:19:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 08:19:18 +0000 |
commit | f903b4dda36537b8fd5daec209f9f886adb104fc (patch) | |
tree | adea5daefa9f4755ad472cd986bf9662977472c3 /modules | |
parent | 3f7f61e5411320a802a2a4b1afd38c8affee94b3 (diff) | |
parent | bfc48fbc244130770991fab284f6fedcef2054e7 (diff) | |
download | stable-diffusion-webui-gfx803-f903b4dda36537b8fd5daec209f9f886adb104fc.tar.gz stable-diffusion-webui-gfx803-f903b4dda36537b8fd5daec209f9f886adb104fc.tar.bz2 stable-diffusion-webui-gfx803-f903b4dda36537b8fd5daec209f9f886adb104fc.zip |
Merge pull request #14523 from AUTOMATIC1111/paste-infotext-cast-int-as-float
paste infotext cast int as float
Diffstat (limited to 'modules')
-rw-r--r-- | modules/infotext_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py index 6978a0bf..9a02cdf2 100644 --- a/modules/infotext_utils.py +++ b/modules/infotext_utils.py @@ -479,6 +479,8 @@ def connect_paste(button, paste_fields, input_comp, override_settings_component, if valtype == bool and v == "False":
val = False
+ elif valtype == int:
+ val = float(v)
else:
val = valtype(v)
|