Browse Source

Add console output to pip install calls

pull/55/head
Ionite 1 year ago
parent
commit
8403a7b261
No known key found for this signature in database
  1. 2
      StabilityMatrix.Core/Models/Packages/A3WebUI.cs
  2. 2
      StabilityMatrix.Core/Models/Packages/ComfyUI.cs
  3. 4
      StabilityMatrix.Core/Models/Packages/VladAutomatic.cs

2
StabilityMatrix.Core/Models/Packages/A3WebUI.cs

@ -159,7 +159,7 @@ public class A3WebUI : BaseGitPackage
{
progress?.Report(new ProgressReport(-1, "Installing PyTorch for CPU", isIndeterminate: true));
Logger.Info("Starting torch install (CPU)...");
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu);
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu, InstallLocation, OnConsoleOutput);
}
// Install requirements file

2
StabilityMatrix.Core/Models/Packages/ComfyUI.cs

@ -121,7 +121,7 @@ public class ComfyUI : BaseGitPackage
{
progress?.Report(new ProgressReport(-1, "Installing PyTorch for CPU", isIndeterminate: true));
Logger.Info("Starting torch install (CPU)...");
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu);
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu, InstallLocation, OnConsoleOutput);
}
// Install requirements file

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

@ -161,12 +161,12 @@ public class VladAutomatic : BaseGitPackage
else if (gpus.Any(g => g.IsAmd))
{
Logger.Info("Starting torch install (DirectML)...");
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsDirectML);
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsDirectML, InstallLocation, OnConsoleOutput);
}
else
{
Logger.Info("Starting torch install (CPU)...");
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu);
await venvRunner.PipInstall(PyVenvRunner.TorchPipInstallArgsCpu, InstallLocation, OnConsoleOutput);
}
// Install requirements file

Loading…
Cancel
Save