diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-06 06:32:41 +0300 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-06 06:32:41 +0300 |
commit | ee96a6a58852e6db30afac129570efb88e991957 (patch) | |
tree | 12383770774d594a333f1283f20503ae5d28762e /modules/processing.py | |
parent | 92b99f32738832472ad69ca3c31a572ea9d8dc61 (diff) |
do the same for s_tmax #12345
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 8743ac0a..6625f2de 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -148,8 +148,8 @@ 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', s_tmax or 0) or float('inf') # not representable as a standard ui option
- self.s_noise = s_noise if s_noise is not None else opts.data.get('s_noise', 1.0)
+ self.s_tmax = (s_tmax if s_tmax is not None else opts.s_tmax) or float('inf')
+ self.s_noise = s_noise if s_noise is not None else 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
self.is_using_inpainting_conditioning = False
|