Browse Source

watever

pull/341/head
JT 11 months ago
parent
commit
bd22ac51b3
  1. 10
      StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs

10
StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs

@ -130,6 +130,11 @@ public class InferenceTextToImageViewModel : InferenceGenerationViewModelBase, I
_ => Convert.ToUInt64(SeedCardViewModel.Seed) _ => Convert.ToUInt64(SeedCardViewModel.Seed)
}; };
if (!SamplerCardViewModel.IsDenoiseStrengthEnabled)
{
SamplerCardViewModel.DenoiseStrength = 1.0d;
}
BatchSizeCardViewModel.ApplyStep(args); BatchSizeCardViewModel.ApplyStep(args);
// Load models // Load models
@ -233,6 +238,11 @@ public class InferenceTextToImageViewModel : InferenceGenerationViewModelBase, I
ModelCardViewModel.LoadStateFromParameters(parameters); ModelCardViewModel.LoadStateFromParameters(parameters);
SeedCardViewModel.Seed = Convert.ToInt64(parameters.Seed); SeedCardViewModel.Seed = Convert.ToInt64(parameters.Seed);
if (Math.Abs(SamplerCardViewModel.DenoiseStrength - 1.0d) > 0.01d)
{
SamplerCardViewModel.DenoiseStrength = 1.0d;
}
} }
/// <inheritdoc /> /// <inheritdoc />

Loading…
Cancel
Save