-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[bug]: AttributeError: module 'diffusers.models.attention' has no attribute 'CrossAttention' #3182
Comments
same error message for me on a Linux System when running |
I also encountered the same error when using invokeai-configure in manual installation mode on my Mac Mini M2. |
This seems global. |
Got the same issue on Win10. Tried to install Invoke AI on a fresh (clean) Win11 installation, there I get the same blocking error. |
Same problem ! |
I'm also having this Issue. |
I solved it by downloading the Source code (zip) file, then changing the diffusers version to 0.14.0 at the pyproject.toml file, and then going to the installer folder, and generating a new installer file by running the create_installer.sh script |
same problem here |
Same problem on fresh install |
I've the same problem on fresh install on Windows 11 Pro (22H2 - 22621.1555). |
Same problem fresh install with fresh python 10.9 or 10.10. |
This is because of recent update of diffusers. Just downgrade it: |
Did it in the invokeai's venv and it seemed to help. No issues so far. The full fix:
|
I did it and it didn't work. Perhaps I'm not doing anything correctly, I don't understand what the first line means. Second command run OK and did bunch of things, but I still get the same error. I have deleted the old InvokeAI installation and I'm trying to install it from scratch to d:\InvokeAI\ but I get the same error. |
OK, so here's a full fix for those who like me don't know how to use Python properly.
|
Credit: StAlKeR7779 on the Invoker Discord |
I did try to update the code to use what the deprecated warning said and that got me past this error during installation but then after trying to load the tool I ran into another error So I just decided to do a clean install of the latest alpha and we will see how that goes. if anyone else wants to try below is what I did. in the
to:
Edit: as others have mentioned I can confirm on my end going into command prompt and going to the scripts folder in the venv and running |
Took a couple of tries but this indeed works :D |
Folks, this is the result of the |
New release to fix this issue: https://github.com/invoke-ai/InvokeAI/releases/tag/v2.3.4.post1 |
If this has been fixed should this issue be closed? |
Tested the new release 2.3.4.post1 on Windows 11 Pro and the installation worked for me where I previously encountered that issue. |
Yes,
Thank you
…___________________________________
----- Mail original -----
De: "Void2258" ***@***.***>
À: "invoke-ai/InvokeAI" ***@***.***>
Cc: "gardunorr" ***@***.***>, "Comment" ***@***.***>
Envoyé: Vendredi 14 Avril 2023 16:21:34
Objet: Re: [invoke-ai/InvokeAI] [bug]: AttributeError: module 'diffusers.models.attention' has no attribute 'CrossAttention' (Issue #3182)
If this has been fixed should this issue be closed?
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you commented. Message ID: <invoke-ai/InvokeAI/issues/3182/1508630101 @ github . com>
|
Yes, it is fixed. I just left the issue open for a bit so that people could
see the message at the bottom that the issue was resolved.
|
## Justification Closes issue #352 This update makes the Dockerfiles OCI compliant, making it easier to use Buildah or other image building techniques that require it ## Implementation This changes a few things, listed below: * auto: Download container is switched to alpine. The `git` container specified the `/git` directory as a volume. As such, all the files under `/git` would be lost after each script invoke. Alpine is used later in the build process anyway, so it shouldn't be any extra cost to switch to it * auto: "New" clone.sh script is copied into the container, which is basically just the previous clone script that was embedded in the Dockerfile. * all: `<<EOF` heredoc styles have been switched to `&& \` * all: I added NVIDIA_DRIVER_CAPABILITIES and NVIDIA_VISIBLE_DEVICES to expose my Nvidia card. This is most likely a selinux/podman problem, but shouldn't change anything with docker to add it. * docker-compose: I added selinux labeling. I tested this with real docker (not just podman!) and it seems to work fine. Though I suggest you try it too. ## Testing Locally builds with buildah. Note: for caching to work properly, you still need to replace `/root/.cache/pip` with `/root/.cache/pip,Z` on selinux systems. Note: I was having some trouble running invoke. Thought it was this PR, but it's a known issue. See invoke-ai/InvokeAI#3182 --------- Co-authored-by: AbdBarho <ka70911@gmail.com>
On macbook m2 ventura i still get AttributeError: module 'diffusers.models.attention' has no attribute 'CrossAttention' |
Could you provide the steps needed to reproduce the error? |
## Justification Closes issue AbdBarho#352 This update makes the Dockerfiles OCI compliant, making it easier to use Buildah or other image building techniques that require it ## Implementation This changes a few things, listed below: * auto: Download container is switched to alpine. The `git` container specified the `/git` directory as a volume. As such, all the files under `/git` would be lost after each script invoke. Alpine is used later in the build process anyway, so it shouldn't be any extra cost to switch to it * auto: "New" clone.sh script is copied into the container, which is basically just the previous clone script that was embedded in the Dockerfile. * all: `<<EOF` heredoc styles have been switched to `&& \` * all: I added NVIDIA_DRIVER_CAPABILITIES and NVIDIA_VISIBLE_DEVICES to expose my Nvidia card. This is most likely a selinux/podman problem, but shouldn't change anything with docker to add it. * docker-compose: I added selinux labeling. I tested this with real docker (not just podman!) and it seems to work fine. Though I suggest you try it too. ## Testing Locally builds with buildah. Note: for caching to work properly, you still need to replace `/root/.cache/pip` with `/root/.cache/pip,Z` on selinux systems. Note: I was having some trouble running invoke. Thought it was this PR, but it's a known issue. See invoke-ai/InvokeAI#3182 --------- Co-authored-by: AbdBarho <ka70911@gmail.com>
## Justification Closes issue AbdBarho#352 This update makes the Dockerfiles OCI compliant, making it easier to use Buildah or other image building techniques that require it ## Implementation This changes a few things, listed below: * auto: Download container is switched to alpine. The `git` container specified the `/git` directory as a volume. As such, all the files under `/git` would be lost after each script invoke. Alpine is used later in the build process anyway, so it shouldn't be any extra cost to switch to it * auto: "New" clone.sh script is copied into the container, which is basically just the previous clone script that was embedded in the Dockerfile. * all: `<<EOF` heredoc styles have been switched to `&& \` * all: I added NVIDIA_DRIVER_CAPABILITIES and NVIDIA_VISIBLE_DEVICES to expose my Nvidia card. This is most likely a selinux/podman problem, but shouldn't change anything with docker to add it. * docker-compose: I added selinux labeling. I tested this with real docker (not just podman!) and it seems to work fine. Though I suggest you try it too. ## Testing Locally builds with buildah. Note: for caching to work properly, you still need to replace `/root/.cache/pip` with `/root/.cache/pip,Z` on selinux systems. Note: I was having some trouble running invoke. Thought it was this PR, but it's a known issue. See invoke-ai/InvokeAI#3182 --------- Co-authored-by: AbdBarho <ka70911@gmail.com>
|
Just simply try "pip install diffusers<=0.16.0", which works for me. |
It works ! Thank you ! |
Is there an existing issue for this?
OS
Windows
GPU
cuda
VRAM
24GB
What version did you experience this issue on?
2.3.4
What happened?
It was installing without problems, when it was time to run it gave that error.
Screenshots
Additional context
It happens when I try to run it.
Contact Details
No response
The text was updated successfully, but these errors were encountered: