disable expansion when empty since it is not meaningful and influences image prompt

disable expansion when empty since it is not meaningful and influences image prompt
This commit is contained in:
lllyasviel 2023-10-26 08:59:49 -07:00
parent d7ee814579
commit 823fa924d3
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
version = '2.1.746'
version = '2.1.747'

View File

@ -216,6 +216,10 @@ def worker():
prompt = prompts[0]
negative_prompt = negative_prompts[0]
if prompt == '':
# disable expansion when empty since it is not meaningful and influences image prompt
use_expansion = False
extra_positive_prompts = prompts[1:] if len(prompts) > 1 else []
extra_negative_prompts = negative_prompts[1:] if len(negative_prompts) > 1 else []