diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e17f0d..6cab19b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ 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.8.2 +### Fixed +- Fixed Inference Image to Image Denoise setting becoming hidden after changing schedulers + ## v2.8.1 ### Fixed - Fixed model links not working in RuinedFooocus for new installations diff --git a/StabilityMatrix.Avalonia/Controls/Inference/SamplerCard.axaml b/StabilityMatrix.Avalonia/Controls/Inference/SamplerCard.axaml index d3f548a6..bc76841e 100644 --- a/StabilityMatrix.Avalonia/Controls/Inference/SamplerCard.axaml +++ b/StabilityMatrix.Avalonia/Controls/Inference/SamplerCard.axaml @@ -123,7 +123,13 @@ - + + + + + + + app.manifest true ./Assets/Icon.ico - 2.8.0-dev.999 + 2.9.0-dev.999 $(Version) true true diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs index 9337eeb3..ea47d2ad 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs @@ -114,14 +114,6 @@ public class InferenceTextToImageViewModel : InferenceGenerationViewModelBase, I SamplerCardViewModel.IsRefinerStepsEnabled = e.Sender is { IsRefinerSelectionEnabled: true, SelectedRefiner: not null }; }); - - SamplerCardViewModel - .WhenPropertyChanged(x => x.SelectedScheduler) - .Subscribe(e => - { - e.Sender.IsDenoiseStrengthEnabled = - e.Sender.SelectedScheduler?.DisplayName.Equals("SD Turbo") ?? false; - }); } /// diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs index 96b9de36..0ca83169 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs @@ -42,6 +42,12 @@ public partial class SamplerCardViewModel : LoadableViewModelBase, IParametersLo [ObservableProperty] private bool isDenoiseStrengthEnabled; + /// + /// Temporary enable for denoise strength, used for SDTurbo. + /// Denoise will be enabled if either this or is true. + /// + public bool IsDenoiseStrengthTempEnabled => SelectedScheduler == ComfyScheduler.SDTurbo; + [ObservableProperty] private double denoiseStrength = 0.7f; @@ -77,6 +83,7 @@ public partial class SamplerCardViewModel : LoadableViewModelBase, IParametersLo private bool isSchedulerSelectionEnabled; [ObservableProperty] + [NotifyPropertyChangedFor(nameof(IsDenoiseStrengthTempEnabled))] [Required] private ComfyScheduler? selectedScheduler = ComfyScheduler.Normal;