Merge pull request #742 from MoonRide303/wildcards-info

Added information about wildcards usage in console log
This commit is contained in:
MoonRide303
2023-10-20 09:30:37 +02:00
committed by GitHub
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
version = '2.1.709' version = '2.1.710'
+2
View File
@@ -103,6 +103,7 @@ def apply_wildcards(wildcard_text, seed=None, directory=wildcards_path):
if len(placeholders) == 0: if len(placeholders) == 0:
return wildcard_text return wildcard_text
print(f'[Fooocus Wildcards] input: {wildcard_text}')
rng = random.Random(seed) rng = random.Random(seed)
for placeholder in placeholders: for placeholder in placeholders:
try: try:
@@ -112,5 +113,6 @@ def apply_wildcards(wildcard_text, seed=None, directory=wildcards_path):
except IOError: except IOError:
print(f'Error: could not open wildcard file {placeholder}.txt, using as normal word.') print(f'Error: could not open wildcard file {placeholder}.txt, using as normal word.')
wildcard_text = wildcard_text.replace(f'__{placeholder}__', placeholder) wildcard_text = wildcard_text.replace(f'__{placeholder}__', placeholder)
print(f'[Fooocus Wildcards] output: {wildcard_text}')
return wildcard_text return wildcard_text
+4
View File
@@ -1,3 +1,7 @@
# 2.1.710
* Added information about wildcards usage in console log.
# 2.1.709 # 2.1.709
* Allowed changing default values of advanced checkbox and image number. * Allowed changing default values of advanced checkbox and image number.