Replies: 46 comments 113 replies
-
Open a terminal and cd into the stable-diffusion-webui folder. Then type venv/Scripts/activate. After that you can do your pip install things. But I don't know if that's the proper way to install it |
Beta Was this translation helpful? Give feedback.
-
Actually I also face this problem whether I reinstall or not. My Python3's version is 3.10.6. I am niot sure what happen here, but of course that needs to resolve again! /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release |
Beta Was this translation helpful? Give feedback.
-
Just follow the guide here,do exact same installations, and your xformers should work.
The last step will take more time, so be patient. |
Beta Was this translation helpful? Give feedback.
-
I believe that the instructions given would not work on Windows. I tried
to find the way to activate the venv using windows based on the files
downloaded and it may be in the Scripts folder as Activate.bat however when
I did that it didn't result in fixing this.
…On Mon, Dec 5, 2022 at 1:53 AM BunnyViking ***@***.***> wrote:
it didn't work for me, the last step errored out but it did at least tell
me there's some CUDA mismatch with pytorch so there's something
—
Reply to this email directly, view it on GitHub
<#5303 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJOZ4TVKYNTIN2DXTPJFGTWLW3TLANCNFSM6AAAAAASREOVJU>
.
You are receiving this because you commented.Message ID:
<AUTOMATIC1111/stable-diffusion-webui/repo-discussions/5303/comments/4311575
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
Like Dahvikiin said, adding --xformers to the command line arguments worked for installing xformers: |
Beta Was this translation helpful? Give feedback.
-
Also, once I am running, I get this constantly:
|
Beta Was this translation helpful? Give feedback.
-
Copy the error from beginning of launching to end, zip it and post it here?
Hent BlueMail til Android
Den 13. dec. 2022 17.16, fra 17.16, dipdeb ***@***.***> skrev:
…I did it but it also show error. then I posted in xformers github in
this
[link](#5695).
my lastest error is huge that I can't even posted as a comment in this
[link](https://pastebin.com/Kc3TdbTw).
now the webui_user.bat is taking forever by showing Installing
requirements for Web UI.
Before that it is working fine by showing No module 'xformers'.
Proceeding without it.
my cuda and torch version: 11.7.
graphics card rtx-3070
windows OS.
Please help.
--
Reply to this email directly or view it on GitHub:
#5303 (reply in thread)
You are receiving this because you commented.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Alright. I cleaned everything up, runninğonly Python 3.10.9 now. Everything is working, xformers installed. Just got this error.
|
Beta Was this translation helpful? Give feedback.
-
I am having this same issue, though, I found a section of the stable diffusion webui GitHub page that mentions adding --xformers to the args portion of the code in webui-user.bat. Upon doing that, when running the .bat file again it mentions that the xformers is not compatible and cannot be installed in the version of python being used. Edit: Updating the python install to 3.10.7 from 3.9.7 fixed this issue. |
Beta Was this translation helpful? Give feedback.
-
Same problem here. Solution for me was to edit webui_user.bat : set COMMANDLINE_ARGS=--reinstall-xformers --xformers Thats all. Now it works fine! |
Beta Was this translation helpful? Give feedback.
-
Got this error too. For my experience of SD webui, it often fails on downloading something when installing, but created broken files, so since there are some broken files in the folder, it won't download them again when you re-launch webui next time. So, you have to re-install this broken part to make it work. Manually re-install xformers into its own env is not easy. So, "--reinstall-xformers" is the argument you need if your xformers can not be found. But for what I tried, just "--reinstall-xformers" still doesn't work, some package will only be installed when you have "--reinstall-xformers --xformers" together. No idea, but this is the only way it works. And this webui project, should really check its code to make sure if some downloading failed, some files not with the right file size, it should re-download it again automatically. |
Beta Was this translation helpful? Give feedback.
-
To install a package using pip into a specific environment, you need to activate the environment first. Here's how you can install xformers into a virtual environment using virtualenv: Create a virtual environment: virtualenv env_name Activate the virtual environment: source env_name/bin/activate Install the package: pip install xformers Here's an example: virtualenv myenv After the installation, you can verify the package has been installed by using the pip list command. When you're done with the environment, you can deactivate it using deactivate. |
Beta Was this translation helpful? Give feedback.
-
I've tried adding --reinstall-xformers --xformers or just --xformers in webui-user.bat |
Beta Was this translation helpful? Give feedback.
-
I had same problem after reinstaling the software due of multiple script errors from old updates. |
Beta Was this translation helpful? Give feedback.
-
You can install xformers yourself, generally you should do so because xformers is tied to your torch and cuda version. You do this so:
(the last part is important as xformers require triton and of course it has to support pytorch 2) This takes a while because it compiles the binary files for xformers. Several minutes on my i7-13700KF. But you get a build of xformers that matches your environment exactly. It compiles about 370 mb of binaries as well as some other runtime stuff. Verify with:
(for me it reports triton as not available, I am checking this out right now) After this, you simply add to commandline_args: That said, this web ui does require quite a bit of Python knowledge to work well. This is not something you play with just because you like the idea of doing ai imagery - we're not quite at a regular user level yet. By the way, I suggest you upgrade CUDA to 11.8 and torch to 2.0 and set the runtime argument --opt-sdp-attention as this will run much faster than xformers (not sure if they work together). I also refer to this guide: #6932 |
Beta Was this translation helpful? Give feedback.
-
I have a question : |
Beta Was this translation helpful? Give feedback.
-
[vmajor] commented (#5898 (comment)) commandline_args = os.environ.get('COMMANDLINE_ARGS', "--xformers") WebUI does not look for xformers otherwise. It also seems to have installed its own version inside its own venv. |
Beta Was this translation helpful? Give feedback.
-
hi every one i fix the issue for LINUX USERS BY EDIT THIS FILE "stable-diffusion-webui/modules/launch_utils.py" |
Beta Was this translation helpful? Give feedback.
-
stable-diffusion-webui/modules/launch_utils.py xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.20') ./webui.sh --xformers worked - took a while - thanks @al-swaiti |
Beta Was this translation helpful? Give feedback.
-
I managed to fix it, moving the "venv" folder of the stable diffusion to another location (backup) then I added this line "--xformers" in the webui-user in set COMMANDLINE_ARGS, as soon as I executed it, it downloaded the necessary files from the "venv " again and it worked |
Beta Was this translation helpful? Give feedback.
-
I'm stuck with xformers, |
Beta Was this translation helpful? Give feedback.
-
is --xformers --reinstall-xformers not --reinstall-xformers this is really something, why I hate al these command line stuff, something so simple, and we all lose days behind this stuff. using --reinstall-xformers only throws "No module 'xformers'. Proceeding without it" |
Beta Was this translation helpful? Give feedback.
-
using command below resolved my problem
Refs from #5993 |
Beta Was this translation helpful? Give feedback.
-
No it was working fine (well sometimes the face would not swap) but I had
Roop also installed. I tried the fix and all she wrote
…On Wed, Sept 27, 2023, 3:38 p.m. Alex White ***@***.***> wrote:
You need windows sdk 10 or 11 too
—
Reply to this email directly, view it on GitHub
<#5303 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXS5XKZH6GTRF3C6PQTSHD3X4R6DDANCNFSM6AAAAAASREOVJU>
.
You are receiving this because you commented.Message ID:
<AUTOMATIC1111/stable-diffusion-webui/repo-discussions/5303/comments/7127084
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
For Linux users struggling to find a solution:Instead of passing export COMMANDLINE_ARGS="--xformers" Consider using it directly as a bash argument; this approach resolved the issue for me (below is an example of running it in a nautilus shortcut): gnome-terminal -- bash -c "./Stable_Diffusion/webui.sh --xformers; exec bash" |
Beta Was this translation helpful? Give feedback.
-
KEEP ONLY '--xformers'I've just removed all arguments except --xformers |
Beta Was this translation helpful? Give feedback.
-
Hey, I've been installing A1111 stable diffusion for a long time and have seen discussions on this page several times at different times. I don't really understand coding so I just looked at tutorials for AI When I wrote this there were already many posts from others to solve the problem. And some of them really solved my problem, like at the beginning of the post which shows how to install the exact pytorch. or like set command arguments --xformers. and others. I just want to give a little of my experience and add an alternative method because after 6 months of not using stable diffusion I experienced the same problem but it couldn't be solved in the same way (its weird). Things to pay attention to are: and my addition is. Maybe you are running the webui incorrectly.example: you set arguments in webui-user.bat but you run webui.bat. then your argument won't work. You have to run webui-user.bat by running as administrator. Maybe this is a small mistake, but it is very influential. As I was going through, I saw some tutorials that showed running webui.bat so I just ran that, apparently my "set Command arguments" wasn't working. and the simplest way to solve everything is, you reinstall your stable diffusion by deleting venv and repositories files. then everything will be reinstalled according to the default then you can adjust other things such as python, Cuda, or C++ Microsoft Visual Studio. note: If there is an error please correct it. |
Beta Was this translation helpful? Give feedback.
-
xformers) updated their install instructions. It was necessary to use one that matched the torch version requirements. In addition to using |
Beta Was this translation helpful? Give feedback.
-
I am up to date, but how do I install 'xformers'? I know it's
pip install xformers
How do I install it into the environment?Beta Was this translation helpful? Give feedback.
All reactions