Browse Source

Fix paths for new kohya directory structure

pull/629/head
JT 8 months ago
parent
commit
8fdd737c51
  1. 4
      StabilityMatrix.Core/Models/Packages/KohyaSs.cs

4
StabilityMatrix.Core/Models/Packages/KohyaSs.cs

@ -206,13 +206,13 @@ public class KohyaSs(
"lora_gui.py",
"dreambooth_gui.py",
"textual_inversion_gui.py",
Path.Combine("library", "wd14_caption_gui.py"),
"wd14_caption_gui.py",
"finetune_gui.py"
};
foreach (var file in filesToUpdate)
{
var path = Path.Combine(installedPackagePath, file);
var path = Path.Combine(installedPackagePath, "kohya_gui", file);
var text = File.ReadAllText(path);
if (text.Contains(replacementAcceleratePath.Replace(@"\", @"\\")))
continue;

Loading…
Cancel
Save