add quotes to resize_lora_gui.py --save-to and --model to allow spaces in file paths

This commit is contained in:
DESKTOP-877QDKA\nokya 2023-04-02 01:43:37 +03:00
parent af0df3419e
commit e6614083d4

View File

@ -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':