From b64d6d393cf76103d147ef84e11f02f7b18f8282 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Sun, 16 Jun 2024 18:49:52 +0200 Subject: [PATCH] fix: use != for literal comparison --- modules/async_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/async_worker.py b/modules/async_worker.py index ba84bda1..8c35d7af 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -1118,7 +1118,7 @@ def worker(): negative_cond = task['uc'] if abs(float(async_task.cfg_scale) - 1.0) < 1e-4: negative_cond = pipeline.clone_cond(positive_cond) - elif enhance_negative_prompt is not '': + elif enhance_negative_prompt != '': progressbar(async_task, current_progress, f'Encoding negative ...') negative_cond = pipeline.clip_encode(texts=[enhance_negative_prompt], pool_top_k=1)