How on earth can I install xformers? #9802
-
When I run webui-user.bat, it always pops out No module 'xformers'. Proceeding without it. 1.In launch.py 2.in webui-user.bat,
However, the problem continues, still shows No module 'xformers'. Proceeding without it.
I went to the torchvision\io folder and I found that image.pyd actually exist! PS: I've disabled auto update on launch manully to save time for a month. Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
I just used this in my command line and xformers installed automatically. You have to start it this way each time as well. It's really that simple thank goodness! webui.bat --xformers |
Beta Was this translation helpful? Give feedback.
-
You can update torch the same way. set COMMANDLINE_ARGS=--reinstall-torch
set TORCH_COMMAND=pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu118 |
Beta Was this translation helpful? Give feedback.
-
if you are trying to make the new updates work using "git pull" it doesn't work I've made a clean install of the recent version and everything appears to works fine. xformer also got installed correctly when adding the line to the webui bat file using git pull on the older install just created lot of issues, pytorch 2 didn't wanted to install, the 0.17 version of xformers also didn't wanted to install. |
Beta Was this translation helpful? Give feedback.
-
This method works well for me (If you are using Nvidia gpu):
|
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.
The dreambooth dev insists on screwing with dependencies (there's probably no reason it needs 0.0.17 in particular). Adding this to
webui-user.bat
should fix it:(remove
--reinstall-xformers
) afterwards)Or you can remove dreambooth and try kohya_ss instead. It's a separate program with its own venv, so it won't cause dependency conflicts like this.