Browse Source

Fix a few issues from github & placeholder text when deleting models

pull/512/head
JT 8 months ago
parent
commit
66fa815d6b
  1. 7
      CHANGELOG.md
  2. 1
      StabilityMatrix.Avalonia/ViewModels/CheckpointManager/CheckpointFile.cs
  3. 7
      StabilityMatrix.Core/Models/Packages/A3WebUI.cs
  4. 10
      StabilityMatrix.Core/Models/Packages/ComfyUI.cs
  5. 24
      StabilityMatrix.Core/Models/Packages/SDWebForge.cs

7
CHANGELOG.md

@ -5,6 +5,13 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.9.1
### Fixed
- Fixed [#502](https://github.com/LykosAI/StabilityMatrix/issues/502) - missing launch options for Forge
- Fixed [#500](https://github.com/LykosAI/StabilityMatrix/issues/500) - missing output images in Forge when using output sharing
- Fixed [#490](https://github.com/LykosAI/StabilityMatrix/issues/490) - `mpmath has no attribute 'rational'` error on macOS
- Fixed incorrect progress text when deleting a checkpoint from the Checkpoints page
## v2.9.0
### Added
- Added new package: [StableSwarmUI](https://github.com/Stability-AI/StableSwarmUI) by Stability AI

1
StabilityMatrix.Avalonia/ViewModels/CheckpointManager/CheckpointFile.cs

@ -120,6 +120,7 @@ public partial class CheckpointFile : ViewModelBase
if (File.Exists(FilePath))
{
IsLoading = true;
Progress = new ProgressReport(0f, "Deleting...");
try
{
await using var delay = new MinimumDelay(200, 500);

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

@ -97,6 +97,13 @@ public class A3WebUI(
DefaultValue = "7860",
Options = ["--port"]
},
new LaunchOptionDefinition
{
Name = "Share",
Type = LaunchOptionType.Bool,
Description = "Set whether to share on Gradio",
Options = { "--share" }
},
new()
{
Name = "VRAM",

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

@ -1,6 +1,5 @@
using System.Diagnostics;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using NLog;
using StabilityMatrix.Core.Attributes;
@ -221,7 +220,7 @@ public class ComfyUI(
{
TorchVersion.Cpu => "cpu",
TorchVersion.Cuda => "cu121",
TorchVersion.Rocm => "rocm5.6",
TorchVersion.Rocm => "rocm5.7",
_
=> throw new ArgumentOutOfRangeException(
nameof(torchVersion),
@ -232,9 +231,14 @@ public class ComfyUI(
)
};
if (torchVersion == TorchVersion.Cuda)
switch (torchVersion)
{
case TorchVersion.Cuda:
pipArgs = pipArgs.WithXFormers("==0.0.22.post4");
break;
case TorchVersion.Mps:
pipArgs = pipArgs.AddArg("mpmath==1.3.0");
break;
}
var requirements = new FilePath(installLocation, "requirements.txt");

24
StabilityMatrix.Core/Models/Packages/SDWebForge.cs

@ -52,6 +52,27 @@ public class SDWebForge(
public override List<LaunchOptionDefinition> LaunchOptions =>
[
new LaunchOptionDefinition
{
Name = "Host",
Type = LaunchOptionType.String,
DefaultValue = "localhost",
Options = ["--server-name"]
},
new LaunchOptionDefinition
{
Name = "Port",
Type = LaunchOptionType.String,
DefaultValue = "7860",
Options = ["--port"]
},
new LaunchOptionDefinition
{
Name = "Share",
Type = LaunchOptionType.Bool,
Description = "Set whether to share on Gradio",
Options = { "--share" }
},
new LaunchOptionDefinition
{
Name = "Always Offload from VRAM",
@ -155,4 +176,7 @@ public class SDWebForge(
await venvRunner.PipInstall(pipArgs, onConsoleOutput).ConfigureAwait(false);
progress?.Report(new ProgressReport(1f, "Install complete", isIndeterminate: false));
}
public override string? ExtraLaunchArguments { get; set; } =
$"--gradio-allowed-path \"{settingsManager.ImagesDirectory}\"";
}

Loading…
Cancel
Save