AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Unable to generate images - return self.choices.index(x) ValueError: '' is not in list #5607

Open davzeppelin opened 1 year ago

davzeppelin commented 1 year ago

Is there an existing issue for this?

What happened?

Hello, i updated (with git pull) after a week or two and now i get this error when i try to generate anything in txt2img. I tried searching here but couldn't find how to solve it. Before doing git pull everything was running normally, i generated dozens of images today (with the previous build)

Thank you very much for any assistance!

################################################################ Launching launch.py... ################################################################ Python 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] Commit hash: 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 Installing requirements for Web UI Launching Web UI with arguments: --api No module 'xformers'. Proceeding without it. LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading weights [81761151] from /media/ed/Data500/stable diffusion/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.ckpt Applying cross attention optimization (Doggettx). Model loaded. Loaded a total of 0 textual inversion embeddings. Embeddings: 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 "/media/ed/Data500/stable diffusion/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/routes.py", line 284, in run_predict output = await app.blocks.process_api( File "/media/ed/Data500/stable diffusion/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/blocks.py", line 980, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "/media/ed/Data500/stable diffusion/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/blocks.py", line 891, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "/media/ed/Data500/stable diffusion/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/components.py", line 1097, in preprocess return self.choices.index(x) ValueError: '' is not in list

Steps to reproduce the problem

writing anything in txt2image and pressing generate

What should have happened?

should have started the image generation

Commit where the problem happens

685f9631b56ff8bd43bce24ff5ce0f9a0e9af490

What platforms do you use to access UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Brave

Command Line Arguments

No response

Additional information, context and logs

No response

davzeppelin commented 1 year ago

Update, after rebooting it seems to have gone away, i had unsaved work and i couldn't try doing that earlier. Still, maybe it could be be a somehow useful report if someone has the same issue

Liso7150 commented 1 year ago

i had the same

xiaoshuniepan commented 1 year ago

same here

Easterlings commented 1 year ago

same problem

pseudotensor commented 1 year ago

same, can't use "index" way for radio buttons

cullenbohannon commented 1 year ago

Same issue with img2image or inpainting in v1.6.0

image

All inputs have these double values, resulting in

Traceback (most recent call last):
  File "\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "\site-packages\gradio\blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "\site-packages\gradio\blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "\site-packages\gradio\components\radio.py", line 170, in preprocess
    return [value for _, value in self.choices].index(x)
ValueError: ['Just resize', 'Just resize'] is not in list
cullenbohannon commented 1 year ago

Oddly, this seems to fix itself after re-installing a couple of times - could be the cache between 1.5lts and 1.6?