|
|
@ -42,6 +42,12 @@ public partial class SamplerCardViewModel : LoadableViewModelBase, IParametersLo |
|
|
|
[ObservableProperty] |
|
|
|
[ObservableProperty] |
|
|
|
private bool isDenoiseStrengthEnabled; |
|
|
|
private bool isDenoiseStrengthEnabled; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Temporary enable for denoise strength, used for SDTurbo. |
|
|
|
|
|
|
|
/// Denoise will be enabled if either this or <see cref="IsDenoiseStrengthEnabled"/> is true. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
public bool IsDenoiseStrengthTempEnabled => SelectedScheduler == ComfyScheduler.SDTurbo; |
|
|
|
|
|
|
|
|
|
|
|
[ObservableProperty] |
|
|
|
[ObservableProperty] |
|
|
|
private double denoiseStrength = 0.7f; |
|
|
|
private double denoiseStrength = 0.7f; |
|
|
|
|
|
|
|
|
|
|
@ -77,6 +83,7 @@ public partial class SamplerCardViewModel : LoadableViewModelBase, IParametersLo |
|
|
|
private bool isSchedulerSelectionEnabled; |
|
|
|
private bool isSchedulerSelectionEnabled; |
|
|
|
|
|
|
|
|
|
|
|
[ObservableProperty] |
|
|
|
[ObservableProperty] |
|
|
|
|
|
|
|
[NotifyPropertyChangedFor(nameof(IsDenoiseStrengthTempEnabled))] |
|
|
|
[Required] |
|
|
|
[Required] |
|
|
|
private ComfyScheduler? selectedScheduler = ComfyScheduler.Normal; |
|
|
|
private ComfyScheduler? selectedScheduler = ComfyScheduler.Normal; |
|
|
|
|
|
|
|
|
|
|
|