fix prompt scheduling

This commit is contained in:
Vladimir Mandic
2023-12-18 13:27:36 -05:00
parent c1aa146b5a
commit f13f2d03f9
4 changed files with 10 additions and 3 deletions
+2
View File
@@ -697,6 +697,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
p.scripts.before_process(p)
stored_opts = {}
for k, v in p.override_settings.copy().items():
if shared.opts.data.get(k, None) is None and shared.opts.data_labels.get(k, None) is None:
continue
orig = shared.opts.data.get(k, None) or shared.opts.data_labels[k].default
if orig == v or (type(orig) == str and os.path.splitext(orig)[0] == v):
p.override_settings.pop(k, None)