AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: URLError: <urlopen error [Errno 60] Operation timed out> Time taken: 1 min. 18.6 sec. #12130

Closed luoweb closed 1 year ago

luoweb commented 1 year ago

Is there an existing issue for this?

What happened?

URLError: <urlopen error [Errno 60] Operation timed out> Time taken: 1 min. 18.6 sec.

Steps to reproduce the problem

  1. with Prompt: best quality, masterpiece, ultra highresolution,(photorealistic:1.37). 1girl, cute,slim, light blush,red eyes,ponytail,long hair, dark eyes,profile,(medium breasts),croptop, Gradient background,
  2. Press generate wait for a long time 1mins 18sec
  3. Then URL ERROR URLError: <urlopen error [Errno 60] Operation timed out> Time taken: 1 min. 18.6 sec.

What should have happened?

generate picture

Version or Commit where the problem happens

v1.5.1

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

MacOS

What device are you running WebUI on?

CPU

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Apple Safari

Command Line Arguments

--skip-torch-cuda-test --medvram --no-half-vae

List of extensions

扩展 网址 Branch Version Date 更新
Tag自动补全 https://github.com/DominikDoom/a1111-sd-webui-tagcomplete main beba0ca7 Sun Feb 5 16:19:28 2023 未知
sd-webui-bilingual-localization https://github.com/journey-ad/sd-webui-bilingual-localization main 89a02280 Thu Apr 27 03:54:25 2023 未知
sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet main 098f6cd8 Tue Jul 18 05:06:14 2023 未知
简体中文语言包 https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN main 7d106b8c Mon Nov 28 02:51:16 2022 未知
正體中文語言包 https://github.com/benlisquare/stable-diffusion-webui-localization-zh_TW main cae8d96c Tue Nov 29 13:59:10 2022 未知
LDSR built-in   Fri Jul 28 07:16:37 2023  
Lora built-in   Fri Jul 28 07:16:37 2023  
ScuNET built-in   Fri Jul 28 07:16:37 2023  
SwinIR built-in   Fri Jul 28 07:16:37 2023  
canvas-zoom-and-pan built-in   Fri Jul 28 07:16:37 2023  
extra-options-section built-in   Fri Jul 28 07:16:37 2023  
mobile built-in   Fri Jul 28 07:16:37 2023  
prompt-bracket-checker built-in   Fri Jul 28 07:16:37 2023


扩展 网址 Branch Version Date 更新 Tag自动补全 https://github.com/DominikDoom/a1111-sd-webui-tagcomplete main beba0ca7 Sun Feb 5 16:19:28 2023 未知 sd-webui-bilingual-localization https://github.com/journey-ad/sd-webui-bilingual-localization main 89a02280 Thu Apr 27 03:54:25 2023 未知 sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet main 098f6cd8 Tue Jul 18 05:06:14 2023 未知 简体中文语言包 https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN main 7d106b8c Mon Nov 28 02:51:16 2022 未知 正體中文語言包 https://github.com/benlisquare/stable-diffusion-webui-localization-zh_TW main cae8d96c Tue Nov 29 13:59:10 2022 未知 LDSR built-in 无 Fri Jul 28 07:16:37 2023
Lora built-in 无 Fri Jul 28 07:16:37 2023
ScuNET built-in 无 Fri Jul 28 07:16:37 2023
SwinIR built-in 无 Fri Jul 28 07:16:37 2023
canvas-zoom-and-pan built-in 无 Fri Jul 28 07:16:37 2023
extra-options-section built-in 无 Fri Jul 28 07:16:37 2023
mobile built-in 无 Fri Jul 28 07:16:37 2023
prompt-bracket-checker built-in 无 Fri Jul 28 07:16:37 2023

Console logs

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.6 (main, Oct 24 2022, 11:04:07) [Clang 12.0.0 ]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a

