mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-09 03:50:23 -08:00
move option access checking to options class out of various places scattered through code
This commit is contained in:
parent
26108a7f1c
commit
f2b69709ea
3 changed files with 18 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue