parent
7af9e48d30
commit
129cd5f97d
@ -41,7 +41,7 @@ def extract_lora(
|
|||||||
return
|
return
|
||||||
|
|
||||||
run_cmd = (
|
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_precision {save_precision}'
|
||||||
run_cmd += f' --save_to "{save_to}"'
|
run_cmd += f' --save_to "{save_to}"'
|
||||||
|
@ -43,7 +43,7 @@ def merge_lora(
|
|||||||
ratio_a = ratio
|
ratio_a = ratio
|
||||||
ratio_b = 1 - 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' --save_precision {save_precision}'
|
||||||
run_cmd += f' --precision {precision}'
|
run_cmd += f' --precision {precision}'
|
||||||
run_cmd += f' --save_to "{save_to}"'
|
run_cmd += f' --save_to "{save_to}"'
|
||||||
|
@ -30,7 +30,7 @@ def resize_lora(
|
|||||||
if device == '':
|
if device == '':
|
||||||
device = 'cuda'
|
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_precision {save_precision}'
|
||||||
run_cmd += f' --save_to {save_to}'
|
run_cmd += f' --save_to {save_to}'
|
||||||
run_cmd += f' --model {model}'
|
run_cmd += f' --model {model}'
|
||||||
|
Loading…
Reference in New Issue
Block a user