Launching Web UI with arguments: --skip-torch-cuda-test --medvram --no-half-vae
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
dirname:  /Users/block/code/sd/stable-diffusion-webui/localizations
localizations:  {'zh_CN': '/Users/block/code/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-localization-zh_CN/localizations/zh_CN.json', 'zh_TW': '/Users/block/code/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-localization-zh_TW/localizations/zh_TW.json'}
2023-07-28 15:22:55,564 - ControlNet - INFO - ControlNet v1.1.233
ControlNet preprocessor location: /Users/block/code/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
2023-07-28 15:22:55,608 - ControlNet - INFO - ControlNet v1.1.233
Loading weights [1f69731261] from /Users/block/code/sd/stable-diffusion-webui/models/Stable-diffusion/Stable Diffusion XL 0.9_base.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 5.2s (launcher: 0.4s, import torch: 1.4s, import gradio: 0.5s, setup paths: 0.6s, other imports: 0.5s, load scripts: 0.6s, create ui: 0.6s, gradio launch: 0.4s).
Creating model from config: /Users/block/code/sd/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Couldn't find VAE named vae-ft-mse-840000-ema-pruned.safetensors; using None instead
Applying attention optimization: InvokeAI... done.
Model loaded in 63.8s (load weights from disk: 1.1s, create model: 0.6s, apply weights to model: 27.8s, apply half(): 31.6s, hijack: 0.2s, load textual inversion embeddings: 0.2s, calculate empty prompt: 2.1s).
Downloading VAEApprox model to: /Users/block/code/sd/stable-diffusion-webui/models/VAE-approx/vaeapprox-sdxl.pt
*** Error completing request
*** Arguments: ('task(zxfewnh4tcmf35o)', 'best quality, masterpiece, ultra highresolution,(photorealistic:1.37).\n1girl, cute,slim, light blush,red\neyes,ponytail,long hair, dark\neyes,profile,(medium breasts),croptop, Gradient background,', '', [], 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 0, '', '', [], <gradio.routes.Request object at 0x31fbebee0>, 0, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x2b7d44a60>, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, None, None, False, 50) {}
    Traceback (most recent call last):
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 1348, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 1282, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 1328, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 1277, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 1037, in _send_output
        self.send(msg)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 975, in send
        self.connect()
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 1447, in connect
        super().connect()
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/http/client.py", line 941, in connect
        self.sock = self._create_connection(
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/socket.py", line 845, in create_connection
        raise err
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/socket.py", line 833, in create_connection
        sock.connect(sa)
    TimeoutError: [Errno 60] Operation timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/block/code/sd/stable-diffusion-webui/modules/call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "/Users/block/code/sd/stable-diffusion-webui/modules/call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "/Users/block/code/sd/stable-diffusion-webui/modules/txt2img.py", line 62, in txt2img
        processed = processing.process_images(p)
      File "/Users/block/code/sd/stable-diffusion-webui/modules/processing.py", line 677, in process_images
        res = process_images_inner(p)
      File "/Users/block/code/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 42, in processing_process_images_hijack
        return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
      File "/Users/block/code/sd/stable-diffusion-webui/modules/processing.py", line 738, in process_images_inner
        sd_vae_approx.model()
      File "/Users/block/code/sd/stable-diffusion-webui/modules/sd_vae_approx.py", line 53, in model
        download_model(model_path, 'https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/download/v1.0.0-pre/' + model_name)
      File "/Users/block/code/sd/stable-diffusion-webui/modules/sd_vae_approx.py", line 39, in download_model
        torch.hub.download_url_to_file(model_url, model_path)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/site-packages/torch/hub.py", line 611, in download_url_to_file
        u = urlopen(req)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 519, in open
        response = self._open(req, data)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 536, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 1391, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
      File "/Users/block/anaconda3/envs/py3_10_6_sd/lib/python3.10/urllib/request.py", line 1351, in do_open
        raise URLError(err)
    urllib.error.URLError: <urlopen error [Errno 60] Operation timed out>

Additional information

Mac OS M2

akx commented 1 year ago

You're running in an environment (or country) where access to GitHub is firewalled off, or something of the sort.

You can try manually downloading vaeapprox-sdxl.pt from https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre (if you can somehow access it) and place it in models/VAE-approx.

luoweb commented 1 year ago

You're running in an environment (or country) where access to GitHub is firewalled off, or something of the sort.

You can try manually downloading vaeapprox-sdxl.pt from https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre (if you can somehow access it) and place it in models/VAE-approx.

thanks