Stable Diffusion and AUTOMATIC1111

Stable Diffusion and AUTOMATIC1111

Sep 08, 2024

I use Stable Diffusion and AUTOMATIC1111 on a local Linux machine and a local installation. From time to time I install new extensions in AUTOMATIC1111 to work with them or just to test them. When I started the local Stable Diffusion Server after such an Installation, I noticed that a Python module was missing. This missing Python module is called insightface. As usual, I tried to install this module in the usual way for Python. However, this is not successful as Stable Diffusion uses a virtual Python environment.

Normally one will do this using Python:

pip install insightface

Then the Python module insightface is installed but outside of venv (virtual Python environment).

To install the Python module for use with AUTOMATIC1111, we can do this:

  1. Go to stable-diffusion-webui directory

  2. source ./venv/bin/activate

  3. cd repositories

  4. pip install insightface

Now the warning starting Stable Diffusion is gone.

The command under item 2 changes into the Python virtual environment in which Stable Diffusion is running. This is the trick, when a Python module must be installed.


Have a nice day. Be inspired.

Ti piace questo post?

Offri un caffè a zentrocdot

Altro da zentrocdot