diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 15:05:43 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 15:05:43 +0000 |
commit | efde17e839959b66413b3684d2d922b37caccf33 (patch) | |
tree | 32ee7aba9ac0ff5aeb8b79930553015354ac93df /scripts/xy_grid.py | |
parent | b1707553cf70d74fad08c62cfca5a2bdfee936b7 (diff) | |
download | stable-diffusion-webui-gfx803-efde17e839959b66413b3684d2d922b37caccf33.tar.gz stable-diffusion-webui-gfx803-efde17e839959b66413b3684d2d922b37caccf33.tar.bz2 stable-diffusion-webui-gfx803-efde17e839959b66413b3684d2d922b37caccf33.zip |
i will also fix floating point significant digits
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 4c3f0da3..f511cb4a 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -42,10 +42,16 @@ def apply_sampler(p, x, xs): def format_value_add_label(p, opt, x):
+ if type(x) == float:
+ x = round(x, 8)
+
return f"{opt.label}: {x}"
def format_value(p, opt, x):
+ if type(x) == float:
+ x = round(x, 8)
+
return x
def do_nothing(p, x, xs):
|