Skip to content

Commit 405d9c2

Browse files
committed
removed concat of prompt embeds in loop body
1 parent 9eb359d commit 405d9c2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p1.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,6 @@ def loop_body(step, vals):
283283

284284
prompt_embeds_input = prompt_embeds
285285
image_embeds_input = image_embeds
286-
if do_classifier_free_guidance:
287-
prompt_embeds_input = jnp.concatenate([prompt_embeds, negative_prompt_embeds], axis=0)
288-
if image_embeds is not None:
289-
image_embeds_input = jnp.concatenate([image_embeds, image_embeds], axis=0)
290286
print(f"[DEBUG LOOP {step}] prompt_embeds_input local shape: {prompt_embeds_input.shape}")
291287
print(f"[DEBUG LOOP {step}] image_embeds_input local shape: {image_embeds_input.shape}")
292288

0 commit comments

Comments
 (0)