AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: SD2.0 Download (Closed) as was a host machine issue. #5230

Closed TWIISTED-STUDIOS closed 2 years ago

TWIISTED-STUDIOS commented 2 years ago

Is there an existing issue for this?

What happened?

Does anyone know what files the automatic1111 is trying to download the first time you run the WebUI after you have selected the 2.0 checkpoint file, I can watch the files download then all of a sudden the instance freezes and then I get this error check the log section bellow

And I'm struggling to believe its my network when I'm running Gigabit up and down and i have no issue manually downloading anything, just SD2.0 auto-downloading, so if anyone knows the files it is downloading are from and where they are placed that would be brilliant so i can manually do so.

Steps to reproduce the problem

  1. Go to the webui
  2. Press the 2.0 checkpoint
  3. and watch the console

What should have happened?

Downloaded what ever needed to download and then continue

Commit where the problem happens

4b3c5bc24bffdf429c463a465763b3077fe55eb8

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --listen --deepdanbooru --api --cors-allow-origins=https://www.painthua.com --theme dark --enable-insecure-extension-access

Additional information, context and logs

LatentDiffusion: Running in v-prediction mode DiffusionWrapper has 865.91 M params. Downloading: 8%|█████▎ | 319M/3.94G [01:03<23:39, 2.55MB/s]Traceback (most recent call last): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 443, in _error_catcher yield File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 566, in read data = self._fp_read(amt) if not fp_closed else b"" File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 532, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() File "C:\Users\user\scoop\apps\python310\3.10.8\lib\http\[client.py](http://client.py/)", line 465, in read s = self.fp.read(amt) File "C:\Users\user\scoop\apps\python310\3.10.8\lib\[socket.py](http://socket.py/)", line 705, in readinto return self._sock.recv_into(b) File "C:\Users\user\scoop\apps\python310\3.10.8\lib\[ssl.py](http://ssl.py/)", line 1274, in recv_into return self.read(nbytes, buffer) File "C:\Users\user\scoop\apps\python310\3.10.8\lib\[ssl.py](http://ssl.py/)", line 1130, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\requests\[models.py](http://models.py/)", line 753, in generate for chunk in [self.raw.stream](http://self.raw.stream/)(chunk_size, decode_content=True): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 627, in stream data = self.read(amt=amt, decode_content=decode_content) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 565, in read with self._error_catcher(): File "C:\Users\user\scoop\apps\python310\3.10.8\lib\[contextlib.py](http://contextlib.py/)", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\urllib3\[response.py](http://response.py/)", line 448, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='[cdn-lfs.huggingface.co](http://cdn-lfs.huggingface.co/)', port=443): Read timed out. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\gradio\[routes.py](http://routes.py/)", line 284, in run_predict output = await app.blocks.process_api( File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\gradio\[blocks.py](http://blocks.py/)", line 982, in process_api result = await self.call_function(fn_index, inputs, iterator) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\gradio\[blocks.py](http://blocks.py/)", line 824, in call_function prediction = await [anyio.to](http://anyio.to/)_[thread.run](http://thread.run/)_sync( File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\anyio\to_[thread.py](http://thread.py/)", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_[asyncio.py](http://asyncio.py/)", line 937, in run_sync_in_worker_thread return await future File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_[asyncio.py](http://asyncio.py/)", line 867, in run result = [context.run](http://context.run/)(func, *args) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\[ui.py](http://ui.py/)", line 1603, in <lambda> fn=lambda value, k=k: run_settings_single(value, key=k), File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\[ui.py](http://ui.py/)", line 1444, in run_settings_single if not opts.set(key, value): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\[shared.py](http://shared.py/)", line 477, in set self.data_labels[key].onchange() File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\call_[queue.py](http://queue.py/)", line 15, in f res = func(*args, **kwargs) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\[webui.py](http://webui.py/)", line 62, in <lambda> shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: [modules.sd](http://modules.sd/)_models.reload_model_weights())) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\sd_[models.py](http://models.py/)", line 292, in reload_model_weights load_model(checkpoint_info) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\modules\sd_[models.py](http://models.py/)", line 260, in load_model sd_model = instantiate_from_config(sd_config.model) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\[util.py](http://util.py/)", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\[ddpm.py](http://ddpm.py/)", line 563, in __init__ self.instantiate_cond_stage(cond_stage_config) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\[ddpm.py](http://ddpm.py/)", line 630, in instantiate_cond_stage model = instantiate_from_config(config) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\[util.py](http://util.py/)", line 79, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\[modules.py](http://modules.py/)", line 147, in __init__ model, _, _ = open_clip.create_model_and_transforms(arch, device=torch.device('cpu'), pretrained=version) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\open_clip\[factory.py](http://factory.py/)", line 201, in create_model_and_transforms model = create_model( File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\open_clip\[factory.py](http://factory.py/)", line 159, in create_model checkpoint_path = download_pretrained(pretrained_cfg, cache_dir=cache_dir) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\open_clip\[pretrained.py](http://pretrained.py/)", line 312, in download_pretrained target = download_pretrained_from_hf(model_id, cache_dir=cache_dir) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\open_clip\[pretrained.py](http://pretrained.py/)", line 282, in download_pretrained_from_hf cached_file = hf_hub_download(model_id, filename, revision=revision, cache_dir=cache_dir) File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_[download.py](http://download.py/)", line 1226, in hf_hub_download http_get( File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_[download.py](http://download.py/)", line 490, in http_get for chunk in r.iter_content(chunk_size=1024): File "E:\Artificial-Inteligence\Ai-Image-Gen\Automatic-1111-GUI\stable-diffusion-webui\venv\lib\site-packages\requests\[models.py](http://models.py/)", line 760, in generate raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='[cdn-lfs.huggingface.co](http://cdn-lfs.huggingface.co/)', port=443): Read timed out.

lxuisrxn commented 1 year ago

how did u fix it

TWIISTED-STUDIOS commented 1 year ago

how did u fix it

it was an issue with my network, and I had to set this command netsh int tcp set global autotuninglevel=normal along with changing some other windows network settings.

you could also try this aswell https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/5108#discussioncomment-4282317