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