Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 0fc8516

Browse files
committed
Fix: PooledPrompt embeds not returned when guidance disabled
1 parent 7aeaf9f commit 0fc8516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OnnxStack.StableDiffusion/Services/PromptService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public async Task<PromptEmbeddingsResult> CreatePromptAsync(IModelOptions model,
6868
if (isGuidanceEnabled)
6969
return new PromptEmbeddingsResult(dualNegativePrompt.Concatenate(dualPrompt), pooledNegativePromptEmbeds.Concatenate(pooledPromptEmbeds));
7070

71-
return new PromptEmbeddingsResult(dualPrompt);
71+
return new PromptEmbeddingsResult(dualPrompt, pooledPromptEmbeds);
7272
}
7373

7474
if (isGuidanceEnabled)

0 commit comments

Comments
 (0)