diff options
author | xucj98 <975114697@qq.com> | 2022-11-25 09:07:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 09:07:00 +0000 |
commit | 263b323de12eb2444b0818105575a2bc69ab0344 (patch) | |
tree | 7bc4a7802bdaba21550ad281cc08c3fc1037b074 /modules/images.py | |
parent | d20dbe47e06de7f6c0e65242a04c9bb1410ef7cb (diff) | |
parent | 828438b4a190759807f9054932cae3a8b880ddf1 (diff) | |
download | stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.gz stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.bz2 stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.zip |
Merge branch 'AUTOMATIC1111:master' into draft
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 ae705cbd..26d5b7a9 100644 --- a/modules/images.py +++ b/modules/images.py @@ -303,7 +303,7 @@ class FilenameGenerator: 'width': lambda self: self.image.width,
'height': lambda self: self.image.height,
'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(sd_samplers.samplers[self.p.sampler_index].name, 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),
'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>]
|