Stable Diffusion and AUTOMATIC1111

Stable Diffusion and AUTOMATIC1111

Jul 28, 2024

Stable Diffusion and AUTOMATIC1111

Up to now I worked with the webUI Easy Diffusion [1]. The installation was easy and the results as expected. Based on some articles I came up, that it makes sense to test the webUI AUTOMATIC1111 [2]. In this post I publish some tips and trick to get the installation process a little bit better.

The prerequisite for this article to be helpful is that you are using Linux Debian, Ubuntu or Mint.

The installation of the webUI AUTOMATIC1111 for Stable Diffusion worked immediately following the installation instructions. After the first start, two open issues occurred. The solution can be found below.

Nevertheless, AUTOMATIC1111 works without TCMalloc and xformers. But on each start one will see the warnings, that both are not installed.

Translated with DeepL.com (free version)

Missing TCMalloc

After the first start of AUTOMATIC1111 using

./webui.sh

I got the first warning message in red text color

Cannot locate TCMalloc. Do you have tcmalloc or google-perftool installed on your system? (improves CPU memory usage)

The solution to suppress this message and install TCMalloc and google-perftool is not obvious but simple.

sudo apt-get install google-perftools

The missing s at google-perftool in the warning was misleading. After installing google-perftools the warning was gone.

This problem can be solved quickly. You will need a little more patience to fix the next problem.

Missing xformers

After the first start of AUTOMATIC1111 using

./webui.sh

I got a second warning message

no module 'xformers'. Processing without...

Searching around with no success I found the solution by myself

pip install --force-reinstall --no-deps --pre xformers

After installing xformers on my system this way the warning is gone [3]. Other ways, I found, dird not work.

Now you must start AUTOMATIC1111 using:

bash ./webui.sh --xformers

This way AUTOMATIC is not using the internal module xformers, but instead the via pip installed one.


Have a nice day! See you back soon!


Reference

[1] https://github.com/AUTOMATIC1111/stable-diffusion-webui

[2] https://github.com/easydiffusion/easydiffusion

[3] https://pypi.org/project/xformers/

Enjoy this post?

Buy zentrocdot a coffee

More from zentrocdot