# Provide CLIP embeddings directly to diffuser

**URL:** <https://discuss.huggingface.co/t/provide-clip-embeddings-directly-to-diffuser/49614>\
**Category:** Beginners\
**Created:** [August 5, 2023, 8:41pm UTC](https://discuss.huggingface.co/t/provide-clip-embeddings-directly-to-diffuser/49614 "2023-08-05T20:41:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guyross](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@guyross](https://discuss.huggingface.co/u/guyross)\
**Post date:** [August 5, 2023, 8:41pm UTC](https://discuss.huggingface.co/t/provide-clip-embeddings-directly-to-diffuser/49614/1 "2023-08-05T20:41:43Z")

</div>

Is there any way to provide the embeddings directly to the diffusion pipeline? I specifically want to provide CLIP embeddings coming from a different process, directly to the diffusion pipeline, in place of the text prompt, but I could not find any simple way to do it in the documentation.

Edit:  
After investigating the code I noticed the “prompt\_embeds” arg exists on the pipeline, but im still trying to pass in image embeddings from CLIP.

E.g  
pipeline(prompt=“a dog sitting on a bench”, image=img, mask\_image=mask\_image).images[0]

Instead of the “prompt”, I can provide clip embeddings.
