From bd22ac51b324c9c384d705307b7a5df3d8d9bea0 Mon Sep 17 00:00:00 2001 From: JT Date: Mon, 18 Dec 2023 10:54:22 -0800 Subject: [PATCH] watever --- .../Inference/InferenceTextToImageViewModel.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs index ccfb3667..7a3afdf0 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs @@ -130,6 +130,11 @@ public class InferenceTextToImageViewModel : InferenceGenerationViewModelBase, I _ => Convert.ToUInt64(SeedCardViewModel.Seed) }; + if (!SamplerCardViewModel.IsDenoiseStrengthEnabled) + { + SamplerCardViewModel.DenoiseStrength = 1.0d; + } + BatchSizeCardViewModel.ApplyStep(args); // Load models @@ -233,6 +238,11 @@ public class InferenceTextToImageViewModel : InferenceGenerationViewModelBase, I ModelCardViewModel.LoadStateFromParameters(parameters); SeedCardViewModel.Seed = Convert.ToInt64(parameters.Seed); + + if (Math.Abs(SamplerCardViewModel.DenoiseStrength - 1.0d) > 0.01d) + { + SamplerCardViewModel.DenoiseStrength = 1.0d; + } } ///