AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Extension update check, while using 5d14f282c2812888275902be4b552681f942dbfd commit, is misbehaving. #7324

Closed mart-hill closed 1 year ago

mart-hill commented 1 year ago

Is there an existing issue for this?

What happened?

An error with extensions update check:

Traceback (most recent call last):
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
IndexError: list index out of range

Steps to reproduce the problem

  1. Go to Extensions tab
  2. Press "Check for updates"
  3. Profit.
  4. Bzzt!
  5. Not. :)

What should have happened?

Update check should progress normally.

Commit where the problem happens

5d14f282c2812888275902be4b552681f942dbfd

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set SAFETENSORS_FAST_GPU=1
REM set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:24
set COMMANDLINE_ARGS=--xformers --api --deepdanbooru

List of extensions

ABG_extension | https://github.com/KutsuyaYuki/ABG_extension.git | Loading... DiffusionDefender | https://github.com/WildBanjos/DiffusionDefender.git | Loading... DreamArtist-sd-webui-extension | https://github.com/7eu7d7/DreamArtist-sd-webui-extension.git | Loading... Hypernetwork-MonkeyPatch-Extension | https://github.com/aria1th/Hypernetwork-MonkeyPatch-Extension | Loading... PromptGallery-stable-diffusion-webui | https://github.com/dr413677671/PromptGallery-stable-diffusion-webui.git | Loading... SD-latent-mirroring | https://github.com/dfaker/SD-latent-mirroring | Loading... StylePile | https://github.com/some9000/StylePile | Loading... Umi-AI | https://github.com/Klokinator/Umi-AI | Loading... a1111-sd-webui-haku-img | https://github.com/KohakuBlueleaf/a1111-sd-webui-haku-img.git | Loading... ~~a1111-sd-webui-tagcomplete | https://github.com/DominikDoom/a1111-sd-webui-tagcomplete | Loading...~~ ~~asymmetric-tiling-sd-webui | https://github.com/tjm35/asymmetric-tiling-sd-webui.git | Loading...~~ booru2prompt | https://github.com/Malisius/booru2prompt.git | Loading... custom-diffusion-webui | https://github.com/guaneec/custom-diffusion-webui.git | Loading... ddetailer | https://github.com/dustysys/ddetailer.git | Loading... embedding-inspector | https://github.com/tkalayci71/embedding-inspector.git | Loading... model-keyword | https://github.com/mix1009/model-keyword | Loading... multi-subject-render | https://github.com/Extraltodeus/multi-subject-render.git | Loading... novelai-2-local-prompt | https://github.com/animerl/novelai-2-local-prompt | Loading... prompt-fusion-extension | https://github.com/ljleb/prompt-fusion-extension.git | Loading... sd-dynamic-prompts | https://github.com/adieyal/sd-dynamic-prompts | Loading... ~~sd-extension-steps-animation | https://github.com/vladmandic/sd-extension-steps-animation | Loading...~~ sd-extension-system-info | https://github.com/vladmandic/sd-extension-system-info | Loading... sd-infinity-grid-generator-script | https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script.git | Loading... sd-webui-additional-networks | https://github.com/kohya-ss/sd-webui-additional-networks.git | Loading... sd-webui-gelbooru-prompt | https://github.com/antis0007/sd-webui-gelbooru-prompt.git | Loading... sd-webui-model-converter | https://github.com/Akegarasu/sd-webui-model-converter | Loading... sd-webui-multiple-hypernetworks | https://github.com/antis0007/sd-webui-multiple-hypernetworks.git | Loading... sd_dreambooth_extension | https://github.com/d8ahazard/sd_dreambooth_extension | Loading... sd_save_intermediate_images | https://github.com/AlUlkesh/sd_save_intermediate_images | Loading... sdweb-merge-block-weighted-gui | https://github.com/bbc-mc/sdweb-merge-block-weighted-gui | Loading... sdweb-merge-board | https://github.com/bbc-mc/sdweb-merge-board.git | Loading... seed_travel | https://github.com/yownas/seed_travel.git | Loading... shift-attention | https://github.com/yownas/shift-attention.git | Loading... stable-diffusion-webui-Prompt_Generator | https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator | Loading... stable-diffusion-webui-aesthetic-gradients | https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients | Loading... stable-diffusion-webui-aesthetic-image-scorer | https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer | Loading... stable-diffusion-webui-artists-to-study | https://github.com/camenduru/stable-diffusion-webui-artists-to-study | Loading... stable-diffusion-webui-cafe-aesthetic | https://github.com/p1atdev/stable-diffusion-webui-cafe-aesthetic.git | Loading... stable-diffusion-webui-conditioning-highres-fix | https://github.com/klimaleksus/stable-diffusion-webui-conditioning-highres-fix.git | Loading... stable-diffusion-webui-daam | https://github.com/kousw/stable-diffusion-webui-daam.git | Loading... stable-diffusion-webui-dataset-tag-editor | https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor | Loading... stable-diffusion-webui-embedding-editor | https://github.com/CodeExplode/stable-diffusion-webui-embedding-editor.git | Loading... stable-diffusion-webui-images-browser | https://github.com/yfszzx/stable-diffusion-webui-images-browser | Loading... stable-diffusion-webui-inspiration | https://github.com/yfszzx/stable-diffusion-webui-inspiration | Loading... stable-diffusion-webui-instruct-pix2pix | https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix.git | Loading... stable-diffusion-webui-pixelization | https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization.git | Loading... stable-diffusion-webui-prompt-travel | https://github.com/Kahsolt/stable-diffusion-webui-prompt-travel.git | Loading... stable-diffusion-webui-promptgen | https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen | Loading... stable-diffusion-webui-randomize | https://github.com/innightwolfsleep/stable-diffusion-webui-randomize | Loading... stable-diffusion-webui-sonar | https://github.com/Kahsolt/stable-diffusion-webui-sonar | Loading... stable-diffusion-webui-tokenizer | https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer.git | Loading... stable-diffusion-webui-visualize-cross-attention-extension | https://github.com/benkyoujouzu/stable-diffusion-webui-visualize-cross-attention-extension.git | Loading... stable-diffusion-webui-wd14-tagger | https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git | Loading... ~~stable-diffusion-webui-wildcards | https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards | Loading...~~ training-picker | https://github.com/Maurdekye/training-picker | Loading... ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | Loading... ~~unprompted | https://github.com/ThereforeGames/unprompted | Loading...~~ LDSR | built-in |   Lora | built-in |   ScuNET | built-in |   SwinIR | built-in |   prompt-bracket-checker | built-in

