AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: index in gradio components calls wrong index #7565

Open charlesculp opened 1 year ago

charlesculp commented 1 year ago

Is there an existing issue for this?

What happened?

Issue with gradio library when trying to generate in txt2img or img2img (only ones tested). Only found on today's build, it worked yesterday.

Traceback (most recent call last): File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1282, in preprocess return self.choices.index(x) ValueError: '' is not in list

or

Traceback (most recent call last): File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1127, in preprocess return self.choices.index(x) ValueError: 2 is not in list

Steps to reproduce the problem

Click: Generate in either txt2img or img2img.

In img2img I was using SD Upscale on a latent upscale, but it happened on both.

What should have happened?

it should have generated an image. it errored out.

Commit where the problem happens

python: 3.10.6  •  torch: 1.12.1+cu113  •  xformers: 0.0.14.dev  •  gradio: 3.16.2  •  commit: 3e0f9a75  •  checkpoint: 13dfc9921f

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

set GIT=
set VENV_DIR=
set accelerate="true"
set COMMANDLINE_ARGS= --no-half --xformers
git pull
call webui.bat

List of extensions

LDSR | built-in |   Lora | built-in |   ScuNET | built-in |   SwinIR | built-in |   prompt-bracket-checker | built-in

Console logs

remote: Enumerating objects: 36, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 36 (delta 15), reused 23 (delta 9), pack-reused 0
Unpacking objects: 100% (36/36), 39.02 KiB | 570.00 KiB/s, done.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
   3e0f9a75..ea9bd9fc  master     -> origin/master
Updating 3e0f9a75..ea9bd9fc
Fast-forward
 javascript/hints.js                  |  4 ++--
 modules/images.py                    |  8 +++++---
 modules/modelloader.py               |  3 +++
 modules/sd_disable_initialization.py | 17 ++++++++++-------
 modules/sd_models.py                 |  6 +++++-
 modules/ui_extra_networks.py         |  2 +-
 scripts/prompt_matrix.py             | 24 +++++++++---------------
 scripts/xyz_grid.py                  | 25 ++++++++++++++++---------
 8 files changed, 51 insertions(+), 38 deletions(-)
venv "E:\SD\StableDiffusion2\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: ea9bd9fc7409109adcd61b897abc2c8881161256
Installing requirements for Web UI
Launching Web UI with arguments: --no-half --xformers
==============================================================================
You are running torch 1.12.1+cu113.
The program is tested to work with torch 1.13.1.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
=================================================================================
You are running xformers 0.0.14.dev.
The program is tested to work with xformers 0.0.16rc425.
To reinstall the desired version, run with commandline flag --reinstall-xformers.

Use --skip-version-check commandline argument to disable this check.
=================================================================================
Loading weights [13dfc9921f] from E:\SD\StableDiffusion2\models\Stable-diffusion\dreamshaper_332BakedVaeClipFix.safetensors
Creating model from config: E:\SD\StableDiffusion2\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 14.4s (load weights from disk: 0.2s, create model: 0.5s, apply weights to model: 11.0s, move model to device: 1.2s, load textual inversion embeddings: 1.4s).

Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1282, in preprocess
    return self.choices.index(x)
ValueError: '' is not in list
Traceback (most recent call last):
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1282, in preprocess
    return self.choices.index(x)
ValueError: '' is not in list
Traceback (most recent call last):
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1127, in preprocess
    return self.choices.index(x)
ValueError: 2 is not in list

Additional information

No response

bbecausereasonss commented 1 year ago

Having this issue anytime I try to apply changes to exertions, they never save.

To create a public link, set share=True in launch(). Traceback (most recent call last): File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api result = await self.call_function( File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, args) File "C:\Users\chlyw\Desktop\Automatic1111\modules\ui_extensions.py", line 26, in apply_and_restart check_access() File "C:\Users\chlyw\Desktop\Automatic1111\modules\ui_extensions.py", line 22, in check_access assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags" AssertionError: extension access disabled because of command line flags ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

bbecausereasonss commented 1 year ago

ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

charlesculp commented 1 year ago

I was able to get it working again by reverting the commit from @mcmonkey4eva to change the resolve / absolute path update.

Newb with git, so thanks for the discussion.

commit 88a46e8427fbaa73eb37c9eaabbb62b8647a5f32

@ -26,7 +26,7 @@ def add_pages_to_demo(app): def fetch_file(filename: str = ""): from starlette.responses import FileResponse

    if not any([Path(x).resolve() in Path(filename).resolve().parents for x in allowed_dirs]):
    if not any([Path(x).absolute() in Path(filename).absolute().parents for x in allowed_dirs]):
        raise ValueError(f"File cannot be fetched: {filename}. Must be in one of directories registered by extra pages.")

    ext = os.path.splitext(filename)[1].lower()
mcmonkey4eva commented 1 year ago

Do you mean reverting to that commit (ie undoing changes that came after), or do you mean undoing that commit itself fixes it? Because if you mean the latter, that... doesn't make any sense? 0.o That commit is very self-contained shouldn't be possible to affect code outside of itself. Other than maybe there's a pre-existing code bug that you are accidentally saved from because you're using symlinks and without that commit it just refuses to load data under a symlink? But that'd be odd.

EDIT: per your opening post

Commit where the problem happens python: 3.10.6  •  torch: 1.12.1+cu113  •  xformers: 0.0.14.dev  •  gradio: 3.16.2  •  commit: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/3e0f9a75438fa815429b5530261bcf7d80f3f101  •  checkpoint: 13dfc9921f

Your initial report predates my commit so... did you mean updating has now fixed it? Or... what?

charlesculp commented 1 year ago

Your initial report predates my commit so... did you mean updating has now fixed it? Or... what?

Wow. I will investigate more this evening. I had "git pull" in my web-user.bat, and ran it this morning. it updated. Then it didn't work, so I investigated. I used GitDesktop, found your entry, right clicked and chose "Revert Changes in Commit". I then removed "git pull" from my web-user.bat, and re-ran. Now it works.

Gerschel commented 1 year ago

return self.choices.index(x) ValueError: '' is not in list

return self.choices.index(x) ValueError: 2 is not in list

These errors are from dropdowns. The first one is saying that an empty string is not in the dropdowns backend choices.

The second one is attempting to use 2 as a lists value and trying to get the index, and it's also not in the backend choices.

Gradio's dropdowns can communicate by sending the index of the list item, or by sending the value, then during lookup for the information, it will use the proper one.

This type of error can be caused by a few things: by not syncing the front and backend, by using improper data, by setting the dropdown type to index but passing values, or the inverse, setting the type to values and passing indexes.

To hunt down the problem, you'll need to be aware of which dropdowns were included in the data transfer, then check their flow to see if it's correct.

For the empty string, this is because they did not set a default value on the dropdown, and when it passes, it has nothing to pass, and if they did not include handling for an empty string, it will error.

For the situation with the "2", that could be a string or index, I don't know.
You'd have to find the dropdown and look at it's "type".

kinoc commented 1 year ago

I experienced problem when doing a txt2img generation, then stopping server to pull update of code, then try regeneration with the prior txt2img browser page. It appears the state associated with the page and provided by the browser changed sufficiently between code versions to make the server process unhappy with the old format the stale browser page was providing. Saving the settings and refreshing the web page appeared to resync the page and the server and solve the problem (at least for me). You could of course open up a new browser after the update and copy the setting over for side by side testing.

Liso7150 commented 1 year ago

stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list

Liso7150 commented 1 year ago

Loading A111 WebUI Launcher ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i Settings file found, loading → Updating Settings File ✓ i Launcher Version 1.7.0 i Found a custom WebUI Config i No Launcher launch options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ → Checking requirements : i Python 3.10.6150.1013 found in registry: C:\Users\Admin\AppData\Local\Programs\Python\Python310\ i Clearing PATH of any mention of Python → Adding python 3.10 to path ✓ i Git found and already in PATH: C:\Program Files\Git\cmd\git.exe i Automatic1111 SD WebUI found: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui i One or more checkpoint models were found ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Loading Complete, opening launcher ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i Arguments are now: --medvram --xformers --ckpt-dir 'C:\Users\Admin\Documents\odele' --opt-sub-quad-attention --api ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Webui ✓ Done ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Webui ✓ Done ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: canvas-zoom remote: Enumerating objects: 17, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (9/9), done. remote: Total 17 (delta 4), reused 14 (delta 4), pack-reused 0 Unpacking objects: 100% (17/17), 6.76 KiB | 177.00 KiB/s, done. From https://github.com/richrobber2/canvas-zoom eee34cc..fd5d8a1 main -> origin/main ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: CFG-Schedule-for-Automatic1111-SD ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: multidiffusion-upscaler-for-automatic1111 remote: Enumerating objects: 19, done. remote: Counting objects: 100% (19/19), done. remote: Compressing objects: 100% (4/4), done. remote: Total 12 (delta 8), reused 12 (delta 8), pack-reused 0 Unpacking objects: 100% (12/12), 1.45 KiB | 49.00 KiB/s, done. From https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111

Launching Web UI with arguments: --autolaunch --medvram --xformers --ckpt-dir C:\Users\Admin\Documents\odele --opt-sub-quad-attention --api reading lora C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\models\Lora\hyperanatomy_MegamergeV1.safetensors: AssertionError Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 84, in init self.metadata = sd_models.read_metadata_from_safetensors(filename) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\sd_models.py", line 221, in read_metadata_from_safetensors assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file" AssertionError: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\models\Lora\hyperanatomy_MegamergeV1.safetensors is not a safetensors file

Loading weights [5d76b7f7b9] from C:\Users\Admin\Documents\odele\hyperhaven orange.safetensors Creating model from config: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying xformers cross attention optimization. Textual inversion embeddings loaded(0): Model loaded in 11.4s (load weights from disk: 0.9s, create model: 0.4s, apply weights to model: 9.5s, apply half(): 0.6s). Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 20.2s (import torch: 1.9s, import gradio: 1.2s, import ldm: 1.7s, other imports: 1.1s, list SD models: 0.1s, setup codeformer: 0.2s, load scripts: 1.0s, load SD checkpoint: 11.8s, create ui: 0.8s, gradio launch: 0.3s). Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list

djrananp commented 1 year ago

having issue with this multi frame video

File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\routes.py", line 408, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1313, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1163, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3476, in preprocess
    return [process_single_file(f) for f in x]
  File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3476, in <listcomp>
    return [process_single_file(f) for f in x]
  File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3442, in process_single_file
    f["name"],
KeyError: 'name'