How to install Stable Diffusion on Windows (AUTOMATIC1111)

Updated Categorized as Tutorial Tagged , 101 Comments on How to install Stable Diffusion on Windows (AUTOMATIC1111)

We will go through how to install the popular Stable Diffusion software AUTOMATIC1111 on Windows step-by-step.

Stable Diffusion is a text-to-image AI that can be run on a consumer-grade PC with a GPU. After this tutorial, you can generate AI images on your own PC.

(Updated Feb 26, 2023)

Systems requirements

Your PC should run Windows 10 or higher with a discrete Nvidia video card (GPU) with 4 GB VRAM or more. An integrated GPU will not work.

If your PC does not meet these requirements, alternatives are

Installation steps

Step 1: Install python

You will need Python 3.10.6 to run Stable Diffusion. Select the 64-bit windows installer, or use this direct download link.

windows installer for Python.
Download the Python Windows installer.

Open the Python installer to start installing.

Make sure “Add Python 3.10 to PATH” is checked. Click “Install Now” to start the installation.

If you encounter an error, it’s most likely because you have previously installed Python. Remove any previously installed Python versions before re-installing 3.10.6. You can do that in Control PanelAdd or remove programs.

Step 2: Install git

Git is a code repository management system. You will need it to install and update AUTOMATIC1111.

Go to this page to download the windows version.

Open the installer. Click Install to accept the license and install the software.

Follow the instruction to complete the installation.

Step 3: Clone web-ui

This is the most difficult step…

Press the Window key (Should be on the left of the space bar on your keyboard), a search window should pop up. Type cmd.

Click on Command Prompt. The command prompt window would show up.

First, make sure you are in your home folder by typing the following command and then pressing Enter. (Tip: You should be able to use right-click to paste in Command Prompt.)

cd %userprofile%

You should see your prompt shows something like C:\Users\YOUR_USER_NAME>.

Next type the following command and press Enter to clone the AUTOMATIC1111 repository.

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

A folder called stable-diffusion-webui should be created in your home directory.

It’s ok to clone the repository in a different folder instead of %userprofile%, as long as you can find the newly created stable-diffusion-webui folder. You will need to change the folder location accordingly in the following steps.

Step 4: Download a model file

Next, go to the newly created folder in File Explorer. Put in

%userprofile%\stable-diffusion-webui

in the address bar and press enter.

Navigate to the folder models and then Stable-diffusion. You should see a file Put Stable Diffusion checkpoints here.txt like below.

Download the Stable Diffusion v1.5 model checkpoint file (download link). Put it in that folder.

Step 5: Run webui

Now in File Explorer, go back to the stable-diffusion-webui folder. That is go back up two levels or type

%userprofile%\stable-diffusion-webui

again in the address bar.

Find a file called webui-user.bat. Double-click to run and complete the installation.

This last step is going to take a while. When it is done, you will see a message

Running on local URL: http://127.0.0.1:7860

like below.

In your web browser, go to the URL

http://127.0.0.1:7860/

You should see the AUTOMATIC1111 webui! Put in a prompt (e.g. “a cat”) and hit Generate to test if Stable Diffusion is running correctly.

When you are done using Stable Diffusion, close the cmd black window to shut down Stable Diffusion.

To rerun Stable Diffusion, you just need to double-click the webui-user.bat.

Options

You can speed up Stable Diffusion with the --xformers option. If you have less than 8 GB VRAM on GPU, it is a good idea to turn on --medvram option to save memory so that you can generate more images at a time.

To enable them, right-click on the file webui-user.bat and select Edit. (You may need to select “Show More Options” first if you use Windows 11).

Replace the line

set COMMANDLINE_ARGS=

With

set COMMANDLINE_ARGS=--xformers --medvram

Save and close the file.

Double-click the webui-user.bat file to run Stable Diffusion.

Next Step

That’s it! Hope you will have fun making AI images.

If you are new to Stable Diffusion, check out the Quick Start Guide for some quick tips to use Stable Diffusion.

Head to our beginner’s series to learn Stable Diffusion step by step.

Check out this prompt generator for building high-quality prompts.

Updating AUTOMATIC1111

By default, your copy of AUTOMATIC1111 won’t be automatically updated. Given how fast things are moving, you will likely need to update your copy at some point to use the latest and the coolest.

There are two options for updating it. (1) Updating every time when you run it, and (2) Updating only when needed.

Updating every time you run