Console logs

venv "x:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: 5d14f282c2812888275902be4b552681f942dbfd
Installing requirements for Web UI
Installing requirements for Anime Background Remover
Installing requirements for Anime Background Remover
Installing requirements for Anime Background Remover

Installing requirements for scikit_learn

Installing requirements for Prompt Gallery

Installing sd-dynamic-prompts requirements.txt

#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Dreambooth revision: 9f4d931a319056c537d24669cb950d146d1537b0
SD-WebUI revision: 5d14f282c2812888275902be4b552681f942dbfd

Checking Dreambooth requirements...
[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.16rc425 installed.
[+] torch version 1.13.1+cu117 installed.
[+] torchvision version 0.14.1+cu117 installed.

#######################################################################################################

Installing requirements for dataset-tag-editor [onnxruntime-gpu]

Launching Web UI with arguments: --xformers --api --deepdanbooru
Loading booru2prompt settings
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Hypernetwork-MonkeyPatch-Extension found!
SD-Webui API layer loaded
Installing pywin32
Error loading script: training_picker.py
Traceback (most recent call last):
  File "x:\AI\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "x:\AI\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 "x:\AI\stable-diffusion-webui\extensions\training-picker\scripts\training_picker.py", line 16, in <module>
    from modules.ui import create_refresh_button, folder_symbol
ImportError: cannot import name 'folder_symbol' from 'modules.ui' (x:\AI\stable-diffusion-webui\modules\ui.py)

Loading weights [e2b3fec63d] from x:\AI\stable-diffusion-webui\models\Stable-diffusion\sd_v1-5_vae.ckpt
Creating model from config: x:\AI\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: x:\AI\stable-diffusion-webui\models\VAE\vae-ft-ema-560000-ema-pruned.safetensors
Applying xformers cross attention optimization.

Textual inversion embeddings loaded(xxx): 1man, 2000ccplus, 3N1DS1NCL41R , 80s-anime-ai-being, 80s-anime-ai, 80s-car, albino_style, andava, ao_style-7500, ao_style, art by Smoose2, B4R0N, B4R0N22, bad-artist-anime, bad-artist ...
Textual inversion embeddings skipped(xxx): AnalogFilm768-BW-Classic, AnalogFilm768-BW-Modern, AnalogFilm768-BW-Tintype, AnalogFilm768-BW-Vintage, AnalogFilm768-Old-School, AnalogFilm768, Apoc768, Art by Smoose-22, art by Smoose22, Cinema768-Analog, Cinema768-BW, Cinema768-Classic, Cinema768-Digital, Cinema768-SilentFilm ...

Model loaded in 6.7s (load weights from disk: 1.6s, create model: 0.5s, apply weights to model: 0.4s, apply half(): 0.6s, load VAE: 0.1s, move model to device: 1.0s, load textual inversion embeddings: 2.4s).
Textual inversion embeddings loaded(0):
Textual inversion embeddings loaded(0):
INFO:     Started server process [27420]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:5173 (Press CTRL+C to quit)
INFO:     ::1:4964 - "GET / HTTP/1.1" 200 OK
add tab
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Total progress: 0it [00:00, ?it/s]
Traceback (most recent call last):
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
IndexError: list index out of range
Traceback (most recent call last):
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "x:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
IndexError: list index out of range

Additional information

I crossed-out the extensions that are disabled at the moment. For the twice-error message - I pressed the extension's tab "Check for updates" button twice.

zero01101 commented 1 year ago

experiencing something similar on firefox in windows as of https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/91c8d0dcfc9a5d46aec47fd3eb34c633c104b5bb - python console doesn't report an error, but checking for extension updates doesn't complete and throws a type error regarding progressbarContainer in progressbar.js

image

image

i somewhat suspect https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/f8feeaaedb890de1e36eeb2ad387f0eb3abafd54 may be where this all started lol

[edit]

yeah if you simply comment out lines 33 and 35 in extensions.js you can at least successfully check for extension updates again, albeit with no progress indicator

mezotaken commented 1 year ago

did this fix it? https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/e2c71a4bd41470b9503021db36be2ae65f345d97 Somehow it works fine, but i don't have as many extensions.

mart-hill commented 1 year ago

did this fix it? e2c71a4 Somehow it works fine, but i don't have as many extensions.

I've got to check it, though I edited the extensions.js file as well. :)

zero01101 commented 1 year ago

did this fix it? https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/e2c71a4bd41470b9503021db36be2ae65f345d97

huh, curious; i pulled in the latest commits this morning up to https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/91c8d0dcfc9a5d46aec47fd3eb34c633c104b5bb (which would've included that commit you mentioned), started webUI like normal, and experienced the extension updating issue, but after your comment i re-enabled those 2 lines in extensions.js, shut down and restarted webUI, and now it works fine? so definitely seems like it was stale js cache anyway, but also now no longer experiencing it, so ¯\_(ツ)_/¯

mart-hill commented 1 year ago

I agree, I also uncommented these two lines and restarted the WebUI wholly, but I updated it first to the e2c71a4bd41470b9503021db36be2ae65f345d97 commit, then re-ran it. I would say it's solved for me, but I'll wait for the other users to confirm. 🙂

mezotaken commented 1 year ago

Well, there's three confirmations, so i'd assume it's fixed.