File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/diffusers/pipelines/kandinsky5 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -684,13 +684,13 @@ def __call__(
684684 f"`negative_prompt` must have same length as `prompt`. Got { len (negative_prompt )} vs { len (prompt )} ."
685685 )
686686
687- negative_prompt_embeds_dict , negative_cu_seqlens = self . encode_prompt (
688- prompt = negative_prompt ,
689- num_videos_per_prompt = num_videos_per_prompt ,
690- max_sequence_length = max_sequence_length ,
691- device = device ,
692- dtype = dtype ,
693- )
687+ if negative_prompt_embeds_qwen is None :
688+ negative_prompt_embeds_qwen , negative_prompt_embeds_clip , negative_cu_seqlens = self . encode_prompt (
689+ prompt = negative_prompt ,
690+ max_sequence_length = max_sequence_length ,
691+ device = device ,
692+ dtype = dtype ,
693+ )
694694
695695 # 4. Prepare timesteps
696696 self .scheduler .set_timesteps (num_inference_steps , device = device )
You can’t perform that action at this time.
0 commit comments