Open Bogan06 opened 1 year ago
I don't see a commit hash, and you're using SD1.4. How did you install it?
I'd suggest following these instructions to install an up to date version.
If i follow that instruction
and i'll got a same problem again and again Stable diffusion model failed to load, exiting
Already up to date. Creating venv in directory C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\venv using python "C:\Users\GOWTHAM\AppData\Local\Programs\Python\Python310\python.exe" venv "C:\Users\GOWTHAM\Documents\SDmodel\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: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117 Collecting torch==1.13.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB) Collecting torchvision==0.14.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB) Collecting typing-extensions Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB) Collecting requests Using cached requests-2.28.2-py3-none-any.whl (62 kB) Collecting pillow!=8.3.*,>=5.3.0 Using cached Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB) Collecting numpy Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB) Collecting charset-normalizer<4,>=2 Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB) Collecting certifi>=2017.4.17 Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB) Collecting idna<4,>=2.5 Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.4.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15
[notice] A new release of pip available: 22.2.1 -> 23.0.1 [notice] To update, run: C:\Users\GOWTHAM\Documents\SDmodel\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\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai... Cloning Taming Transformers into C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\taming-transformers... Cloning K-diffusion into C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\k-diffusion... Cloning CodeFormer into C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\CodeFormer... Cloning BLIP into C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\BLIP... Installing requirements for CodeFormer Installing requirements for Web UI Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Calculating sha256 for C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\models\Stable-diffusion\sd-v1-4.ckpt: fe4efff1e174c627256e44ec2991ba279b3816e364b49f9be2abc0b3ff3f8556 Loading weights [fe4efff1e1] from C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\models\Stable-diffusion\sd-v1-4.ckpt Creating model from config: C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Downloading (…)olve/main/vocab.json: 100%|███████████████████████████████████████████| 961k/961k [00:01<00:00, 597kB/s] Downloading (…)olve/main/merges.txt: 100%|███████████████████████████████████████████| 525k/525k [00:01<00:00, 460kB/s] Downloading (…)cial_tokens_map.json: 100%|████████████████████████████████████████████████████| 389/389 [00:00<?, ?B/s] Downloading (…)okenizer_config.json: 100%|████████████████████████████████████████████████████| 905/905 [00:00<?, ?B/s] Failed to create model quickly; will retry using slow method. LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. loading stable diffusion model: FileNotFoundError Traceback (most recent call last): File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\webui.py", line 136, in initialize modules.sd_models.load_model() File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\modules\sd_models.py", line 430, in load_model sd_model = instantiate_from_config(sd_config.model) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in init self.instantiate_cond_stage(cond_stage_config) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage model = instantiate_from_config(config) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 99, in init self.tokenizer = CLIPTokenizer.from_pretrained(version) File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1801, in from_pretrained return cls._from_pretrained( File "C:\Users\GOWTHAM\Documents\SDmodel\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1849, in _from_pretrained with open(tokenizer_config_file, encoding="utf-8") as tokenizer_config_handle: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\GOWTHAM/.cache\huggingface\hub\models--openai--clip-vit-large-patch14\snapshots\8d052a0f05efbaefbc9e8786ba291cfdf93e5bff\tokenizer_config.json'
Stable diffusion model failed to load, exiting Press any key to continue . . .
I see a "file not found." Check your antivirus. People are getting their models falsely flagged right now. See #8584
Is there an existing issue for this?
What would your feature do ?
using windows 10
Steps to reproduce the problem Install web UI Try to launch it 19.03.2023 The "Stable diffusion model failed to load, exiting" Incident
Proposed workflow
Additional information
venv "C:\Users\GOWTHAM\Documents\SDlocal\venv\Scripts\Python.exe" Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] Commit hash:
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [14749efc0a] from C:\Users\GOWTHAM\Documents\SDlocal\model.ckpt
Creating model from config: C:\Users\GOWTHAM\Documents\SDlocal\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Failed to create model quickly; will retry using slow method.
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
loading stable diffusion model: FileNotFoundError
Traceback (most recent call last):
File "C:\Users\GOWTHAM\Documents\SDlocal\webui.py", line 136, in initialize
modules.sd_models.load_model()
File "C:\Users\GOWTHAM\Documents\SDlocal\modules\sd_models.py", line 430, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "C:\Users\GOWTHAM\Documents\SDlocal\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(config.get("params", dict()))
File "C:\Users\GOWTHAM\Documents\SDlocal\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in init
self.instantiate_cond_stage(cond_stage_config)
File "C:\Users\GOWTHAM\Documents\SDlocal\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
model = instantiate_from_config(config)
File "C:\Users\GOWTHAM\Documents\SDlocal\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(config.get("params", dict()))
File "C:\Users\GOWTHAM\Documents\SDlocal\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 99, in init
self.tokenizer = CLIPTokenizer.from_pretrained(version)
File "C:\Users\GOWTHAM\Documents\SDlocal\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1801, in from_pretrained
return cls._from_pretrained(
File "C:\Users\GOWTHAM\Documents\SDlocal\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1849, in _from_pretrained
with open(tokenizer_config_file, encoding="utf-8") as tokenizer_config_handle:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\GOWTHAM/.cache\huggingface\hub\models--openai--clip-vit-large-patch14\snapshots\8d052a0f05efbaefbc9e8786ba291cfdf93e5bff\tokenizer_config.json'
Stable diffusion model failed to load, exiting Press any key to continue . . .