To update whenever you run webui, edit the file webui-user.bat. Add “git pull” before the line calling webui.bat. The file should look something like

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --medvram
git pull
call webui.bat

From now on, webui will update itself every time it starts.

Updating as needed

It may not be a good idea to use the latest version because something could be broken. Updating periodically or only if you need a new feature is a more prudent approach.

To update the webui, open Command Prompt (cmd) and go to webui’s directory using the command below. (You will need to change %userprofile% if you installed it somewhere else.)

cd %userprofile%\stable-diffusion-webui

And run the command

git pull

Resetting webui

If git pull shows an error, it is usually because you have accidentally changed some files. You can reset the webui folder with the following two commands.

cd %userprofile%\stable-diffusion-webui
git checkout -f master

And then run git pull again.

git pull

Note that all files will be reset. You will need to make changes to webui-user.bat again.

Reverting back to a previous version

Sometimes the latest version of webui is broken and you don’t want to use it. You can revert back to a previous version by following the instructions below.

Step 1: Go to this page to view previous versions. Each row is a previous version.

Step 2: Pick a previous version you want to revert back to. You can look at the date and comment to make a judgment.

Step 3: Press the copy button to copy the hash code of the version.

Step 4: In the command prompt, run the following commands. The hash code (highlighted below) is just an example. You will paste the one you just copied.

cd %userprofile%\stable-diffusion-webui
git checkout 076d624a297532d6e4abebe5807fd7c7504d7a73

If you see errors, reset the webui (see the previous section) and retry.

Frequently Asked Questions

Does it work on AMD GPU?
No, you have to have an NVIDIA GPU.

Is there an easier way to install AUTOMATIC1111?
The above is the official install instructions. Two alternatives:

I tried everything but it still does not work.
You can use Google Colab to run AUTOMATIC1111. This is what I use. The notebook launches AUTOMATIC1111 with 1 mouse click.


Buy Me A Coffee

