Skip to content

Commit 07822f0

Browse files
committed
Back to transient for most & merge GGUF model loader into Unet
1 parent 10c0273 commit 07822f0

37 files changed

+49
-44
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
1313
- Added Prompt Amplifier to Inference - click the magic wand 🪄 in the prompt editor to expand and enrich your ideas. Tailor the vibe with the ‘Feel’ selector and watch as your generations come to life with extra detail, coherence, and flair!
1414
### Changed
1515
- Updated install for kohya_ss to support RTX 5000-series GPUs
16+
- (pre.2 re-release) Merged Inference GGUF workflows into the UNet model loader option (no longer need to choose GGUF separately)
1617
### Fixed
1718
- Fixed Inference ControlNet Preprocessors using incorrect resolution and increased maximum of smallest dimension to 16384
1819
- Fixed Triton/Sage install option showing for incompatible GPUs
1920
- Fixed errors from invalid pip specifiers in requirements files
2021
- Fixed package images sometimes showing as blank due to concurrent image caching. Requests to same image resources are now de-duplicated
22+
- (pre.2 re-release) Fixed Inference Extra Networks card not allowing for more than one model at a time
2123
### Supporters
2224
#### Visionaries
2325
- Big shout-out to our Visionary-tier patrons: Waterclouds, Corey T, bluepopsicle, and Bob S! Your steadfast support keeps Stability Matrix moving forward, and we couldn’t do it without you. 🚀 Thank you!

StabilityMatrix.Avalonia/ViewModels/Inference/BatchSizeCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
1111

1212
[View(typeof(BatchSizeCard))]
1313
[ManagedService]
14-
[RegisterScoped<BatchSizeCardViewModel>]
14+
[RegisterTransient<BatchSizeCardViewModel>]
1515
public partial class BatchSizeCardViewModel : LoadableViewModelBase, IComfyStep
1616
{
1717
[NotifyDataErrorInfo]

StabilityMatrix.Avalonia/ViewModels/Inference/ControlNetCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
2121

2222
[View(typeof(ControlNetCard))]
2323
[ManagedService]
24-
[RegisterScoped<ControlNetCardViewModel>]
24+
[RegisterTransient<ControlNetCardViewModel>]
2525
public partial class ControlNetCardViewModel : LoadableViewModelBase
2626
{
2727
public const string ModuleKey = "ControlNet";

StabilityMatrix.Avalonia/ViewModels/Inference/DiscreteModelSamplingCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
99

1010
[View(typeof(DiscreteModelSamplingCard))]
1111
[ManagedService]
12-
[RegisterScoped<DiscreteModelSamplingCardViewModel>]
12+
[RegisterTransient<DiscreteModelSamplingCardViewModel>]
1313
public partial class DiscreteModelSamplingCardViewModel : LoadableViewModelBase
1414
{
1515
public const string ModuleKey = "DiscreteModelSampling";

StabilityMatrix.Avalonia/ViewModels/Inference/FaceDetailerViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
1515

1616
[View(typeof(FaceDetailerCard))]
1717
[ManagedService]
18-
[RegisterScoped<FaceDetailerViewModel>]
18+
[RegisterTransient<FaceDetailerViewModel>]
1919
public partial class FaceDetailerViewModel : LoadableViewModelBase
2020
{
2121
private readonly IServiceManager<ViewModelBase> vmFactory;

StabilityMatrix.Avalonia/ViewModels/Inference/FreeUCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
99

1010
[View(typeof(FreeUCard))]
1111
[ManagedService]
12-
[RegisterScoped<FreeUCardViewModel>]
12+
[RegisterTransient<FreeUCardViewModel>]
1313
public partial class FreeUCardViewModel : LoadableViewModelBase
1414
{
1515
public const string ModuleKey = "FreeU";

StabilityMatrix.Avalonia/ViewModels/Inference/ImageFolderCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
3737

3838
[View(typeof(ImageFolderCard))]
3939
[ManagedService]
40-
[RegisterScoped<ImageFolderCardViewModel>]
40+
[RegisterTransient<ImageFolderCardViewModel>]
4141
public partial class ImageFolderCardViewModel : DisposableViewModelBase
4242
{
4343
private readonly ILogger<ImageFolderCardViewModel> logger;

StabilityMatrix.Avalonia/ViewModels/Inference/ImageGalleryCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace StabilityMatrix.Avalonia.ViewModels.Inference;
2525

2626
[View(typeof(ImageGalleryCard))]
2727
[ManagedService]
28-
[RegisterScoped<ImageGalleryCardViewModel>]
28+
[RegisterTransient<ImageGalleryCardViewModel>]
2929
public partial class ImageGalleryCardViewModel : ViewModelBase
3030
{
3131
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();

StabilityMatrix.Avalonia/ViewModels/Inference/InferenceImageToImageViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ protected override void BuildPrompt(BuildPromptEventArgs args)
7777
PromptCardViewModel.ApplyStep(applyArgs);
7878

7979
// Setup Sampler and Refiner if enabled
80-
var isUnetLoader = ModelCardViewModel.SelectedModelLoader is ModelLoader.Gguf or ModelLoader.Unet;
80+
var isUnetLoader =
81+
ModelCardViewModel.SelectedModelLoader is ModelLoader.Unet || ModelCardViewModel.IsGguf;
8182
if (isUnetLoader)
8283
{
8384
SamplerCardViewModel.ApplyStepsInitialCustomSampler(applyArgs, true);

StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected override void BuildPrompt(BuildPromptEventArgs args)
168168
// Load models
169169
ModelCardViewModel.ApplyStep(applyArgs);
170170

171-
var isUnetLoader = ModelCardViewModel.SelectedModelLoader is ModelLoader.Gguf or ModelLoader.Unet;
171+
var isUnetLoader = ModelCardViewModel.SelectedModelLoader is ModelLoader.Unet;
172172
var useSd3Latent =
173173
SamplerCardViewModel.ModulesCardViewModel.IsModuleEnabled<FluxGuidanceModule>() || isUnetLoader;
174174
var usePlasmaNoise = SamplerCardViewModel.ModulesCardViewModel.IsModuleEnabled<PlasmaNoiseModule>();

0 commit comments

Comments
 (0)