camenduru / stable-diffusion-webui-colab

stable diffusion webui colab
The Unlicense
15.58k stars 2.61k forks source link

[Bug]: v2.3 Test #398

Closed camenduru closed 1 year ago

camenduru commented 1 year ago

What happened?

idk

Colab cell output

Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple
2023-05-01 21:41:37.621032: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
Downloading: "https://download.pytorch.org/models/raft_large_C_T_SKHT_V2-ff5fadd5.pth" to /root/.cache/torch/hub/checkpoints/raft_large_C_T_SKHT_V2-ff5fadd5.pth
Error loading script: Berry_Method.py
Traceback (most recent call last):
  File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.10/http/client.py", line 1283, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "/usr/lib/python3.10/http/client.py", line 1448, in connect
    super().connect()
  File "/usr/lib/python3.10/http/client.py", line 942, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.10/socket.py", line 845, in create_connection
    raise err
  File "/usr/lib/python3.10/socket.py", line 833, in create_connection
    sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/TemporalKit/scripts/Berry_Method.py", line 7, in <module>
    import scripts.stable_diffusion_processing as sdprocess
  File "/content/stable-diffusion-webui/extensions/TemporalKit/scripts/stable_diffusion_processing.py", line 15, in <module>
    import scripts.optical_flow_raft as raft
  File "/content/stable-diffusion-webui/extensions/TemporalKit/scripts/optical_flow_raft.py", line 23, in <module>
    model = raft_large(weights=Raft_Large_Weights.DEFAULT, progress=False).to(device)
  File "/usr/local/lib/python3.10/dist-packages/torchvision/models/_utils.py", line 142, in wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torchvision/models/_utils.py", line 228, in inner_wrapper
    return builder(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torchvision/models/optical_flow/raft.py", line 852, in raft_large
    return _raft(
  File "/usr/local/lib/python3.10/dist-packages/torchvision/models/optical_flow/raft.py", line 821, in _raft
    model.load_state_dict(weights.get_state_dict(progress=progress))
  File "/usr/local/lib/python3.10/dist-packages/torchvision/models/_api.py", line 89, in get_state_dict
    return load_state_dict_from_url(self.url, progress=progress)
  File "/usr/local/lib/python3.10/dist-packages/torch/hub.py", line 746, in load_state_dict_from_url
    download_url_to_file(url, cached_file, hash_prefix, progress=progress)
  File "/usr/local/lib/python3.10/dist-packages/torch/hub.py", line 611, in download_url_to_file
    u = urlopen(req)
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 99] Cannot assign requested address>

Downloading: "https://download.pytorch.org/models/raft_large_C_T_SKHT_V2-ff5fadd5.pth" to /root/.cache/torch/hub/checkpoints/raft_large_C_T_SKHT_V2-ff5fadd5.pth
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
all detected, remote.moe trying to connect...
Warning: Permanently added 'localhost.run,54.161.197.247' (RSA) to the list of known hosts.
Error loading script: ssh_tunnel.py
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/sd-webui-tunnels/scripts/ssh_tunnel.py", line 137, in <module>
    ssh_tunnel(LOCALHOST_RUN)
  File "/content/stable-diffusion-webui/extensions/sd-webui-tunnels/scripts/ssh_tunnel.py", line 114, in ssh_tunnel
    raise RuntimeError(f"Failed to run {host}")
RuntimeError: Failed to run localhost.run

all detected, cloudflared trying to connect...
Error loading script: try_cloudflare.py
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/sd-webui-tunnels/scripts/try_cloudflare.py", line 20, in <module>
    tunnel_url = try_cloudflare(port=port, verbose=False)
  File "/usr/local/lib/python3.10/dist-packages/pycloudflared/try_cloudflare.py", line 59, in __call__
    download(info)
  File "/usr/local/lib/python3.10/dist-packages/pycloudflared/util.py", line 75, in download
    with urlopen(info.url) as resp:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Error loading script: stealth_pnginfo.py
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/sd_webui_stealth_pnginfo/scripts/stealth_pnginfo.py", line 6, in <module>
    from gradio import media_data, processing_utils, utils
ImportError: cannot import name 'media_data' from 'gradio' (/usr/local/lib/python3.10/dist-packages/gradio/__init__.py)

100%|████████████████████████████████████████| 890M/890M [00:04<00:00, 224MiB/s]
Calculating sha256 for /content/stable-diffusion-webui/models/Stable-diffusion/chilloutmix_NiPrunedFp32Fix.safetensors: fc2511737a54c5e80b89ab03e0ab4b98d051ab187f92860f3cd664dc9d08b271
Loading weights [fc2511737a] from /content/stable-diffusion-webui/models/Stable-diffusion/chilloutmix_NiPrunedFp32Fix.safetensors
Creating model from config: /content/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:00<00:00, 1.13MB/s]
Downloading (…)olve/main/merges.txt: 100% 525k/525k [00:00<00:00, 68.3MB/s]
Downloading (…)cial_tokens_map.json: 100% 389/389 [00:00<00:00, 2.41MB/s]
Downloading (…)okenizer_config.json: 100% 905/905 [00:00<00:00, 5.05MB/s]
Downloading (…)lve/main/config.json: 100% 4.52k/4.52k [00:00<00:00, 17.4MB/s]
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(8): bad-artist, bad-artist-anime, bad-hands-5, bad-image-v2-39000, bad_prompt_version2, EasyNegative, ng_deepnegative_v1_75t, verybadimagenegative_v1.3
Model loaded in 32.4s (calculate hash: 24.5s, load weights from disk: 0.3s, create model: 6.1s, apply weights to model: 1.2s, load textual inversion embeddings: 0.1s).
Init / preset error.
Image Browser: Creating database
Image Browser: Database created
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 107.7s (import torch: 7.1s, import gradio: 0.7s, import ldm: 1.9s, other imports: 1.9s, setup codeformer: 0.2s, load scripts: 60.6s, load SD checkpoint: 32.7s, create ui: 2.2s, gradio launch: 0.4s).

