Revert "Removed auto prompt_matrix check (revert)"

This reverts commit 0b2f5bf46a.
This commit is contained in:
hlky 2022-08-29 12:20:22 +01:00
parent c0cd601d6a
commit 9156c8b834

View File

@ -670,8 +670,13 @@ def process_images(
sample_path = os.path.join(outpath, "samples")
os.makedirs(sample_path, exist_ok=True)
if not ("|" in prompt) and prompt.startswith("@"):
prompt = prompt[1:]
# Set auto prompt_matrix depending on prompt.
if "|" in prompt:
prompt_matrix = True
else:
prompt_matrix = False
if prompt.startswith("@"):
prompt = prompt[1:]
comments = []