Added information about wildcards usage in console log

This commit is contained in:
MoonRide303 2023-10-20 09:28:23 +02:00
parent b1cd3fb85b
commit 6d76c55964
3 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
version = '2.1.709'
version = '2.1.710'

View File

@ -103,6 +103,7 @@ def apply_wildcards(wildcard_text, seed=None, directory=wildcards_path):
if len(placeholders) == 0:
return wildcard_text
print(f'[Fooocus Wildcards] input: {wildcard_text}')
rng = random.Random(seed)
for placeholder in placeholders:
try:
@ -112,5 +113,6 @@ def apply_wildcards(wildcard_text, seed=None, directory=wildcards_path):
except IOError:
print(f'Error: could not open wildcard file {placeholder}.txt, using as normal word.')
wildcard_text = wildcard_text.replace(f'__{placeholder}__', placeholder)
print(f'[Fooocus Wildcards] output: {wildcard_text}')
return wildcard_text

View File

@ -1,3 +1,7 @@
# 2.1.710
* Added information about wildcards usage in console log.
# 2.1.709
* Allowed changing default values of advanced checkbox and image number.