|
|
|
@ -124,6 +124,8 @@ public class KohyaSs : BaseGitPackage
|
|
|
|
|
venvRunner.WorkingDirectory = installLocation; |
|
|
|
|
await venvRunner.Setup(true, onConsoleOutput).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
if (Compat.IsWindows) |
|
|
|
|
{ |
|
|
|
|
var setupSmPath = Path.Combine(installLocation, "setup", "setup_sm.py"); |
|
|
|
|
var setupText = """
|
|
|
|
|
import setup_windows |
|
|
|
@ -139,6 +141,15 @@ public class KohyaSs : BaseGitPackage
|
|
|
|
|
venvRunner.RunDetached("setup/setup_sm.py", onConsoleOutput); |
|
|
|
|
await venvRunner.Process.WaitForExitAsync().ConfigureAwait(false); |
|
|
|
|
} |
|
|
|
|
else if (Compat.IsLinux) |
|
|
|
|
{ |
|
|
|
|
venvRunner.RunDetached( |
|
|
|
|
"setup/setup_linux.py --platform-requirements-file=requirements_linux.txt --no_run_accelerate", |
|
|
|
|
onConsoleOutput |
|
|
|
|
); |
|
|
|
|
await venvRunner.Process.WaitForExitAsync().ConfigureAwait(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override async Task RunPackage( |
|
|
|
|
string installedPackagePath, |
|
|
|
|