From 129cd5f97d3ed7e8e638d55ae2eae314f00cf9ef Mon Sep 17 00:00:00 2001 From: devdn Date: Sat, 4 Mar 2023 17:13:02 -0500 Subject: [PATCH] Revert "fix paths with spaces" This reverts commit 7af9e48d304b2396d5d6d0da41a7973c183f8ad8. --- library/extract_lora_gui.py | 2 +- library/merge_lora_gui.py | 2 +- library/resize_lora_gui.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/extract_lora_gui.py b/library/extract_lora_gui.py index c5e8b7d..d3864f1 100644 --- a/library/extract_lora_gui.py +++ b/library/extract_lora_gui.py @@ -41,7 +41,7 @@ def extract_lora( return run_cmd = ( - f'{PYTHON} {os.path.join("networks","extract_lora_from_models.py")}' + f'{PYTHON} "{os.path.join("networks","extract_lora_from_models.py")}"' ) run_cmd += f' --save_precision {save_precision}' run_cmd += f' --save_to "{save_to}"' diff --git a/library/merge_lora_gui.py b/library/merge_lora_gui.py index 33c366f..434d1a6 100644 --- a/library/merge_lora_gui.py +++ b/library/merge_lora_gui.py @@ -43,7 +43,7 @@ def merge_lora( ratio_a = ratio ratio_b = 1 - ratio - run_cmd = f'{PYTHON} {os.path.join("networks","merge_lora.py")}' + run_cmd = f'{PYTHON} "{os.path.join("networks","merge_lora.py")}"' run_cmd += f' --save_precision {save_precision}' run_cmd += f' --precision {precision}' run_cmd += f' --save_to "{save_to}"' diff --git a/library/resize_lora_gui.py b/library/resize_lora_gui.py index d092d4a..c7fff19 100644 --- a/library/resize_lora_gui.py +++ b/library/resize_lora_gui.py @@ -30,7 +30,7 @@ def resize_lora( if device == '': device = 'cuda' - run_cmd = f'{PYTHON} {os.path.join("networks","resize_lora.py")}' + 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}'