diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 06:42:25 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 06:42:25 +0000 |
commit | f2b69709eaff88fc3a2bd49585556ec0883bf5ea (patch) | |
tree | af6224830b2d23ac9193d70933e7f69ae169a658 /modules/processing.py | |
parent | 26108a7f1c0d269bc67460c04a0852a9eb23f166 (diff) | |
download | stable-diffusion-webui-gfx803-f2b69709eaff88fc3a2bd49585556ec0883bf5ea.tar.gz stable-diffusion-webui-gfx803-f2b69709eaff88fc3a2bd49585556ec0883bf5ea.tar.bz2 stable-diffusion-webui-gfx803-f2b69709eaff88fc3a2bd49585556ec0883bf5ea.zip |
move option access checking to options class out of various places scattered through code
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 2168208c..a46e592d 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|