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]: Cannot View preview and cannot use it in img2img #6

Closed
1 task done
GaryRandom opened this issue Apr 11, 2023 · 8 comments
Closed
1 task done

[Bug]: Cannot View preview and cannot use it in img2img #6

GaryRandom opened this issue Apr 11, 2023 · 8 comments

Comments

@GaryRandom
Copy link

GaryRandom commented Apr 11, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

What happened?

I cannot add points by this extension in img2img, but can add points in txt2img.
Then, when I click preview, it cannot show image and report error.

Steps to reproduce the problem

  1. start webui at a serve in the local network
  2. access webui at a laptop in the local network
  3. bug occurs

What should have happened?

Successfully preview segmentation map

Commit where the problem happens

e93d178

What browsers do you use to access the UI ?

No response

Command Line Arguments

No

Console logs

Traceback (most recent call last):
  File "xxx/stablediffusion/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "xxx/stablediffusion/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "xxx/stablediffusion/stable-diffusion-webui/venv/lib/python3.9/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

No response

@GaryRandom GaryRandom changed the title [Bug]: [Bug]: Cannot View preview and cannot use it in img2img Apr 11, 2023
@pzzmyc
Copy link

pzzmyc commented Apr 11, 2023

same error: IndexError: list index out of range

@continue-revolution
Copy link
Owner

continue-revolution commented Apr 11, 2023

You should probably update your webui to the newest version. What’s your version of webui?

@GaryRandom
Copy link
Author

You should probably update your webui to the newest version. What’s your version of webui?

a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
I will update and test again

@GaryRandom
Copy link
Author

You should probably update your webui to the newest version. What’s your version of webui?

a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 I will update and test again

Update to latest webui solve this problem

@zhongnannk
Copy link

File "/usr/local/lib/python3.9/dist-packages/gradio/routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 1073, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "/usr/local/lib/python3.9/dist-packages/gradio/components.py", line 1203, in preprocess
return self.choices.index(x)

how to fix this problem?

@continue-revolution
Copy link
Owner

continue-revolution commented Apr 18, 2023

File "/usr/local/lib/python3.9/dist-packages/gradio/routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "/usr/local/lib/python3.9/dist-packages/gradio/components.py", line 1203, in preprocess return self.choices.index(x)

how to fix this problem?

This is due to a bug inside gradio. Could you provide me the steps to reproduce this error? I can reproduce this error and find a way to bypass this gradio bug.

@pggpeng
Copy link

pggpeng commented Apr 20, 2023

File "/usr/local/lib/python3.9/dist-packages/gradio/routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 1073, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "/usr/local/lib/python3.9/dist-packages/gradio/blocks.py", line 962, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "/usr/local/lib/python3.9/dist-packages/gradio/components.py", line 1203, in preprocess return self.choices.index(x)
how to fix this problem?

This is due to a bug inside gradio. Could you provide me the steps to reproduce this error? I can reproduce this error and find a way to bypass this gradio bug.

Same problem. If enable this extension, when i run txt2img or img2img, this problem occured. If disable this extension, everything is ok. My version: python: 3.10.9  •  torch: 2.0.0+cu117  •  xformers: 0.0.18  •  gradio: 3.23.0  •  commit: 22bcc7be

@continue-revolution
Copy link
Owner

#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@pzzmyc @continue-revolution @zhongnannk @GaryRandom @pggpeng and others