Merge pull request #513 from adrianlungu/fix_path_spaces

fix resize_lora not working with paths that contain spaces
This commit is contained in:
bmaltais 2023-04-01 19:05:23 -04:00 committed by GitHub
commit e5bdc55f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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