# Best way to add conditions to diffusion model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-conditions-to-diffusion-model%2F41930%3E%5C
**Category:** 🧨 Diffusers\
**Created:** [June 3, 2023, 2:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-conditions-to-diffusion-model%2F41930 "2023-06-03T02:40:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sachin/32/26534_2.png) [@sachin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsachin)%5C
**Post date:** [June 3, 2023, 2:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-conditions-to-diffusion-model%2F41930%2F1 "2023-06-03T02:40:01Z")

</div>

I wish to add a non-textual condition to the UNet and fine tune stable diffusion. What is the best way to do so? One way I am currently thinking of is to add it to the time embedding and pass it through the UNet. Wondering if there was a better way.

While I’m at it, how can I modify the time embedding? In `UNet2DConditionModel` there doesn’t seem to be a straightforward way of doing so.
