# Class-Conditional using Unet2DModel

**URL:** <https://discuss.huggingface.co/t/class-conditional-using-unet2dmodel/58278>\
**Category:** 🧨 Diffusers\
**Created:** [October 12, 2023, 9:34am UTC](https://discuss.huggingface.co/t/class-conditional-using-unet2dmodel/58278 "2023-10-12T09:34:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WiNE-iNEFF](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/wine-ineff/32/30221_2.png) [@WiNE-iNEFF](https://discuss.huggingface.co/u/WiNE-iNEFF)\
**Post date:** [October 12, 2023, 9:34am UTC](https://discuss.huggingface.co/t/class-conditional-using-unet2dmodel/58278/1 "2023-10-12T09:34:06Z")

</div>

Hello everyone.

I want to try create simpe model that can generate images from noise and class vector, but i can understant how to create this. I saw an article somewhere where it was said that Unet2DModel can be used for these purposes, but I don’t understand what parameters in the model configuration need to be configured for everything to work.

Thanks for any kind of help!
