AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.53k stars 26.88k forks source link

[Bug]: Installation Method 1/2 fails to download stable-diffusion-v1-5 model #11454

Open christianmaueroeder opened 1 year ago

christianmaueroeder commented 1 year ago

Is there an existing issue for this?

What happened?

I have used method 1 and method 2 to install stable-diffusion-webui, but the default model failed to be downloaded.

Steps to reproduce the problem

Method 1:

  1. Extract sd.webui
  2. Doubleclick update.bat
  3. Doubleclick run.bat

Method 2: 1: Installing Python/Git 2: CMD: it clone https://github.com/AUTOMATIC1111/stable-diffusion-webui 3: Doubleklick webui-user.bat --> INSTALL + ERROR MESSAGE

What should have happened?

The stable-diffusion-v1-5 model should have been downloaded, but failed to do so.

Version or Commit where the problem happens

1.4

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

Cross attention optimization

None

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

No

Console logs

env "C:\Users\Shadow\Desktop\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)]
Version: v1.4.0
Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Collecting torch==2.0.1
  Using cached https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl (2619.1 MB)
Collecting torchvision==0.15.2
  Using cached https://download.pytorch.org/whl/cu118/torchvision-0.15.2%2Bcu118-cp310-cp310-win_amd64.whl (4.9 MB)
Collecting networkx
  Using cached networkx-3.1-py3-none-any.whl (2.1 MB)
Collecting sympy
  Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting filelock
  Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
Collecting typing-extensions
  Using cached typing_extensions-4.6.3-py3-none-any.whl (31 kB)
Collecting jinja2
  Using cached https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting pillow!=8.3.*,>=5.3.0
  Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB)
Collecting requests
  Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting numpy
  Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl (17 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2023.5.7-py3-none-any.whl (156 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.0.3-py3-none-any.whl (123 kB)
Collecting idna<4,>=2.5
  Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
Collecting mpmath>=0.19
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.3 certifi-2023.5.7 charset-normalizer-3.1.0 filelock-3.12.2 idna-3.4 jinja2-3.1.2 mpmath-1.3.0 networkx-3.1 numpy-1.25.0 pillow-9.5.0 requests-2.31.0 sympy-1.12 torch-2.0.1+cu118 torchvision-0.15.2+cu118 typing-extensions-4.6.3 urllib3-2.0.3

[notice] A new release of pip available: 22.2.1 -> 23.1.2
[notice] To update, run: C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Installing gfpgan
Installing clip
Installing open_clip
Cloning Stable Diffusion into C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning K-diffusion into C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\repositories\k-diffusion...
Cloning CodeFormer into C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\repositories\CodeFormer...
Cloning BLIP into C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\repositories\BLIP...
Installing requirements for CodeFormer
Installing requirements
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

loading stable diffusion model: FileNotFoundError
Traceback (most recent call last):
  File "C:\Users\Shadow\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
  File "C:\Users\Shadow\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\Shadow\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\webui.py", line 306, in load_model
    shared.sd_model  # noqa: B018
  File "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\modules\shared.py", line 726, in sd_model
    return modules.sd_models.model_data.get_sd_model()
  File "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 422, in get_sd_model
    load_model()
  File "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 440, in load_model
    checkpoint_info = checkpoint_info or select_checkpoint()
  File "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\modules\sd_models.py", line 181, in select_checkpoint
    raise FileNotFoundError(error_message)
FileNotFoundError: No checkpoints found. When searching for checkpoints, looked at:
 - file C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\model.ckpt
 - directory C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusionCan't run without a checkpoint. Find and place a .ckpt or .safetensors file into any of those locations.

Stable diffusion model failed to load
Applying attention optimization: Doggettx... done.
preload_extensions_git_metadata for 7 extensions took 0.00s
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 24.6s (import torch: 6.2s, import gradio: 4.6s, import ldm: 1.8s, other imports: 5.7s, setup codeformer: 0.5s, load scripts: 4.4s, create ui: 1.0s, gradio launch: 0.2s).

Additional information

No response

chrme commented 1 year ago

Something with a network connection. Try to manually download https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors and move to "C:\Users\Shadow\Desktop\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\"

nengtiansh commented 11 months ago

I have same issue. Manual download file into models, it work ok. Thanks.

lestgabo commented 2 months ago

this doesnt work anymore - the repo is dead/gone

80columns commented 2 months ago

this doesnt work anymore - the repo is dead/gone

Came here after having the same issue. The top-level repo at https://huggingface.co/runwayml states Note: We are no longer maintaining a HuggingFace organization. You can explore more recent open-source image generation models here: https://huggingface.co/models

Kelll-123 commented 4 days ago

I have same issue. Manual download file into models, it work ok. Thanks.

Could you tell me which files need to download manually?