From c554984a5320117350e1480666671a5737ac46c7 Mon Sep 17 00:00:00 2001 From: bmaltais Date: Sat, 14 Sep 2024 09:24:13 -0400 Subject: [PATCH] Fix logic typo --- kohya_gui/lora_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kohya_gui/lora_gui.py b/kohya_gui/lora_gui.py index a9ac7dd8..bf288a82 100644 --- a/kohya_gui/lora_gui.py +++ b/kohya_gui/lora_gui.py @@ -845,7 +845,8 @@ def train_model( if flux1_checkbox: log.info(f"Validating lora type is Flux1 if flux1 checkbox is checked...") - if LoRA_type != "Flux1" or LoRA_type != "Flux1 OFT": + print(LoRA_type) + if (LoRA_type != "Flux1") and (LoRA_type != "Flux1 OFT"): log.error("LoRA type must be set to 'Flux1' or 'Flux1 OFT' if Flux1 checkbox is checked.") return TRAIN_BUTTON_VISIBLE