diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-09-27 11:02:41 -0500 |
---|---|---|
committer | d8ahazard <d8ahazard@gmail.com> | 2022-09-27 11:02:41 -0500 |
commit | 5756d517a6342d8a9ffa3ead636dcb84b463d2e3 (patch) | |
tree | 6feb5e799520b66aa65f09f7dbb352f4e3813a60 /modules/shared.py | |
parent | 11875f586323cea7c5b8398976449788a83dee76 (diff) | |
parent | ada901ed661a717c44281d640b8fc0a275d4cb48 (diff) |
Merge remote-tracking branch 'upstream/master' into ModelLoader
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index e617bce4..c27079eb 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -76,7 +76,7 @@ class State: job = ""
job_no = 0
job_count = 0
- job_timestamp = 0
+ job_timestamp = '0'
sampling_step = 0
sampling_steps = 0
current_latent = None
@@ -90,6 +90,7 @@ class State: self.job_no += 1
self.sampling_step = 0
self.current_image_sampling_step = 0
+
def get_job_timestamp(self):
return datetime.datetime.now().strftime("%Y%m%d%H%M%S")
@@ -229,6 +230,13 @@ options_templates.update(options_section(('ui', "User interface"), { "js_modal_lightbox_initialy_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"),
}))
+options_templates.update(options_section(('sampler-params', "Sampler parameters"), {
+ "ddim_eta": OptionInfo(0.0, "DDIM eta", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ "ddim_discretize": OptionInfo('uniform', "img2img DDIM discretize", gr.Radio, {"choices": ['uniform','quad']}),
+ 's_churn': OptionInfo(0.0, "sigma churn", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ 's_tmin': OptionInfo(0.0, "sigma tmin", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ 's_noise': OptionInfo(1.0, "sigma noise", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+}))
class Options:
data = None
|