UnboundLocalError: local variable 'attn_probs' referenced before assignment
howardgriffin opened this issue · comments
howardgriffin commented
How to solve this problem?
howardgriffin commented
Btw, I have installed xformers. When I setting this line https://github.com/SongweiGe/rich-text-to-image/blob/7780c3784e27aa803d6e5138807409e6d2973891/models/attention.py#L449 to False, everything goes OK
Songwei Ge commented
Thanks for reporting this. The xformer option was inherited from the diffusers codebase. The current implementation does not support xformer attention as we need to manipulate attention_probs.