Skip to content

Commit

Permalink
Fix issue with verify lora
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Mar 2, 2024
1 parent 5e9ba9a commit 656aaa8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions kohya_gui/verify_lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ def verify_lora(
msgbox('The provided model A is not a file')
return

run_cmd = [
PYTHON,
fr'"{scriptdir}/sd-scripts/networks/check_lora_weights.py"',
f'{lora_model}',
]

log.info(' '.join(run_cmd))
run_cmd = fr'{PYTHON} "{scriptdir}/sd-scripts/networks/check_lora_weights.py" "{lora_model}"'

log.info(run_cmd)

env = os.environ.copy()
env['PYTHONPATH'] = fr"{scriptdir}{os.pathsep}{env.get('PYTHONPATH', '')}"
Expand Down

0 comments on commit 656aaa8

Please sign in to comment.