aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-17 12:05:04 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-17 12:05:18 +0300
commit247f58a5e740a7bd3980815961425b778d77ec28 (patch)
tree56536dd5c7a078720e4d0cc71530280c70df3c47 /modules/images.py
parentb8be33dad13d4937c6ef8fbb49715d843c3dd586 (diff)
add support for switching model checkpoints at runtime
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py
index b62c48f8..a3064333 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -274,7 +274,7 @@ def apply_filename_pattern(x, p, seed, prompt):
x = x.replace("[height]", str(p.height))
x = x.replace("[sampler]", sd_samplers.samplers[p.sampler_index].name)
- x = x.replace("[model_hash]", shared.sd_model_hash)
+ x = x.replace("[model_hash]", shared.sd_model.sd_model_hash)
x = x.replace("[date]", datetime.date.today().isoformat())
if cmd_opts.hide_ui_dir_config: