diff --git a/fooocus_version.py b/fooocus_version.py index a86d5dcb..199193ac 100644 --- a/fooocus_version.py +++ b/fooocus_version.py @@ -1 +1 @@ -version = '2.1.746' +version = '2.1.747' diff --git a/modules/async_worker.py b/modules/async_worker.py index 26cd986d..2832ca86 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -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 []