diff options
author | Robin Fernandes <robin@soal.org> | 2022-09-23 00:54:32 +0000 |
---|---|---|
committer | Robin Fernandes <robin@soal.org> | 2022-09-23 00:54:32 +0000 |
commit | 03738668c08852d717b0564fc0c3da89877e52b8 (patch) | |
tree | 975bd8f2f610901ee45a5c3d1885d93074cdddc2 /modules/images.py | |
parent | 25eb1e3d9072a060a253abce6889e7fef440dfe1 (diff) | |
parent | 19fc3e82794245b663467a9be076271f6ae33f26 (diff) | |
download | stable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.tar.gz stable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.tar.bz2 stable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.zip |
Merge from master
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index f65f4553..6cf56ddb 100644 --- a/modules/images.py +++ b/modules/images.py @@ -249,7 +249,6 @@ invalid_filename_prefix = ' ' invalid_filename_postfix = ' .'
re_nonletters = re.compile(r'[\s'+string.punctuation+']+')
max_filename_part_length = 128
-max_prompt_words = 8
def sanitize_filename_part(text, replace_spaces=True):
@@ -263,6 +262,8 @@ def sanitize_filename_part(text, replace_spaces=True): def apply_filename_pattern(x, p, seed, prompt):
+ max_prompt_words = opts.directories_max_prompt_words
+
if seed is not None:
x = x.replace("[seed]", str(seed))
|