You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that 'prompt_embeds_tuple' is equal to '(prompt_embedding, negative_prompt_embeding)'. However, the 'negative_prompt_embeding' is None in this code. So I modify the above code as follows.
" if prompt_embeds_tuple[1] is None:
prompt_embeds = prompt_embeds_tuple[0]
elif prompt_embeds_tuple[0] is None:
prompt_embeds = prompt_embeds_tuple[1]
else:
prompt_embeds = torch.cat([prompt_embeds_tuple[1], prompt_embeds_tuple[0]])"
The text was updated successfully, but these errors were encountered:
A TypeError is thrown when I execute "run_eval_point_matching.py".
"/miniconda3/envs/dragdiff3/lib/python3.8/site-packages/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:307 in _encode_prompt
It seems that 'prompt_embeds_tuple' is equal to '(prompt_embedding, negative_prompt_embeding)'. However, the 'negative_prompt_embeding' is None in this code. So I modify the above code as follows.
" if prompt_embeds_tuple[1] is None:
prompt_embeds = prompt_embeds_tuple[0]
elif prompt_embeds_tuple[0] is None:
prompt_embeds = prompt_embeds_tuple[1]
else:
prompt_embeds = torch.cat([prompt_embeds_tuple[1], prompt_embeds_tuple[0]])"
The text was updated successfully, but these errors were encountered: