Browse Source

Merge pull request #515 from ionite34/downmerge

Downmerge
pull/495/head
Ionite 9 months ago committed by GitHub
parent
commit
a4234836c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGELOG.md
  2. 21
      StabilityMatrix.Avalonia/ViewModels/PackageManager/PackageExtensionBrowserViewModel.cs
  3. 5
      StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs
  4. 1
      StabilityMatrix.Core/Models/Packages/A3WebUI.cs
  5. 16
      StabilityMatrix.Core/Models/Packages/Extensions/GitPackageExtensionManager.cs

3
CHANGELOG.md

@ -6,10 +6,13 @@ 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). and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.8.2 ## v2.8.2
### Added
- Added missing GFPGAN link to Automatic1111 packages
### Fixed ### Fixed
- Fixed Inference Image to Image Denoise setting becoming hidden after changing schedulers - Fixed Inference Image to Image Denoise setting becoming hidden after changing schedulers
- Fixed Inference ControlNet models showing as downloadable even when they are already installed - Fixed Inference ControlNet models showing as downloadable even when they are already installed
- Fixed Inference Sampler Addon conditioning not applying (i.e. ControlNet) - Fixed Inference Sampler Addon conditioning not applying (i.e. ControlNet)
- Fixed extension modification dialog not showing any progress messages
## v2.8.1 ## v2.8.1
### Fixed ### Fixed

21
StabilityMatrix.Avalonia/ViewModels/PackageManager/PackageExtensionBrowserViewModel.cs

@ -179,7 +179,12 @@ public partial class PackageExtensionBrowserViewModel : ViewModelBase, IDisposab
.Cast<IPackageStep>() .Cast<IPackageStep>()
.ToArray(); .ToArray();
var runner = new PackageModificationRunner { ShowDialogOnStart = true }; var runner = new PackageModificationRunner
{
ShowDialogOnStart = true,
ModificationCompleteTitle = "Installed Extensions",
ModificationCompleteMessage = "Finished installing extensions"
};
EventManager.Instance.OnPackageInstallProgressAdded(runner); EventManager.Instance.OnPackageInstallProgressAdded(runner);
await runner.ExecuteSteps(steps); await runner.ExecuteSteps(steps);
@ -209,7 +214,12 @@ public partial class PackageExtensionBrowserViewModel : ViewModelBase, IDisposab
.Cast<IPackageStep>() .Cast<IPackageStep>()
.ToArray(); .ToArray();
var runner = new PackageModificationRunner { ShowDialogOnStart = true }; var runner = new PackageModificationRunner
{
ShowDialogOnStart = true,
ModificationCompleteTitle = "Updated Extensions",
ModificationCompleteMessage = "Finished updating extensions"
};
EventManager.Instance.OnPackageInstallProgressAdded(runner); EventManager.Instance.OnPackageInstallProgressAdded(runner);
await runner.ExecuteSteps(steps); await runner.ExecuteSteps(steps);
@ -239,7 +249,12 @@ public partial class PackageExtensionBrowserViewModel : ViewModelBase, IDisposab
.Cast<IPackageStep>() .Cast<IPackageStep>()
.ToArray(); .ToArray();
var runner = new PackageModificationRunner { ShowDialogOnStart = true }; var runner = new PackageModificationRunner
{
ShowDialogOnStart = true,
ModificationCompleteTitle = "Uninstalled Extensions",
ModificationCompleteMessage = "Finished uninstalling extensions"
};
EventManager.Instance.OnPackageInstallProgressAdded(runner); EventManager.Instance.OnPackageInstallProgressAdded(runner);
await runner.ExecuteSteps(steps); await runner.ExecuteSteps(steps);

5
StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs

@ -15,6 +15,11 @@ public class PackageModificationRunner : IPackageModificationRunner
ConsoleOutput.Add(report.Message); ConsoleOutput.Add(report.Message);
} }
if (!string.IsNullOrWhiteSpace(report.Title))
{
ConsoleOutput.Add(report.Title);
}
OnProgressChanged(report); OnProgressChanged(report);
}); });

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

@ -48,6 +48,7 @@ public class A3WebUI(
{ {
[SharedFolderType.StableDiffusion] = new[] { "models/Stable-diffusion" }, [SharedFolderType.StableDiffusion] = new[] { "models/Stable-diffusion" },
[SharedFolderType.ESRGAN] = new[] { "models/ESRGAN" }, [SharedFolderType.ESRGAN] = new[] { "models/ESRGAN" },
[SharedFolderType.GFPGAN] = new[] { "models/GFPGAN" },
[SharedFolderType.RealESRGAN] = new[] { "models/RealESRGAN" }, [SharedFolderType.RealESRGAN] = new[] { "models/RealESRGAN" },
[SharedFolderType.SwinIR] = new[] { "models/SwinIR" }, [SharedFolderType.SwinIR] = new[] { "models/SwinIR" },
[SharedFolderType.Lora] = new[] { "models/Lora" }, [SharedFolderType.Lora] = new[] { "models/Lora" },

16
StabilityMatrix.Core/Models/Packages/Extensions/GitPackageExtensionManager.cs

@ -155,13 +155,15 @@ public abstract class GitPackageExtensionManager(IPrerequisiteHelper prerequisit
{ {
cancellationToken.ThrowIfCancellationRequested(); cancellationToken.ThrowIfCancellationRequested();
progress?.Report(new ProgressReport(0f, $"Cloning {repositoryUri}", isIndeterminate: true)); progress?.Report(
new ProgressReport(0f, message: $"Cloning {repositoryUri}", isIndeterminate: true)
);
await prerequisiteHelper await prerequisiteHelper
.CloneGitRepository(cloneRoot, repositoryUri.ToString(), version) .CloneGitRepository(cloneRoot, repositoryUri.ToString(), version)
.ConfigureAwait(false); .ConfigureAwait(false);
progress?.Report(new ProgressReport(1f, $"Cloned {repositoryUri}")); progress?.Report(new ProgressReport(1f, message: $"Cloned {repositoryUri}"));
} }
} }
@ -191,7 +193,11 @@ public abstract class GitPackageExtensionManager(IPrerequisiteHelper prerequisit
.ConfigureAwait(false); .ConfigureAwait(false);
progress?.Report( progress?.Report(
new ProgressReport(0f, $"Updating git repository {repoPath.Name}", isIndeterminate: true) new ProgressReport(
0f,
message: $"Updating git repository {repoPath.Name}",
isIndeterminate: true
)
); );
// If version not provided, use current branch // If version not provided, use current branch
@ -206,7 +212,7 @@ public abstract class GitPackageExtensionManager(IPrerequisiteHelper prerequisit
.UpdateGitRepository(repoPath, remoteUrlResult.StandardOutput!.Trim(), version) .UpdateGitRepository(repoPath, remoteUrlResult.StandardOutput!.Trim(), version)
.ConfigureAwait(false); .ConfigureAwait(false);
progress?.Report(new ProgressReport(1f, $"Updated git repository {repoPath.Name}")); progress?.Report(new ProgressReport(1f, message: $"Updated git repository {repoPath.Name}"));
} }
} }
@ -233,5 +239,7 @@ public abstract class GitPackageExtensionManager(IPrerequisiteHelper prerequisit
await path.DeleteAsync().ConfigureAwait(false); await path.DeleteAsync().ConfigureAwait(false);
} }
} }
progress?.Report(new ProgressReport(1f, message: "Uninstalled extension"));
} }
} }

Loading…
Cancel
Save