From e6614083d400bb79ba1b8a22e635f5de39c46f98 Mon Sep 17 00:00:00 2001 From: "DESKTOP-877QDKA\\nokya" Date: Sun, 2 Apr 2023 01:43:37 +0300 Subject: [PATCH] add quotes to resize_lora_gui.py --save-to and --model to allow spaces in file paths --- library/resize_lora_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/resize_lora_gui.py b/library/resize_lora_gui.py index 05a7734..ecf1b45 100644 --- a/library/resize_lora_gui.py +++ b/library/resize_lora_gui.py @@ -54,8 +54,8 @@ def resize_lora( run_cmd = f'{PYTHON} "{os.path.join("networks","resize_lora.py")}"' run_cmd += f' --save_precision {save_precision}' - run_cmd += f' --save_to {save_to}' - run_cmd += f' --model {model}' + run_cmd += f' --save_to "{save_to}"' + run_cmd += f' --model "{model}"' run_cmd += f' --new_rank {new_rank}' run_cmd += f' --device {device}' if not dynamic_method == 'None':