Which colab and model(s) were you using when the error occurred?

*

Which Public WebUI Colab URL were you using when the error occurred?

remote.moe

If you used HiRes mode when the error occurred, please provide the Hires info

No response

camenduru commented 1 year ago
Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/launch.py", line 354, in <module>
    start()
  File "/content/stable-diffusion-webui/launch.py", line 344, in start
    import webui
  File "/content/stable-diffusion-webui/webui.py", line 22, in <module>
    import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
  File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/__init__.py", line 35, in <module>
    from pytorch_lightning.callbacks import Callback  # noqa: E402
  File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
  File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in <module>
    from pytorch_lightning.callbacks.callback import Callback
  File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in <module>
    from pytorch_lightning.utilities.types import STEP_OUTPUT
  File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/utilities/types.py", line 27, in <module>
    from torchmetrics import Metric
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/__init__.py", line 14, in <module>
    from torchmetrics import functional  # noqa: E402
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/audio/__init__.py", line 14, in <module>
    from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate  # noqa: F401
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/audio/pit.py", line 22, in <module>
    from torchmetrics.utilities.imports import _SCIPY_AVAILABLE
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/__init__.py", line 1, in <module>
    from torchmetrics.utilities.checks import check_forward_full_state_property  # noqa: F401
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/checks.py", line 25, in <module>
    from torchmetrics.utilities.data import select_topk, to_onehot
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/data.py", line 19, in <module>
    from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py", line 112, in <module>
    _TORCHVISION_GREATER_EQUAL_0_8: Optional[bool] = _compare_version("torchvision", operator.ge, "0.8.0")
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py", line 78, in _compare_version
    if not _module_available(package):
  File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py", line 59, in _module_available
    module = import_module(module_names[0])
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.10/dist-packages/torchvision/__init__.py", line 6, in <module>
    from torchvision import datasets, io, models, ops, transforms, utils
  File "/usr/local/lib/python3.10/dist-packages/torchvision/datasets/__init__.py", line 1, in <module>
    from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
  File "/usr/local/lib/python3.10/dist-packages/torchvision/datasets/_optical_flow.py", line 12, in <module>
    from ..io.image import _read_png_16
  File "/usr/local/lib/python3.10/dist-packages/torchvision/io/__init__.py", line 8, in <module>
    from ._load_gpu_decoder import _HAS_GPU_VIDEO_DECODER
  File "/usr/local/lib/python3.10/dist-packages/torchvision/io/_load_gpu_decoder.py", line 1, in <module>
    from ..extension import _load_library
  File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 107, in <module>
    _check_cuda_version()
  File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 80, in _check_cuda_version
    raise RuntimeError(
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.
camenduru commented 1 year ago

Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple
2023-05-01 21:55:49.467990: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
ControlNet v1.1.125
ControlNet v1.1.125
all detected, remote.moe trying to connect...
Warning: Permanently added 'localhost.run,54.161.197.247' (RSA) to the list of known hosts.
Warning: Permanently added 'remote.moe,159.69.126.209' (ECDSA) to the list of known hosts.
all detected, cloudflared trying to connect...
Download cloudflared...: 100% 34.8M/34.8M [00:00<00:00, 474MB/s]
Error loading script: stealth_pnginfo.py
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/sd_webui_stealth_pnginfo/scripts/stealth_pnginfo.py", line 6, in <module>
    from gradio import media_data, processing_utils, utils
ImportError: cannot import name 'media_data' from 'gradio' (/usr/local/lib/python3.10/dist-packages/gradio/__init__.py)
machiavel23 commented 1 year ago

The ALSA lib segment looks like it tries to detect the video card, but can't find it. It seems related to webui itself.

The error for the Berry_Method.py seems to be because of the destination folder not being accessible. It's related to TemporalKit. Thé URL to get the pth works.

Then we have errors with the Tunnels extension. Something goes wrong for localhost.run (which is not surprising, some browsers consider this host as phishing and won't open any page with it.) And then there's a problem with pycloudflared, resulting in a 404 when trying to use cloudflare tunnel.

After that we have stealthpng, trying to get something from gradio, but unable to find it. Probably because of the gradio update. Don't expect the author of stealthpng to solve it tho, he archived his repo after discord stopped Deleting metadata.

Then there's the problem if pytorch having cuda 11.7 and torchvision having cuda 11.8.

@camenduru edit this post to ~nuke~ what you've fixed already.

camenduru commented 1 year ago
API error: GET: https://43425f25d7dc97.lhr.life/sdapi/v1/options {'error': 'ValidationError', 'detail': '', 'body': '', 'errors': '1 validation error for Options\nresponse -> sd_model_checkpoint\n  value is not None (type=type_error.not_none)'}
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:94 in        │
│ receive                                                                      │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:89 in        │
│ receive_nowait                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯
WouldBlock

During handling of the above exception, another exception occurred:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py:78 in   │
│ call_next                                                                    │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:114 in       │
│ receive                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯
EndOfStream

During handling of the above exception, another exception occurred:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/stable-diffusion-webui/modules/api/api.py:144 in exception_handling │
│                                                                              │
│   143 │   │   try:                                                           │
│ ❱ 144 │   │   │   return await call_next(request)                            │
│   145 │   │   except Exception as e:                                         │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │        call_next = <function                                             │ │
│ │                    BaseHTTPMiddleware.__call__.<locals>.call_next at     │ │
│ │                    0x7f0004755000>                                       │ │
│ │                e = ValidationError(                                      │ │
│ │                    │   model='Options',                                  │ │
│ │                    │   errors=[                                          │ │
│ │                    │   │   {                                             │ │
│ │                    │   │   │   'loc': (                                  │ │
│ │                    │   │   │   │   'response',                           │ │
│ │                    │   │   │   │   'sd_model_checkpoint'                 │ │
│ │                    │   │   │   ),                                        │ │
│ │                    │   │   │   'msg': 'value is not None',               │ │
│ │                    │   │   │   'type': 'type_error.not_none'             │ │
│ │                    │   │   }                                             │ │
│ │                    │   ]                                                 │ │
│ │                    )                                                     │ │
│ │ handle_exception = <function api_middleware.<locals>.handle_exception at │ │
│ │                    0x7f000462a710>                                       │ │
│ │          request = <starlette.requests.Request object at 0x7effcf0fe260> │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py:84 in   │
│ call_next                                                                    │
│                                                                              │
│                           ... 14 frames hidden ...                           │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/fastapi/routing.py:255 in app        │
│                                                                              │
│    254 │   │   │   │   response_args["status_code"] = sub_response.status_co │
│ ❱  255 │   │   │   content = await serialize_response(                       │
│    256 │   │   │   │   field=response_field,                                 │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │                               _ = {}                                     │ │
│ │           actual_response_class = <class 'gradio.routes.ORJSONResponse'> │ │
│ │                background_tasks = None                                   │ │
│ │                            body = None                                   │ │
│ │                      body_field = None                                   │ │
│ │             current_status_code = None                                   │ │
│ │                       dependant = <fastapi.dependencies.models.Dependant │ │
│ │                                   object at 0x7effd0d00370>              │ │
│ │   dependency_overrides_provider = <gradio.routes.App object at           │ │
│ │                                   0x7effd0df59c0>                        │ │
│ │                          errors = []                                     │ │
│ │                    is_body_form = None                                   │ │
│ │                    is_coroutine = False                                  │ │
│ │                    raw_response = {                                      │ │
│ │                                   │   'samples_save': True,              │ │
│ │                                   │   'samples_format': 'png',           │ │
│ │                                   │   'samples_filename_pattern': '',    │ │
│ │                                   │   'save_images_add_number': True,    │ │
│ │                                   │   'grid_save': True,                 │ │
│ │                                   │   'grid_format': 'png',              │ │
│ │                                   │   'grid_extended_filename': False,   │ │
│ │                                   │   'grid_only_if_multiple': True,     │ │
│ │                                   │   'grid_prevent_empty_spots': False, │ │
│ │                                   │   'n_rows': -1,                      │ │
│ │                                   │   ... +154                           │ │
│ │                                   }                                      │ │
│ │                         request = <starlette.requests.Request object at  │ │
│ │                                   0x7effcf0fea10>                        │ │
│ │                   response_args = {'background': None}                   │ │
│ │                  response_field = ModelField(                            │ │
│ │                                   │                                      │ │
│ │                                   name='Response_get_config_sdapi_v1_op… │ │
│ │                                   │   type=Options,                      │ │
│ │                                   │   required=True                      │ │
│ │                                   )                                      │ │
│ │         response_model_by_alias = True                                   │ │
│ │          response_model_exclude = None                                   │ │
│ │ response_model_exclude_defaults = False                                  │ │
│ │     response_model_exclude_none = False                                  │ │
│ │    response_model_exclude_unset = False                                  │ │
│ │          response_model_include = None                                   │ │
│ │                   solved_result = (                                      │ │
│ │                                   │   {},                                │ │
│ │                                   │   [],                                │ │
│ │                                   │   None,                              │ │
│ │                                   │   <starlette.responses.Response      │ │
│ │                                   object at 0x7effcf0ffc10>,             │ │
│ │                                   │   {}                                 │ │
│ │                                   )                                      │ │
│ │                     status_code = None                                   │ │
│ │                    sub_response = <starlette.responses.Response object   │ │
│ │                                   at 0x7effcf0ffc10>                     │ │
│ │                          values = {}                                     │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/fastapi/routing.py:141 in            │
│ serialize_response                                                           │
│                                                                              │
│    140 │   │   if errors:                                                    │
│ ❱  141 │   │   │   raise ValidationError(errors, field.type_)                │
│    142 │   │   return jsonable_encoder(                                      │
│                                                                              │
│ ╭──────────────────────────────── locals ─────────────────────────────────╮  │
│ │         by_alias = True                                                 │  │
│ │           errors = [                                                    │  │
│ │                    │   ErrorWrapper(                                    │  │
│ │                    │   │   exc=ValidationError(                         │  │
│ │                    │   │   │   model='Options',                         │  │
│ │                    │   │   │   errors=[                                 │  │
│ │                    │   │   │   │   {                                    │  │
│ │                    │   │   │   │   │   'loc': (                         │  │
│ │                    │   │   │   │   │   │   'sd_model_checkpoint',       │  │
│ │                    │   │   │   │   │   ),                               │  │
│ │                    │   │   │   │   │   'msg': 'value is not None',      │  │
│ │                    │   │   │   │   │   'type': 'type_error.not_none'    │  │
│ │                    │   │   │   │   }                                    │  │
│ │                    │   │   │   ]                                        │  │
│ │                    │   │   ),                                           │  │
│ │                    │   │   loc=('response',)                            │  │
│ │                    │   )                                                │  │
│ │                    ]                                                    │  │
│ │          errors_ = ErrorWrapper(                                        │  │
│ │                    │   exc=ValidationError(                             │  │
│ │                    │   │   model='Options',                             │  │
│ │                    │   │   errors=[                                     │  │
│ │                    │   │   │   {                                        │  │
│ │                    │   │   │   │   'loc': ('sd_model_checkpoint',),     │  │
│ │                    │   │   │   │   'msg': 'value is not None',          │  │
│ │                    │   │   │   │   'type': 'type_error.not_none'        │  │
│ │                    │   │   │   }                                        │  │
│ │                    │   │   ]                                            │  │
│ │                    │   ),                                               │  │
│ │                    │   loc=('response',)                                │  │
│ │                    )                                                    │  │
│ │          exclude = None                                                 │  │
│ │ exclude_defaults = False                                                │  │
│ │     exclude_none = False                                                │  │
│ │    exclude_unset = False                                                │  │
│ │            field = ModelField(                                          │  │
│ │                    │   name='Response_get_config_sdapi_v1_options_get', │  │
│ │                    │   type=Options,                                    │  │
│ │                    │   required=True                                    │  │
│ │                    )                                                    │  │
│ │          include = None                                                 │  │
│ │     is_coroutine = False                                                │  │
│ │ response_content = {                                                    │  │
│ │                    │   'samples_save': True,                            │  │
│ │                    │   'samples_format': 'png',                         │  │
│ │                    │   'samples_filename_pattern': '',                  │  │
│ │                    │   'save_images_add_number': True,                  │  │
│ │                    │   'grid_save': True,                               │  │
│ │                    │   'grid_format': 'png',                            │  │
│ │                    │   'grid_extended_filename': False,                 │  │
│ │                    │   'grid_only_if_multiple': True,                   │  │
│ │                    │   'grid_prevent_empty_spots': False,               │  │
│ │                    │   'n_rows': -1,                                    │  │
│ │                    │   ... +154                                         │  │
│ │                    }                                                    │  │
│ │            value = {                                                    │  │
│ │                    │   'samples_save': True,                            │  │
│ │                    │   'samples_format': 'png',                         │  │
│ │                    │   'samples_filename_pattern': '',                  │  │
│ │                    │   'save_images_add_number': True,                  │  │
│ │                    │   'grid_save': True,                               │  │
│ │                    │   'grid_format': 'png',                            │  │
│ │                    │   'grid_extended_filename': False,                 │  │
│ │                    │   'grid_only_if_multiple': True,                   │  │
│ │                    │   'grid_prevent_empty_spots': False,               │  │
│ │                    │   'n_rows': -1,                                    │  │
│ │                    │   ... +154                                         │  │
│ │                    }                                                    │  │
│ ╰─────────────────────────────────────────────────────────────────────────╯  │
╰──────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for Options
response -> sd_model_checkpoint
  value is not None (type=type_error.not_none)
API error: GET: https://af2faf86-9284-418a.gradio.live/sdapi/v1/options {'error': 'ValidationError', 'detail': '', 'body': '', 'errors': '1 validation error for Options\nresponse -> sd_model_checkpoint\n  value is not None (type=type_error.not_none)'}
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:94 in        │
│ receive                                                                      │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:89 in        │
│ receive_nowait                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯
WouldBlock

During handling of the above exception, another exception occurred:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py:78 in   │
│ call_next                                                                    │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/anyio/streams/memory.py:114 in       │
│ receive                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯
EndOfStream

During handling of the above exception, another exception occurred:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/stable-diffusion-webui/modules/api/api.py:144 in exception_handling │
│                                                                              │
│   143 │   │   try:                                                           │
│ ❱ 144 │   │   │   return await call_next(request)                            │
│   145 │   │   except Exception as e:                                         │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │        call_next = <function                                             │ │
│ │                    BaseHTTPMiddleware.__call__.<locals>.call_next at     │ │
│ │                    0x7f0004754700>                                       │ │
│ │                e = ValidationError(                                      │ │
│ │                    │   model='Options',                                  │ │
│ │                    │   errors=[                                          │ │
│ │                    │   │   {                                             │ │
│ │                    │   │   │   'loc': (                                  │ │
│ │                    │   │   │   │   'response',                           │ │
│ │                    │   │   │   │   'sd_model_checkpoint'                 │ │
│ │                    │   │   │   ),                                        │ │
│ │                    │   │   │   'msg': 'value is not None',               │ │
│ │                    │   │   │   'type': 'type_error.not_none'             │ │
│ │                    │   │   }                                             │ │
│ │                    │   ]                                                 │ │
│ │                    )                                                     │ │
│ │ handle_exception = <function api_middleware.<locals>.handle_exception at │ │
│ │                    0x7f000462a710>                                       │ │
│ │          request = <starlette.requests.Request object at 0x7effcf330550> │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py:84 in   │
│ call_next                                                                    │
│                                                                              │
│                           ... 14 frames hidden ...                           │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/fastapi/routing.py:255 in app        │
│                                                                              │
│    254 │   │   │   │   response_args["status_code"] = sub_response.status_co │
│ ❱  255 │   │   │   content = await serialize_response(                       │
│    256 │   │   │   │   field=response_field,                                 │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │                               _ = {}                                     │ │
│ │           actual_response_class = <class 'gradio.routes.ORJSONResponse'> │ │
│ │                background_tasks = None                                   │ │
│ │                            body = None                                   │ │
│ │                      body_field = None                                   │ │
│ │             current_status_code = None                                   │ │
│ │                       dependant = <fastapi.dependencies.models.Dependant │ │
│ │                                   object at 0x7effd0d00370>              │ │
│ │   dependency_overrides_provider = <gradio.routes.App object at           │ │
│ │                                   0x7effd0df59c0>                        │ │
│ │                          errors = []                                     │ │
│ │                    is_body_form = None                                   │ │
│ │                    is_coroutine = False                                  │ │
│ │                    raw_response = {                                      │ │
│ │                                   │   'samples_save': True,              │ │
│ │                                   │   'samples_format': 'png',           │ │
│ │                                   │   'samples_filename_pattern': '',    │ │
│ │                                   │   'save_images_add_number': True,    │ │
│ │                                   │   'grid_save': True,                 │ │
│ │                                   │   'grid_format': 'png',              │ │
│ │                                   │   'grid_extended_filename': False,   │ │
│ │                                   │   'grid_only_if_multiple': True,     │ │
│ │                                   │   'grid_prevent_empty_spots': False, │ │
│ │                                   │   'n_rows': -1,                      │ │
│ │                                   │   ... +154                           │ │
│ │                                   }                                      │ │
│ │                         request = <starlette.requests.Request object at  │ │
│ │                                   0x7effcf2e90f0>                        │ │
│ │                   response_args = {'background': None}                   │ │
│ │                  response_field = ModelField(                            │ │
│ │                                   │                                      │ │
│ │                                   name='Response_get_config_sdapi_v1_op… │ │
│ │                                   │   type=Options,                      │ │
│ │                                   │   required=True                      │ │
│ │                                   )                                      │ │
│ │         response_model_by_alias = True                                   │ │
│ │          response_model_exclude = None                                   │ │
│ │ response_model_exclude_defaults = False                                  │ │
│ │     response_model_exclude_none = False                                  │ │
│ │    response_model_exclude_unset = False                                  │ │
│ │          response_model_include = None                                   │ │
│ │                   solved_result = (                                      │ │
│ │                                   │   {},                                │ │
│ │                                   │   [],                                │ │
│ │                                   │   None,                              │ │
│ │                                   │   <starlette.responses.Response      │ │
│ │                                   object at 0x7effcf2ea320>,             │ │
│ │                                   │   {}                                 │ │
│ │                                   )                                      │ │
│ │                     status_code = None                                   │ │
│ │                    sub_response = <starlette.responses.Response object   │ │
│ │                                   at 0x7effcf2ea320>                     │ │
│ │                          values = {}                                     │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /usr/local/lib/python3.10/dist-packages/fastapi/routing.py:141 in            │
│ serialize_response                                                           │
│                                                                              │
│    140 │   │   if errors:                                                    │
│ ❱  141 │   │   │   raise ValidationError(errors, field.type_)                │
│    142 │   │   return jsonable_encoder(                                      │
│                                                                              │
│ ╭──────────────────────────────── locals ─────────────────────────────────╮  │
│ │         by_alias = True                                                 │  │
│ │           errors = [                                                    │  │
│ │                    │   ErrorWrapper(                                    │  │
│ │                    │   │   exc=ValidationError(                         │  │
│ │                    │   │   │   model='Options',                         │  │
│ │                    │   │   │   errors=[                                 │  │
│ │                    │   │   │   │   {                                    │  │
│ │                    │   │   │   │   │   'loc': (                         │  │
│ │                    │   │   │   │   │   │   'sd_model_checkpoint',       │  │
│ │                    │   │   │   │   │   ),                               │  │
│ │                    │   │   │   │   │   'msg': 'value is not None',      │  │
│ │                    │   │   │   │   │   'type': 'type_error.not_none'    │  │
│ │                    │   │   │   │   }                                    │  │
│ │                    │   │   │   ]                                        │  │
│ │                    │   │   ),                                           │  │
│ │                    │   │   loc=('response',)                            │  │
│ │                    │   )                                                │  │
│ │                    ]                                                    │  │
│ │          errors_ = ErrorWrapper(                                        │  │
│ │                    │   exc=ValidationError(                             │  │
│ │                    │   │   model='Options',                             │  │
│ │                    │   │   errors=[                                     │  │
│ │                    │   │   │   {                                        │  │
│ │                    │   │   │   │   'loc': ('sd_model_checkpoint',),     │  │
│ │                    │   │   │   │   'msg': 'value is not None',          │  │
│ │                    │   │   │   │   'type': 'type_error.not_none'        │  │
│ │                    │   │   │   }                                        │  │
│ │                    │   │   ]                                            │  │
│ │                    │   ),                                               │  │
│ │                    │   loc=('response',)                                │  │
│ │                    )                                                    │  │
│ │          exclude = None                                                 │  │
│ │ exclude_defaults = False                                                │  │
│ │     exclude_none = False                                                │  │
│ │    exclude_unset = False                                                │  │
│ │            field = ModelField(                                          │  │
│ │                    │   name='Response_get_config_sdapi_v1_options_get', │  │
│ │                    │   type=Options,                                    │  │
│ │                    │   required=True                                    │  │
│ │                    )                                                    │  │
│ │          include = None                                                 │  │
│ │     is_coroutine = False                                                │  │
│ │ response_content = {                                                    │  │
│ │                    │   'samples_save': True,                            │  │
│ │                    │   'samples_format': 'png',                         │  │
│ │                    │   'samples_filename_pattern': '',                  │  │
│ │                    │   'save_images_add_number': True,                  │  │
│ │                    │   'grid_save': True,                               │  │
│ │                    │   'grid_format': 'png',                            │  │
│ │                    │   'grid_extended_filename': False,                 │  │
│ │                    │   'grid_only_if_multiple': True,                   │  │
│ │                    │   'grid_prevent_empty_spots': False,               │  │
│ │                    │   'n_rows': -1,                                    │  │
│ │                    │   ... +154                                         │  │
│ │                    }                                                    │  │
│ │            value = {                                                    │  │
│ │                    │   'samples_save': True,                            │  │
│ │                    │   'samples_format': 'png',                         │  │
│ │                    │   'samples_filename_pattern': '',                  │  │
│ │                    │   'save_images_add_number': True,                  │  │
│ │                    │   'grid_save': True,                               │  │
│ │                    │   'grid_format': 'png',                            │  │
│ │                    │   'grid_extended_filename': False,                 │  │
│ │                    │   'grid_only_if_multiple': True,                   │  │
│ │                    │   'grid_prevent_empty_spots': False,               │  │
│ │                    │   'n_rows': -1,                                    │  │
│ │                    │   ... +154                                         │  │
│ │                    }                                                    │  │
│ ╰─────────────────────────────────────────────────────────────────────────╯  │
╰──────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for Options
response -> sd_model_checkpoint
  value is not None (type=type_error.not_none)