From bfa590b3130e2a67c1d8ba6a6bc70cf887fc9761 Mon Sep 17 00:00:00 2001 From: bmaltais Date: Sun, 1 Jan 2023 14:37:32 -0500 Subject: [PATCH] Quick fix for bug when no LoRA network weights is provided --- lora_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lora_gui.py b/lora_gui.py index f70947a..e8bed70 100644 --- a/lora_gui.py +++ b/lora_gui.py @@ -434,7 +434,8 @@ def train_model( # elif network_train == 'Unet only': # run_cmd += f' --network_train_unet_only' run_cmd += f' --network_dim={network_dim}' - run_cmd += f' --network_weights={lora_network_weights}' + if not lora_network_weights == '': + run_cmd += f' --network_weights={lora_network_weights}' print(run_cmd)