-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'CrossAttention' from 'diffusers.models.attention' #32
Comments
Had the same problem. Downgrading Maybe they moved the cross attention module. |
thank you very much! |
hello, Sibensberg
Sorry to bother you!
I would like to ask if you successfully ran pix2pix-zero? Can you share the specific environment version, including the Python version?
I use the official environment.yml installation environment, but the specific package version and Python version are not given. I installed python3.11, so problems often occur. Can't run this code successfully
Sorry again for bothering you, wish you a happy life!
At 2023-08-29 19:46:00, "SiBensberg" ***@***.***> wrote:
Had the same problem. Downgrading `diffusers`` to version 0.14 did the trick:
python -m pip install diffusers==0.14.0
Maybe they moved the cross attention module.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I try python version 3.8, diffusers==0.12.0 spacy==3.4.4 Pydantic==1.10.8. Maybe it could be helpful. |
Hi @wangzhen-ing, |
It looks like they changed the name of CrossAttention to Attention. Not sure if these are the only changes but so far you need to fix the following: |
when I run this program“edit_real”, I met question:
ImportError: cannot import name 'CrossAttention' from 'diffusers.models.attention'
how to solve this question
The text was updated successfully, but these errors were encountered: