aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-12 20:47:46 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-12 20:47:46 +0300
commit3de44fc580681f785065565fbe63f46c5a872d43 (patch)
treea986f34beb19cd399c076df98b287e2e526227a4 /modules/processing.py
parent35a4649c9e0a54272bbaae7b2489d529bf3154d1 (diff)
Include the model name (or the SHA256 of the file) in the metadata #271
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 23b0c08f..17b4a37b 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -188,6 +188,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),
"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]),