fix paths with spaces

This commit is contained in:
devdn 2023-03-04 00:11:23 -05:00
parent a79d7be063
commit 7af9e48d30
3 changed files with 3 additions and 3 deletions

View File

@ -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}"'

View File

@ -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}"'

View File

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