Browse Source

Remove negative prompt expansion

pull/495/head
Ionite 9 months ago
parent
commit
20e28d0443
No known key found for this signature in database
  1. 13
      StabilityMatrix.Avalonia/ViewModels/Inference/Modules/PromptExpansionModule.cs
  2. 3
      StabilityMatrix.Avalonia/ViewModels/Inference/PromptExpansionCardViewModel.cs

13
StabilityMatrix.Avalonia/ViewModels/Inference/Modules/PromptExpansionModule.cs

@ -32,17 +32,8 @@ public class PromptExpansionModule : ModuleBase
Name = e.Nodes.GetUniqueName("PromptExpansion_Positive"),
ModelName = model.RelativePath,
Text = e.Builder.Connections.PositivePrompt,
Seed = e.Builder.Connections.Seed
}
).Output;
e.Builder.Connections.NegativePrompt = e.Nodes.AddTypedNode(
new ComfyNodeBuilder.PromptExpansion
{
Name = e.Nodes.GetUniqueName("PromptExpansion_Negative"),
ModelName = model.RelativePath,
Text = e.Builder.Connections.NegativePrompt,
Seed = e.Builder.Connections.Seed
Seed = e.Builder.Connections.Seed,
LogPrompt = promptExpansionCard.IsLogOutputEnabled
}
).Output;
}

3
StabilityMatrix.Avalonia/ViewModels/Inference/PromptExpansionCardViewModel.cs

@ -26,6 +26,9 @@ public partial class PromptExpansionCardViewModel(
[ObservableProperty]
private HybridModelFile? selectedModel;
[ObservableProperty]
private bool isLogOutputEnabled = true;
[RelayCommand]
private async Task RemoteDownload(HybridModelFile? model)
{

Loading…
Cancel
Save