aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-05 23:50:33 -0400
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-05 23:50:33 -0400
commit8f31b139b8898921853f686c313ba54c57ad7cb8 (patch)
treeae7f61c6723c98d1dd985cd3946b4b80e4b56252
parentce4be668fe1d2192378a7b4d3173cfd18031a017 (diff)
Assume 0 = inf for s_tmax
-rw-r--r--modules/sd_samplers_kdiffusion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_samplers_kdiffusion.py b/modules/sd_samplers_kdiffusion.py
index 0a0a3474..db71a549 100644
--- a/modules/sd_samplers_kdiffusion.py
+++ b/modules/sd_samplers_kdiffusion.py
@@ -347,7 +347,7 @@ class KDiffusionSampler:
if len(self.extra_params) > 0:
s_churn = getattr(opts, 's_churn', p.s_churn)
s_tmin = getattr(opts, 's_tmin', p.s_tmin)
- s_tmax = getattr(opts, 's_tmax', p.s_tmax)
+ s_tmax = getattr(opts, 's_tmax', p.s_tmax) or self.s_tmax # 0 = inf
s_noise = getattr(opts, 's_noise', p.s_noise)
if s_churn != self.s_churn: