diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-19 12:49:31 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-19 12:49:54 +0000 |
commit | 4334d25978ded517a76359e9e92b8101610cc35f (patch) | |
tree | 30b0022f31198f1e9cc146d79d25f8340a726eea /modules/images.py | |
parent | d5c850aab543b42746348b48a734aec9aab5aff9 (diff) | |
download | stable-diffusion-webui-gfx803-4334d25978ded517a76359e9e92b8101610cc35f.tar.gz stable-diffusion-webui-gfx803-4334d25978ded517a76359e9e92b8101610cc35f.tar.bz2 stable-diffusion-webui-gfx803-4334d25978ded517a76359e9e92b8101610cc35f.zip |
bugfix: model name was added together with directory name to infotext and to [model_name] filename pattern
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 fb5d2e75..38aa933d 100644 --- a/modules/images.py +++ b/modules/images.py @@ -363,7 +363,7 @@ class FilenameGenerator: 'styles': lambda self: self.p and sanitize_filename_part(", ".join([style for style in self.p.styles if not style == "None"]) or "None", replace_spaces=False),
'sampler': lambda self: self.p and sanitize_filename_part(self.p.sampler_name, replace_spaces=False),
'model_hash': lambda self: getattr(self.p, "sd_model_hash", shared.sd_model.sd_model_hash),
- 'model_name': lambda self: sanitize_filename_part(shared.sd_model.sd_checkpoint_info.model_name, replace_spaces=False),
+ 'model_name': lambda self: sanitize_filename_part(shared.sd_model.sd_checkpoint_info.name_for_extra, replace_spaces=False),
'date': lambda self: datetime.datetime.now().strftime('%Y-%m-%d'),
'datetime': lambda self, *args: self.datetime(*args), # accepts formats: [datetime], [datetime<Format>], [datetime<Format><Time Zone>]
'job_timestamp': lambda self: getattr(self.p, "job_timestamp", shared.state.job_timestamp),
|