huggingface / huggingface/diffusers
How to use attention_mask and encoder_attention_mask or apply prompts to specific areas in the image?
- Vorherrschende Sprache
- Python
- Sterne
- 34.5k
- Forks
- 7.3k
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Beginne mit der forward-Funktion von UNet2DConditionModel und untersuche die im Issue erwähnten Parameter attention_mask und encoder_attention_mask. Ermittle, welche Nutzungshinweise oder Beispiele erforderlich sind, um Prompts auf bestimmte Bildbereiche anzuwenden; abgeschlossen ist die Aufgabe, wenn das unterstützte Verhalten eindeutig mit einem nutzbaren Beispiel dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, pytorch
- Bereich
- documentation, machine-learning
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100