diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-17 12:05:04 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-17 12:05:18 +0300 |
commit | 247f58a5e740a7bd3980815961425b778d77ec28 (patch) | |
tree | 56536dd5c7a078720e4d0cc71530280c70df3c47 /modules/images.py | |
parent | b8be33dad13d4937c6ef8fbb49715d843c3dd586 (diff) |
add support for switching model checkpoints at runtime
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 2 |
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:
|