We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f31142 commit c16761eCopy full SHA for c16761e
examples/community/clip_guided_stable_diffusion.py
@@ -284,7 +284,7 @@ def __call__(
284
# perform clip guidance
285
if clip_guidance_scale > 0:
286
text_embeddings_for_guidance = (
287
- text_embeddings.chunk(2)[0] if do_classifier_free_guidance else text_embeddings
+ text_embeddings.chunk(2)[1] if do_classifier_free_guidance else text_embeddings
288
)
289
noise_pred, latents = self.cond_fn(
290
latents,
0 commit comments