mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
move option access checking to options class out of various places scattered through code
This commit is contained in:
@@ -418,13 +418,13 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
|
||||
|
||||
try:
|
||||
for k, v in p.override_settings.items():
|
||||
opts.data[k] = v # we don't call onchange for simplicity which makes changing model, hypernet impossible
|
||||
setattr(opts, k, v) # we don't call onchange for simplicity which makes changing model, hypernet impossible
|
||||
|
||||
res = process_images_inner(p)
|
||||
|
||||
finally:
|
||||
for k, v in stored_opts.items():
|
||||
opts.data[k] = v
|
||||
setattr(opts, k, v)
|
||||
|
||||
return res
|
||||
|
||||
|
Reference in New Issue
Block a user