aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-14 10:15:10 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-14 10:15:10 +0300
commitabbecb3e7363e422d6840fbb5746c74fd453ead5 (patch)
treebf3fe320f918713828b682cf7880edcb163c30ba /modules/processing.py
parentc7c16f805c9ea0da42d1d993f2ea7bda48beba76 (diff)
further repair the /docs page to not break styles with the attempted fix
Diffstat (limited to 'modules/processing.py')
-rwxr-xr-xmodules/processing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 69d365b8..f34ba48a 100755
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -199,7 +199,9 @@ class StableDiffusionProcessing:
print("sampler_index argument for StableDiffusionProcessing does not do anything; use sampler_name", file=sys.stderr)
self.comments = {}
- self.styles = []
+
+ if self.styles is None:
+ self.styles = []
self.sampler_noise_scheduler_override = None
self.s_min_uncond = self.s_min_uncond if self.s_min_uncond is not None else opts.s_min_uncond