diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-17 09:05:04 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-17 09:05:18 +0000 |
commit | 247f58a5e740a7bd3980815961425b778d77ec28 (patch) | |
tree | 56536dd5c7a078720e4d0cc71530280c70df3c47 /modules/processing.py | |
parent | b8be33dad13d4937c6ef8fbb49715d843c3dd586 (diff) | |
download | stable-diffusion-webui-gfx803-247f58a5e740a7bd3980815961425b778d77ec28.tar.gz stable-diffusion-webui-gfx803-247f58a5e740a7bd3980815961425b778d77ec28.tar.bz2 stable-diffusion-webui-gfx803-247f58a5e740a7bd3980815961425b778d77ec28.zip |
add support for switching model checkpoints at runtime
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 81c83f06..3a4ff224 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -227,7 +227,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: "Seed": all_seeds[index],
"Face restoration": (opts.face_restoration_model if p.restore_faces else None),
"Size": f"{p.width}x{p.height}",
- "Model hash": (None if not opts.add_model_hash_to_info or not shared.sd_model_hash else shared.sd_model_hash),
+ "Model hash": (None if not opts.add_model_hash_to_info or not shared.sd_model.sd_model_hash else shared.sd_model.sd_model_hash),
"Batch size": (None if p.batch_size < 2 else p.batch_size),
"Batch pos": (None if p.batch_size < 2 else position_in_batch),
"Variation seed": (None if p.subseed_strength == 0 else all_subseeds[index]),
|