huggingface / huggingface/diffusers

How to use attention_mask and encoder_attention_mask or apply prompts to specific areas in the image?

Open
#11,176 3 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

Hi, I'm aware of the attention_mask and encoder_attention_mask that exist in the forward function of the UNet2DConditionModel yet there are no examples on how to use this

I would appreciate some help on that, thank you in advance
@patrickvonplaten @Birch-san

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.