mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-29 07:22:12 +03:00
Update src/diffusers/models/transformers/transformer_wan.py
This commit is contained in:
@@ -537,7 +537,7 @@ class WanPAGAttnProcessor2_0:
|
||||
query, key, value, attn_mask=attention_mask, dropout_p=0.0, is_causal=False
|
||||
)
|
||||
else:
|
||||
# Perturbed attention applied only when self-attention
|
||||
# Perturbed attention applied only to self-attention path
|
||||
hidden_states = value
|
||||
|
||||
hidden_states = hidden_states.transpose(1, 2).flatten(2, 3)
|
||||
|
||||
Reference in New Issue
Block a user