101 comments

  1. Just a quick follow up question – if I already have the “torch-1.13.1+cu117-cp310-cp310-win_amd64.whl” on my hard drive, is there anyway I could install it?

    1. The installation is in the venv folder. You will need to enter that virtual environment and use “pip install torch-1.13.1+cu117-cp310-cp310-win_amd64.whl“

      If you don’t understand what I was talking about, it is better to just follow the standard installation process…

  2. Hi there) do you happen to know how to fix this?

    ERROR: Exception:
    Traceback (most recent call last):
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 435, in _error_catcher
    yield
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 516, in read
    data = self._fp.read(amt) if not fp_closed else b””
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
    data = self.__fp.read(amt)
    File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\http\client.py”, line 465, in read
    s = self.fp.read(amt)
    File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\socket.py”, line 705, in readinto
    return self._sock.recv_into(b)
    File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\ssl.py”, line 1274, in recv_into
    return self.read(nbytes, buffer)
    File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\ssl.py”, line 1130, in read
    return self._sslobj.read(len, buffer)
    ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2548)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\cli\base_command.py”, line 167, in exc_logging_wrapper
    status = run_func(*args)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
    return func(self, options, args)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\commands\install.py”, line 369, in run
    requirement_set = resolver.resolve(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
    result = self._result = resolver.resolve(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
    if not criterion.candidates:
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
    return bool(self._sequence)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
    return any(self)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
    return (c for c in iterator if id(c) not in self._incompatible_ids)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
    candidate = func()
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
    super().__init__(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
    self.dist = self._prepare()
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
    dist = self._prepare_distribution()
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 438, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 483, in _prepare_linked_requirement
    local_file = unpack_url(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 165, in unpack_url
    file = get_http_url(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 106, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
    for chunk in chunks:
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\cli\progress_bars.py”, line 53, in _rich_progress_bar
    for chunk in iterable:
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
    for chunk in response.raw.stream(
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 573, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 509, in read
    with self._error_catcher():
    File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py”, line 153, in __exit__
    self.gen.throw(typ, value, traceback)
    File “F:\stable-diffusion-webui-master\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 446, in _error_catcher
    raise SSLError(e)
    pip._vendor.urllib3.exceptions.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2548)

  3. Hello Andrew. Is it passible to instal the webui on second hard drive (D:) and not on the system hard drive (C:) with windows ? I ask because I have much more space on the second hard drive. thanks in advance.

  4. After I installed dreambooth, got the error message. What should I do?

    Startup time: 0.4s (list extensions: 0.1s, create ui: 0.1s).
    Closing server running on port: 7860
    Restarting UI…
    Exception importing api
    Traceback (most recent call last):
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\api.py”, line 27, in
    from dreambooth.dataclasses.db_config import from_file, DreamboothConfig
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\dataclasses\db_config.py”, line 10, in
    from dreambooth.utils.image_utils import get_scheduler_names # noqa
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\utils\image_utils.py”, line 11, in
    from diffusers.schedulers import KarrasDiffusionSchedulers
    ModuleNotFoundError: No module named ‘diffusers’
    Error loading script: main.py
    Traceback (most recent call last):
    File “C:\Users\USERNAME\stable-diffusion-webui\modules\scripts.py”, line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
    File “C:\Users\USERNAME\stable-diffusion-webui\modules\script_loading.py”, line 11, in load_module
    module_spec.loader.exec_module(module)
    File “”, line 883, in exec_module
    File “”, line 241, in _call_with_frames_removed
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py”, line 7, in
    from dreambooth.dataclasses.db_config import (
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\dataclasses\db_config.py”, line 10, in
    from dreambooth.utils.image_utils import get_scheduler_names # noqa
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\utils\image_utils.py”, line 11, in
    from diffusers.schedulers import KarrasDiffusionSchedulers
    ModuleNotFoundError: No module named ‘diffusers’

    Running on local URL: http://127.0.0.1:7860

    To create a public link, set `share=True` in `launch()`.
    Error executing callback app_started_callback for C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\api.py
    Traceback (most recent call last):
    File “C:\Users\USERNAME\stable-diffusion-webui\modules\script_callbacks.py”, line 107, in app_started_callback
    c.callback(demo, app)
    File “C:\Users\USERNAME\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\api.py”, line 524, in dreambooth_api
    model_cfg: DreamboothConfig = Body(description=”The config to save”),
    NameError: name ‘DreamboothConfig’ is not defined

    Startup time: 0.4s (list extensions: 0.1s, create ui: 0.1s).

  5. If you dont have an nvidia gpu like me (I have a 1GB integrated intel GPU), that might be the reason why you are getting that ‘error’. But adding that skip cuda code should skip it. For me the next problem was that I have a shitty spotty suspicious and slow internet connection, which when running stable diffusion ‘webui-user.bat’ it will not work because it keeps trying to do some updates that cant be updated with a shitty internet connection. So the solution is to run it completely offline from beginning to end and avoid the updates which is triggered every time you run ‘webui-user.bat’. But to run it completely offline you have to obtain a file that makes it run offline completely from start to finish, which for me made stable diffusion work. Its take 5 to 10 min to generate an image for me and it runs on CPU instead… Otherwise i dont know what your problem is without any explaination of what your issue is after adding –skip-torch-cuda-test.

  6. “ANDREW LOWKEY GOATED FR ONG” Andrew, you are modestly the Greatest Of All Time ‘ ed for real, on god.

  7. Hi, I got an issue where it says, Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check. I’ve tried every ways to fixed it from github forums, but still didn’t work

  8. Thanks for this great guide, I found it helpful. My major deviation I made was to use Chocolaty to install python and git, which I think was ultimately easier and has the benefit of being able to install all sorts of useful software.

    I used the steps here to install Chocolaty https://chocolatey.org/install
    Then from an Administrative Powershell, I installed the needed apps

    choco install git
    choco install python3 –version=3.10.6

    This omits the heavy cygwin environment that is completely unnecessary.

    The other thing I did differently is I run everything from a PowerShell prompt instead of cmd.exe, but I don’t that that makes any difference. Being a unix fan, I greatly prefer PowerShell-core (within Microsoft Terminal) over cmd.exe. You can get (Powershell-core from choco with “choco install powershell-core”).

  9. Thanks Andrew, I did end up trying that. In the end I deleted my stable-diffusion dir and cloned auto1111 to my directory and then it started working again.

  10. Hi Andrew, Thanks for the great content on your site! I’ve also run into a problem with stable diffusion. I was originally looking at how to do a fresh install online, but it doesn’t look like there is a way. So I am tackling the issues I am running into. Thanks!

    Here is the log:

    Already up to date.
    venv “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
    Commit hash: 27e319dc4f09a2f040043948e5c52965976f8491
    Installing requirements for Web UI
    Error running install.py for extension extensions\sd_dreambooth_extension.
    Command: “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\Scripts\python.exe” “extensions\sd_dreambooth_extension\install.py”
    Error code: 1
    stdout: loading Dreambooth reqs from C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\requirements.txt
    Checking Dreambooth requirements.
    WARNING: overwriting existing torch/torchvision installation!
    Checking torch and torchvision versions

    stderr: Traceback (most recent call last):
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\install.py”, line 21, in
    run(f'”{sys.executable}” -m {torch_cmd}’, “Checking torch and torchvision versions”, “Couldn’t install torch”)
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\launch.py”, line 105, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install torch.
    Command: “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 –extra-index-url https://download.pytorch.org/whl/cu116
    Error code: 1
    stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
    Collecting torch==1.12.1+cu116
    Using cached https://download.pytorch.org/whl/cu116/torch-1.12.1%2Bcu116-cp310-cp310-win_amd64.whl (2388.4 MB)
    Collecting torchvision==0.13.1+cu116
    Using cached https://download.pytorch.org/whl/cu116/torchvision-0.13.1%2Bcu116-cp310-cp310-win_amd64.whl (2.6 MB)
    Requirement already satisfied: typing-extensions in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch==1.12.1+cu116) (4.5.0)
    Requirement already satisfied: requests in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.13.1+cu116) (2.25.1)
    Requirement already satisfied: numpy in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.13.1+cu116) (1.23.3)
    Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.13.1+cu116) (9.4.0)
    Requirement already satisfied: idna=2.5 in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.13.1+cu116) (2.10)
    Requirement already satisfied: urllib3=1.21.1 in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.13.1+cu116) (1.26.15)
    Requirement already satisfied: certifi>=2017.4.17 in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.13.1+cu116) (2022.12.7)
    Requirement already satisfied: chardet=3.0.2 in c:\users\jorda\documents\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.13.1+cu116) (4.0.0)
    Installing collected packages: torch, torchvision
    Attempting uninstall: torch
    Found existing installation: torch 1.13.1
    Uninstalling torch-1.13.1:
    Successfully uninstalled torch-1.13.1

    stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: ‘C:\\Users\\jorda\\Documents\\Stable Diffusion\\stable-diffusion-webui\\venv\\Lib\\site-packages\\~.rch\\lib\\asmjit.dll’
    Check the permissions.

    Launching Web UI with arguments:
    C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: [WinError 127] The specified procedure could not be found
    warn(f”Failed to load image Python extension: {e}”)
    Preloading Dreambooth!
    No module ‘xformers’. Proceeding without it.
    ==============================================================================
    You are running torch 1.12.1+cu116.
    The program is tested to work with torch 1.13.1.
    To reinstall the desired version, run with commandline flag –reinstall-torch.
    Beware that this will cause a lot of large files to be downloaded, as well as
    there are reports of issues with training tab on the latest version.

    Use –skip-version-check commandline argument to disable this check.
    ==============================================================================
    Error loading script: main.py
    Traceback (most recent call last):
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\modules\scripts.py”, line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\modules\script_loading.py”, line 11, in load_module
    module_spec.loader.exec_module(module)
    File “”, line 883, in exec_module
    File “”, line 241, in _call_with_frames_removed
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py”, line 3, in
    from dreambooth import conversion, dreambooth
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\conversion.py”, line 27, in
    from dreambooth.dreambooth import get_db_models
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\dreambooth.py”, line 10, in
    from dreambooth.train_dreambooth import main
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\train_dreambooth.py”, line 24, in
    from diffusers import AutoencoderKL, DDIMScheduler, DDPMScheduler, StableDiffusionPipeline, UNet2DConditionModel
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\__init__.py”, line 55, in
    from .pipelines import (
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\__init__.py”, line 18, in
    from .dance_diffusion import DanceDiffusionPipeline
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\dance_diffusion\__init__.py”, line 1, in
    from .pipeline_dance_diffusion import DanceDiffusionPipeline
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\dance_diffusion\pipeline_dance_diffusion.py”, line 21, in
    from ..pipeline_utils import AudioPipelineOutput, DiffusionPipeline
    File “C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py”, line 63, in
    from transformers.utils import SAFE_WEIGHTS_NAME as TRANSFORMERS_SAFE_WEIGHTS_NAME
    ImportError: cannot import name ‘SAFE_WEIGHTS_NAME’ from ‘transformers.utils’ (C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\__init__.py)

    Loading weights [3b60d3dec9] from C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\jordAI.ckpt
    Creating model from config: C:\Users\jorda\Documents\Stable Diffusion\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Applying cross attention optimization (Doggettx).
    Textual inversion embeddings loaded(0):
    Model loaded in 10.0s (load weights from disk: 5.5s, create model: 0.6s, apply weights to model: 1.0s, apply half(): 0.9s, move model to device: 0.9s, load textual inversion embeddings: 1.2s).
    Running on local URL: http://127.0.0.1:7860

  11. Hey Great Work from you man!
    Unfortuanitly i have a Problem, the Program is saying that i have a Memory Problem but i have enought storage left…. I have a 4Ram and 64 bit PC Do you have any Help?
    Thank you in Advance!

    ERROR: Exception:
    Traceback (most recent call last):
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
    status = run_func(*args)
    File “C:\Users\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
    return func(self, options, args)
    File “C:\Users\i\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py”, line 419, in run
    requirement_set = resolver.resolve(
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
    result = self._result = resolver.resolve(
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
    File “C:\Users\leoni\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
    if not criterion.candidates:
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
    return bool(self._sequence)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
    return any(self)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
    return (c for c in iterator if id(c) not in self._incompatible_ids)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
    candidate = func()
    File “C:\Users\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
    super().__init__(
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
    self.dist = self._prepare()
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
    dist = self._prepare_distribution()
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
    local_file = unpack_url(
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
    file = get_http_url(
    File “C:\Users\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py”, line 134, in __call__
    resp = _http_get_download(self._session, link)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py”, line 117, in _http_get_download
    resp = session.get(target_url, headers=HEADERS, stream=True)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py”, line 600, in get
    return self.request(“GET”, url, **kwargs)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\session.py”, line 518, in request
    return super().request(method, url, *args, **kwargs)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py”, line 587, in request
    resp = self.send(prep, **send_kwargs)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py”, line 701, in send
    r = adapter.send(request, **kwargs)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\adapter.py”, line 48, in send
    cached_response = self.controller.cached_request(request)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\controller.py”, line 155, in cached_request
    resp = self.serializer.loads(request, cache_data, body_file)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\serialize.py”, line 95, in loads
    return getattr(self, “_loads_v{}”.format(ver))(request, data, body_file)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\serialize.py”, line 186, in _loads_v4
    cached = msgpack.loads(data, raw=False)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\msgpack\fallback.py”, line 123, in unpackb
    unpacker.feed(packed)
    File “C:\Users\\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\msgpack\fallback.py”, line 381, in feed
    self._buffer.extend(view)
    MemoryError

  12. Hi could you help me please? I get an error “stderr: C:\Program Files\Inkscape\bin\python.exe: No module named pip” when clicking the webui-user.bat.

    1. Hi, it appears that you were using a python that installed by another program. The best is to uninstall inscape, and any other python versions previously installed. Then install python 3.10

  13. hi, can you help me with something? it says that it couldn’t install open_clip. how to fix pls?

    1. it works now idk why, but now it tells me that it…

      RuntimeError: Couldn’t clone Taming Transformers.
      Command: “git” clone “https://github.com/CompVis/taming-transformers.git” “repositories\taming-transformers”
      Error code: 128
      stdout:
      stderr: Cloning into ‘repositories\taming-transformers’…
      error: RPC failed; curl 56 Recv failure: Connection was reset
      error: 1596 bytes of body are still expected
      fetch-pack: unexpected disconnect while reading sideband packet
      fatal: early EOF
      fatal: fetch-pack: invalid index-pack output

      help

          1. Hi, you can test visiting github.com. Find a way to fix the connect if you are blocked from it (which I cannot advise on how).

            You can also try clone as you suggested. Then comment out the lines that try to clone taming transformers.

  14. I’m getting an error torch.cuda out of memory. It is using GPU 0 instead of 1. The solution from research is to add:
    Set ‘CUDA_VISIBLE_DEVICES=1’
    My question is which config file, and where in that file to add this argument? Or is there a way to force the application to use GPU 1 in Windows 10 (no disabling GPU 0)?
    Thanks!

  15. venv “C:\Users\Hugo Lessa\stable-diffusion-webui\venv\Scripts\Python.exe”
    No Python at ‘”C:\Users\Hugo Lessa\AppData\Local\Programs\Python\Python311\python.exe’

    First i installed de last python version, so i unistall it and install the correct one. But this message appear when i start webui user bat

Leave a Reply