Skip to content

Commit

Permalink
Merge pull request #2464 from bmaltais/2463-cant-merge-loras-anymore
Browse files Browse the repository at this point in the history
Fix issue with svd merge int parameters handling
  • Loading branch information
bmaltais committed May 7, 2024
2 parents 7fac1e8 + 79afb84 commit fa5f434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kohya_gui/svd_merge_lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def add_model(model_path, ratio):
if not os.path.isfile(model_path):
log.info(f"The provided model at {model_path} is not a file")
return False
models.append(model_path)
models.append(fr"{model_path}")
ratios.append(str(ratio))
return True

Expand All @@ -89,7 +89,7 @@ def add_model(model_path, ratio):
run_cmd.extend(["--ratios"] + ratios)

run_cmd.extend(
["--device", device, "--new_rank", new_rank, "--new_conv_rank", new_conv_rank]
["--device", device, "--new_rank", str(new_rank), "--new_conv_rank", str(new_conv_rank)]
)

# Log the command
Expand Down

0 comments on commit fa5f434

Please sign in to comment.