Skip to content

[Bug]: IndexError: list index out of range #7102

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

Closed
1 task done
designboxcom opened this issue Jan 23, 2023 · 23 comments
Closed
1 task done

[Bug]: IndexError: list index out of range #7102

designboxcom opened this issue Jan 23, 2023 · 23 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@designboxcom
Copy link

Is there an existing issue for this?

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

What happened?

Trying to create a new model with Dreambooth extension

Steps to reproduce the problem

  1. Go to Dreambooth
  2. Create Tab
  3. Enter the informations (Model Name, 512x Model, v1-5-pruned.cktp as Source Checkpoint, DDIM as Scheduler)
  4. Click on Create Model Button

What should have happened?

A new Dreambooth model should be created but it oly returns the error pasted below.

Commit where the problem happens

97ba01a

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

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

@designboxcom designboxcom added the bug-report Report of a bug, yet to be confirmed label Jan 23, 2023
@mezotaken
Copy link
Collaborator

#7071
Use Ctrl+F5 to reload the page.

@designboxcom
Copy link
Author

Thank you. Yes. It resolved the issue. :)

@flowerdealer
Copy link

I'm also having this issue as of today, but a reload didn't fix it.

@mezotaken
Copy link
Collaborator

It needs a hard reload, not a regular reload. Did you do it?

@geocine
Copy link

geocine commented Jan 25, 2023

thank you!

@PedroPareja
Copy link

Thank you! I had the same problem

@nazsmith
Copy link

#7071 Use Ctrl+F5 to reload the page.

That was weird. I was having this problem and even restarting my computer didn't work. Either way, thanks!

@iamcos
Copy link

iamcos commented Jun 7, 2023

I Had the same issue today and later realised that i had a space bar in Deforum prompt where it was not supposed to be: frame count " 200" was like this instead of "200". After i fixed it, it runs fine

@DianaSpinka
Copy link

Ctrl + F5 doesn't help me. I can generate img2img but when I try to generate a batch I get an error "IndexError: list index out of range
Time taken: 37.9 sec.
A: 5.17 GB, R: 6.27 GB, Sys: 7.6/14.748 GB (51.6%)"
what can I do to fix it?

@AirmanEpic
Copy link

I had this error with Controlnet activated. I updated controlnet and it went away. Hope that helps for you.

@nohchi999
Copy link

nohchi999 commented Jul 29, 2023

I have the same problem, when i try to generate a batch. i get the IndexError: list index out of range. I already updated and reloaded all that stuff. The thing is, it generates one picture, but after that i get the error.

@Laisvydas3030
Copy link

the same problem, maybe there's a way to get it out....

@CounterBeat
Copy link

Same problem, img2img with CN works, but batch gives an error after the first image generation

@CounterBeat
Copy link

it was working fine in a few weeks ago

@uisato
Copy link

uisato commented Aug 3, 2023

same here, [IndexError: list index out of range] when trying to batch img2img.

@hackra76
Copy link

hackra76 commented Aug 3, 2023

same problem here with img2img batch, error after first image..

@Laisvydas3030
Copy link

Mikubill/sd-webui-controlnet#1848 problem solved

@CounterBeat
Copy link

Yes, it works without CN detectmap! Thanks!

@w-e-w
Copy link
Collaborator

w-e-w commented Aug 3, 2023

I probably should have making an announcement here too....

@aanuj96
Copy link

aanuj96 commented Aug 18, 2023

issue still there

@rugabunda
Copy link

rugabunda commented Aug 27, 2023

having this problem as well, turning off various extensions eventually alleviated it

@goburinking
Copy link

I need to solve the problem, can someone please help me.
IndexError: list index out of range

IndexError Traceback (most recent call last)
in <cell line: 45>()
65 time.sleep(4)
66 with open('/content/srv.txt', "r") as file: text = file.read()
---> 67 srv= re.findall(r"https?://(?:\S+?.)?trycloudflare.com\S*", text)[0]
68
69 for line in fileinput.input('/usr/local/lib/python3.10/dist-packages/gradio/blocks.py', inplace=True):

IndexError: list index out of range

@goburinking
Copy link

Stable Diffusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests