diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-20 16:07:09 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-20 16:07:09 +0000 |
commit | b9674e2900f65c0a6d6abc4cd939546658883471 (patch) | |
tree | 5a136052bc91f9857f754961e2c7c53eedab5eea /modules/processing.py | |
parent | 90401d96a69f62e21bee11294a1fe800cbd8b7fa (diff) | |
download | stable-diffusion-webui-gfx803-b9674e2900f65c0a6d6abc4cd939546658883471.tar.gz stable-diffusion-webui-gfx803-b9674e2900f65c0a6d6abc4cd939546658883471.tar.bz2 stable-diffusion-webui-gfx803-b9674e2900f65c0a6d6abc4cd939546658883471.zip |
add extra generation params
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py index e146524d..2bc19f6b 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -70,7 +70,7 @@ class StableDiffusionProcessing: self.tiling: bool = tiling
self.do_not_save_samples: bool = do_not_save_samples
self.do_not_save_grid: bool = do_not_save_grid
- self.extra_generation_params: dict = extra_generation_params
+ self.extra_generation_params: dict = extra_generation_params or {}
self.overlay_images = overlay_images
self.paste_to = None
self.color_corrections = None
@@ -248,8 +248,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration "Denoising strength": getattr(p, 'denoising_strength', None),
}
- if p.extra_generation_params is not None:
- generation_params.update(p.extra_generation_params)
+ generation_params.update(p.extra_generation_params)
generation_params_text = ", ".join([k if k == v else f'{k}: {v}' for k, v in generation_params.items() if v is not None])
|