diff options
author | RnDMonkey <ryandrutledge@gmail.com> | 2022-09-24 07:47:33 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-24 08:12:58 +0000 |
commit | a2bea2f97aab6ef60afe6534611e646f66226868 (patch) | |
tree | 5460d259eca916a4cfb775cf1ca43ae2bb3e3cb5 /modules/images.py | |
parent | 410bef0853b61771729dd30f2f2df7a2906a1d4a (diff) | |
download | stable-diffusion-webui-gfx803-a2bea2f97aab6ef60afe6534611e646f66226868.tar.gz stable-diffusion-webui-gfx803-a2bea2f97aab6ef60afe6534611e646f66226868.tar.bz2 stable-diffusion-webui-gfx803-a2bea2f97aab6ef60afe6534611e646f66226868.zip |
added [styles] filename pattern
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py index 40a64209..642cde36 100644 --- a/modules/images.py +++ b/modules/images.py @@ -290,6 +290,7 @@ def apply_filename_pattern(x, p, seed, prompt): x = x.replace("[cfg]", str(p.cfg_scale))
x = x.replace("[width]", str(p.width))
x = x.replace("[height]", str(p.height))
+ x = x.replace("[styles]", sanitize_filename_part(", ".join(p.styles), replace_spaces=False))
x = x.replace("[sampler]", sanitize_filename_part(sd_samplers.samplers[p.sampler_index].name, replace_spaces=False))
x = x.replace("[model_hash]", shared.sd_model.sd_model_hash)
|