mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-08 02:02:36 -08:00
i will also fix floating point significant digits
This commit is contained in:
parent
b1707553cf
commit
efde17e839
1 changed files with 6 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue