Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Version: v1.6.0 Options in Inpainting are doubled, ValueError: ['Just resize (latent upscale)', 'Just resize (latent upscale)'] is not in list #12886

Closed
1 task done
dirtycasual36 opened this issue Aug 31, 2023 · 16 comments
Labels
not-an-issue This issue is not with the repo itself.

Comments

@dirtycasual36
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Sorry if I'm doing this wrong as I have absolutely no knowledge about code whatsoever.
After updating to 1.6.0, my ui suddenly looks like as seen as below. Upon inpainting an image and clicking "Generate", it gives the error:
ValueError: ['Just resize (latent upscale)', 'Just resize (latent upscale)'] is not in list
deleting and reinstalling SD or the webui doesn't fix the issue

Opera Snapshot_2023-08-31_135536_127 0 0 1

Steps to reproduce the problem

  1. Go to Inpainting
  2. Inpaint image and press "Generate"
  3. Error

What should have happened?

An image should be generated

Sysinfo

sysinfo-2023-08-31-07-35.txt

What browsers do you use to access the UI ?

Other

Console logs

venv "C:\AI\stable-diffusion-webui\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)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --xformers --medvram
Warning: bad setting value: disable_all_extensions: ['extra', 'extra'] (list; expected str)
The program is likely to not work with bad settings.
Settings file: C:\AI\stable-diffusion-webui\config.json
Either fix the file, or delete it and restart.
Loading weights [cb15a7187a] from C:\AI\stable-diffusion-webui\models\Stable-diffusion\Deliberate-inpainting.safetensors
C:\AI\stable-diffusion-webui\extensions\stable-diffusion-NPW\scripts\npw.py:26: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  reset_but = gr.Button(value='', elem_id='npw-x').style(full_width=False, size='sm')
C:\AI\stable-diffusion-webui\extensions\stable-diffusion-NPW\scripts\npw.py:26: GradioDeprecationWarning: Use `scale` in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not.
  reset_but = gr.Button(value='', elem_id='npw-x').style(full_width=False, size='sm')
Running on local URL:  http://127.0.0.1:7860
Creating model from config: C:\AI\stable-diffusion-webui\configs\v1-inpainting-inference.yaml

To create a public link, set `share=True` in `launch()`.
Startup time: 16.8s (prepare environment: 2.7s, import torch: 7.6s, import gradio: 1.0s, setup paths: 1.2s, initialize shared: 0.2s, other imports: 1.8s, setup codeformer: 0.1s, load scripts: 1.1s, create ui: 0.5s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
Model loaded in 3.9s (load weights from disk: 0.8s, create model: 0.4s, apply weights to model: 0.8s, calculate empty prompt: 1.9s).
Traceback (most recent call last):
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\AI\stable-diffusion-webui\modules\ui_extra_networks.py", line 392, in pages_html
    return refresh()
  File "C:\AI\stable-diffusion-webui\modules\ui_extra_networks.py", line 400, in refresh
    ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
  File "C:\AI\stable-diffusion-webui\modules\ui_extra_networks.py", line 400, in <listcomp>
    ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
  File "C:\AI\stable-diffusion-webui\modules\ui_extra_networks.py", line 162, in create_html
    self.items = {x["name"]: x for x in self.list_items()}
  File "C:\AI\stable-diffusion-webui\modules\ui_extra_networks.py", line 162, in <dictcomp>
    self.items = {x["name"]: x for x in self.list_items()}
  File "C:\AI\stable-diffusion-webui\extensions-builtin\Lora\ui_extra_networks_lora.py", line 69, in list_items
    for index, name in enumerate(networks.available_networks):
RuntimeError: dictionary changed size during iteration
Traceback (most recent call last):
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components\radio.py", line 170, in preprocess
    return [value for _, value in self.choices].index(x)
ValueError: ['latent nothing', 'latent nothing'] is not in list

Additional information

No response

@dirtycasual36 dirtycasual36 added the bug-report Report of a bug, yet to be confirmed label Aug 31, 2023
@Pompel3d
Copy link

Had the same problem. Solved it by updating under extensions and restart SD and A1111

@66li
Copy link

66li commented Aug 31, 2023

Jump to the settings page and click apply, which may solve the problem

@shavira99
Copy link

shavira99 commented Aug 31, 2023

Have same problem, nothing listed in comments doesn't help me
Had you resolve it?
111
22214

@r0mar0ma
Copy link

The same problem for absolutely ALL gradio.Radio() buttons.

@Sharnalk11
Copy link

Same probleme here, and the solutions in the comments didnt help me

@Z-L-D
Copy link

Z-L-D commented Aug 31, 2023

What version of gradio is being reported at the bottom of the page?

@dirtycasual36
Copy link
Author

yeah same, I also did what the first two comments said, I even deleted and redownloaded SD and a111, it didn't fix it. I just settled on removing auto update and rolled back to an older version via hard reset

@dirtycasual36
Copy link
Author

What version of gradio is being reported at the bottom of the page?

I can't remember since I reset my SD to an older version, but I had it on auto update so I'm assuming the latest version

@Z-L-D
Copy link

Z-L-D commented Aug 31, 2023

Are there any errors when you run the install? Try installing 1.6 again in a new folder.

@IntendedConsequence
Copy link

This seems a likely culprit: gradio-app/gradio#5232
Affects Radio buttons and CheckboxGroup
I installed previous commit gradio-app/gradio@b3e50db
and it fixed the issue
I did not reinstall webui, and did not delete venv

@r0mar0ma
Copy link

r0mar0ma commented Aug 31, 2023

canvas-zoom (https://github.com/richrobber2/canvas-zoom.git) extension is a reason. It's modyfying gradio in venv folder.
Note that switching it OFF is not solving a problem, need to delete extensions\canvas-zoom folder.
And need to delete venv\Lib\site-packages\gradio and venv\Lib\site-packages\gradio-3.41.2.dist-info (UI will redownload unmodified gradio on start).

@catboxanon
Copy link
Collaborator

@daswer123 Do you want to take a look at this? Seems like the extension version is modifying the Gradio install for some reason.

For everyone else reading this: the canvas extension is built-in as of 1.5.0, so it's been available for quite some time (canvas-zoom-and-pan). You can safely remove the extension version and reap the same functionality without the problems described in this issue.

@catboxanon
Copy link
Collaborator

Also -- I'm going to close this as instructions in #12886 (comment) are sufficient. The issue is caused upstream and not by the webui.

@catboxanon catboxanon added not-an-issue This issue is not with the repo itself. and removed bug-report Report of a bug, yet to be confirmed labels Aug 31, 2023
@daswer123
Copy link
Collaborator

daswer123 commented Aug 31, 2023

Yes, thanks for letting me know, it's because the modified version is 3.41.0 and I'm in the process of upgrading to the new 3.41.2. You can remove canvas-zoom and the gradio will automatically revert to standard, I'll update modifyed version in an hour.

UPD: Fixed it

@gumpngreen
Copy link

canvas-zoom (https://github.com/richrobber2/canvas-zoom.git) extension is a reason. It's modyfying gradio in venv folder. Note that switching it OFF is not solving a problem, need to delete extensions\canvas-zoom folder. And need to delete venv\Lib\site-packages\gradio and venv\Lib\site-packages\gradio-3.41.2.dist-info (UI will redownload unmodified gradio on start).

That fixed it! Thanks.

@NoMansPC
Copy link

NoMansPC commented Sep 5, 2023

canvas-zoom (https://github.com/richrobber2/canvas-zoom.git) extension is a reason. It's modyfying gradio in venv folder. Note that switching it OFF is not solving a problem, need to delete extensions\canvas-zoom folder. And need to delete venv\Lib\site-packages\gradio and venv\Lib\site-packages\gradio-3.41.2.dist-info (UI will redownload unmodified gradio on start).

That fixed it! Thanks.

Confirming that this fixed it for me too. Had to redownload canvas zoom, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-an-issue This issue is not with the repo itself.
Projects
None yet
Development

No branches or pull requests