aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorKeavon Chambers <keavon@keavon.com>2022-11-19 10:34:31 -0800
committerGitHub <noreply@github.com>2022-11-19 10:34:31 -0800
commit2f90496b19cd9c512633742db97b072a7075f017 (patch)
tree60d2dddd69172d9b5cf58c8da2bd64c61132f4fa /modules/images.py
parenta258fd60dbe2d68325339405a2aa72816d06d2fd (diff)
parent47a44c7e421b98ca07e92dbf88769b04c9e28f86 (diff)
downloadstable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.tar.gz
Merge branch 'master' into cors-regex
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 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>]