From 79afb84f60e894fe9057309782cf51282d0678d1 Mon Sep 17 00:00:00 2001 From: bmaltais Date: Tue, 7 May 2024 19:06:40 -0400 Subject: [PATCH] Fix issue with svd merge int parameters handling --- kohya_gui/svd_merge_lora_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kohya_gui/svd_merge_lora_gui.py b/kohya_gui/svd_merge_lora_gui.py index 5e8643006..706845f68 100644 --- a/kohya_gui/svd_merge_lora_gui.py +++ b/kohya_gui/svd_merge_lora_gui.py @@ -71,7 +71,7 @@ def add_model(model_path, ratio): if not os.path.isfile(model_path): log.info(f"The provided model at {model_path} is not a file") return False - models.append(model_path) + models.append(fr"{model_path}") ratios.append(str(ratio)) return True @@ -89,7 +89,7 @@ def add_model(model_path, ratio): run_cmd.extend(["--ratios"] + ratios) run_cmd.extend( - ["--device", device, "--new_rank", new_rank, "--new_conv_rank", new_conv_rank] + ["--device", device, "--new_rank", str(new_rank), "--new_conv_rank", str(new_conv_rank)] ) # Log the command