Skip to content

Commit

Permalink
Fix logic typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Sep 14, 2024
1 parent 31c77d6 commit c554984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kohya_gui/lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c554984

Please sign in to comment.