From d0e41f0038be5dd3f957571495541a381a76ca83 Mon Sep 17 00:00:00 2001 From: Aiden Yoon <44089734+yansigit@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:23:29 -0700 Subject: [PATCH] add backup logic for sampler --- .../ViewModels/Inference/SamplerCardViewModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs index 85892322..d8c35d8d 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs @@ -484,6 +484,12 @@ out var res ) ? res : null; + + if (sampler is null && SelectedSampler is not null && SelectedScheduler is not null) + { + sampler = $"{SelectedSampler?.DisplayName} {SelectedScheduler?.DisplayName}"; + } + return parameters with { Width = Width,