huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
25.42k stars 5.27k forks source link

duplicate assignment for hidden_states at models/attention_processor.py:1142 #8803

Closed 131131yhx closed 2 months ago

131131yhx commented 3 months ago

Describe the bug

duplicate assignment for hidden_states at models/attention_processor.py:1142

Reproduction

N/A

Logs

No response

System Info

N/A

Who can help?

No response

tolgacangoz commented 3 months ago

Hi, thank you for mentioning this! If you are referencing this line, I have proposed to simplify it in my PR.

yiyixuxu commented 2 months ago

fixed in https://github.com/huggingface/diffusers/pull/8569