aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-06 01:51:46 +0000
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-06 01:51:46 +0000
commit85c2c138d2f5f853c79bde3775d69628e86c65ca (patch)
treef46ed9945382179cf73b780867e4bb018e329d72
parentc11104fed5ffee7b9a22674889580028296c5e55 (diff)
downloadstable-diffusion-webui-gfx803-85c2c138d2f5f853c79bde3775d69628e86c65ca.tar.gz
stable-diffusion-webui-gfx803-85c2c138d2f5f853c79bde3775d69628e86c65ca.tar.bz2
stable-diffusion-webui-gfx803-85c2c138d2f5f853c79bde3775d69628e86c65ca.zip
Attempt to read s_tmax from arg first if option not found
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index a5cd2a47..2003532d 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -148,7 +148,7 @@ class StableDiffusionProcessing:
self.s_min_uncond = s_min_uncond or opts.s_min_uncond
self.s_churn = s_churn or opts.s_churn
self.s_tmin = s_tmin or opts.s_tmin
- self.s_tmax = opts.data.get('s_tmax', 0) or float('inf') # not representable as a standard ui option
+ self.s_tmax = opts.data.get('s_tmax', s_tmax or 0) or float('inf') # not representable as a standard ui option
self.s_noise = s_noise or opts.s_noise
self.override_settings = {k: v for k, v in (override_settings or {}).items() if k not in shared.restricted_opts}
self.override_settings_restore_afterwards = override_settings_restore_afterwards