Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.Collections.Generic;
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
using StabilityMatrix.Avalonia.Controls;
|
|
|
|
using StabilityMatrix.Avalonia.Services;
|
|
|
|
using StabilityMatrix.Core.Attributes;
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Avalonia.ViewModels.Inference;
|
|
|
|
|
|
|
|
[View(typeof(SamplerCard))]
|
|
|
|
public partial class SamplerCardViewModel : ViewModelBase
|
|
|
|
{
|
|
|
|
[ObservableProperty] private int steps;
|
|
|
|
[ObservableProperty] private double cfgScale;
|
|
|
|
[ObservableProperty] private int width;
|
|
|
|
[ObservableProperty] private int height;
|
|
|
|
|
|
|
|
[ObservableProperty] private string? selectedSampler;
|
|
|
|
|
|
|
|
public IInferenceClientManager ClientManager { get; }
|
|
|
|
|
|
|
|
public SamplerCardViewModel(IInferenceClientManager clientManager)
|
|
|
|
{
|
|
|
|
ClientManager = clientManager;
|
|
|
|
}
|
|
|
|
}
|