openvinotoolkit / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
290 stars 45 forks source link

Error while cloning Stable Diffusion XL on Windows 11 without GPU (commit your changes or stash) #85

Closed Abbie-Boo closed 11 months ago

Abbie-Boo commented 11 months ago

Is there an existing issue for this?

What happened?

I’m trying to install Stable Diffusion on Windows 11 without a GPU. I have an i5 1235u Intel chip. I added the following arguments to the wbui-user.bat file: --autolaunch, --update-check, and --skip-torch-cuda-test. Additionally, I manually created a folder named ‘generative-models’ under ‘C:\Users\beshe\Desktop\SD\stable-diffusion-webui\repositories’ because it was unable to git clone.

Steps to reproduce the problem

  1. Go to stable-diffusion-webui
  2. Press enter
  3. done

What should have happened?

it should suppose to install Stable Diffusion XL by git cloning

Sysinfo

windows 11 15 1235u 12gb ram

What browsers do you use to access the UI ?

Google Chrome

Console logs

venv "C:\Users\beshe\Desktop\SD\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)]
Version: v1.6.1
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Fetching updates for Stable Diffusion XL...
Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f...
error: Your local changes to the following files would be overwritten by checkout:
        webui-user.bat
Please commit your changes or stash them before you switch branches.
Aborting
Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL, attempting autofix...
Fetching all contents for Stable Diffusion XL
remote: Enumerating objects: 860, done.
remote: Counting objects: 100% (513/513), done.
remote: Compressing objects: 100% (244/244), done.
remote: Total 860 (delta 365), reused 308 (delta 265), pack-reused 347Receiving objects:  99% (852/860), 42.66 MiB | 934

Receiving objects: 100% (860/860), 42.67 MiB | 593.00 KiB/s, done.
Resolving deltas: 100% (436/436), done.
Pruning Stable Diffusion XL
Enumerating objects: 29847, done.
Counting objects: 100% (29847/29847), done.
Delta compression using up to 12 threads
Compressing objects: 100% (29606/29606), done.
Writing objects: 100% (29847/29847), done.
Total 29847 (delta 21563), reused 8279 (delta 0), pack-reused 0
Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f...
error: Your local changes to the following files would be overwritten by checkout:
        webui-user.bat
Please commit your changes or stash them before you switch branches.
Aborting
Traceback (most recent call last):
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\modules\launch_utils.py", line 381, in prepare_environment
    git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash)
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\modules\launch_utils.py", line 181, in git_clone
    run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\modules\launch_utils.py", line 162, in run_git
    return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
  File "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL.
Command: "git" -C "C:\Users\beshe\Desktop\SD\stable-diffusion-webui\repositories\generative-models" checkout 45c443b316737a4ab6e40413d7794a7f5657c19f
Error code: 1
Press any key to continue . .

Additional information

commit your changes or stash error