Skip to content

Commit 56f7d63

Browse files
committed
Guidance for not turbo models
1 parent 39b5ba3 commit 56f7d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TensorStack.StableDiffusion/Pipelines/Nitro/NitroBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected async Task<PromptResult> CreatePromptAsync(IPipelineOptions options, C
139139

140140
// Unconditional prompt
141141
var negativePromptEmbeds = default(Tensor<float>);
142-
if (!string.IsNullOrEmpty(options.NegativePrompt))
142+
if (Transformer.ModelType != ModelType.Turbo)
143143
{
144144
negativePromptEmbeds = await TextEncoder.GetLastHiddenState(new TextGeneration.Common.GenerateOptions
145145
{
@@ -352,7 +352,7 @@ protected override GenerateOptions ConfigureDefaultOptions()
352352
Shift = 1f,
353353
Width = 512,
354354
Height = 512,
355-
GuidanceScale = 0f,
355+
GuidanceScale = 4f,
356356
Scheduler = SchedulerType.FlowMatchEulerDiscrete
357357
};
358358

0 commit comments

Comments
 (0)