Skip to content

Commit ba1879f

Browse files
authored
Merge pull request LykosAI#1211 from ionite34/regional-prompt-fixes
Fixed Custom Sampler not using Temp conditioning from addons
2 parents c162a79 + 346a277 commit ba1879f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to Stability Matrix will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

8+
## v2.16.0-dev.3
9+
### Fixed
10+
- Fixed an issue where `Align Your Steps` scheduler and Unet Loader workflows ignored Regional Prompting (and other addon) conditioning modifiers.
11+
812
## v2.16.0-dev.2
913
### Added
1014
- Added Regional Prompting addon to Inference - paint detailed masks to apply different prompts, strengths, and settings to specific regions of your image

StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,14 @@ public void ApplyStepsInitialCustomSampler(ModuleApplyStepEventArgs e, bool useF
390390
new ComfyNodeBuilder.FluxGuidance
391391
{
392392
Name = e.Nodes.GetUniqueName(nameof(ComfyNodeBuilder.FluxGuidance)),
393-
Conditioning = e.Builder.Connections.GetRefinerOrBaseConditioning().Positive,
393+
Conditioning = e.Temp.GetRefinerOrBaseConditioning().Positive,
394394
Guidance = CfgScale,
395395
}
396396
);
397397

398398
e.Builder.Connections.Base.Conditioning = new ConditioningConnections(
399399
fluxGuidance.Output,
400-
e.Builder.Connections.GetRefinerOrBaseConditioning().Negative
400+
e.Temp.GetRefinerOrBaseConditioning().Negative
401401
);
402402

403403
// Guider
@@ -414,7 +414,7 @@ public void ApplyStepsInitialCustomSampler(ModuleApplyStepEventArgs e, bool useF
414414
}
415415
else
416416
{
417-
e.Builder.Connections.Base.Conditioning = e.Builder.Connections.GetRefinerOrBaseConditioning();
417+
e.Builder.Connections.Base.Conditioning = e.Temp.GetRefinerOrBaseConditioning();
418418

419419
var cfgGuider = e.Nodes.AddTypedNode(
420420
new ComfyNodeBuilder.CFGGuider

0 commit comments

Comments
 (0)