hako-mikan / sd-webui-regional-prompter

set prompt to divided region
GNU Affero General Public License v3.0
1.58k stars 133 forks source link

IndexError when specify batch size #324

Open chthub opened 6 months ago

chthub commented 6 months ago

Describe the bug A clear and concise description of what the bug is. when batch size is 1, it works well, but if I set the batch size to 4, it report:

*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

I try to debug: image

it seems that the index out of the range of the list:

---
RP Options [False] 1
*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

---
RP Options [False] 2
*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

---
RP Options [False] 2
*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

---
RP Options [False] 3
*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

---
RP Options [False] 3
*** Error creating infotext for key "RP Options"
    Traceback (most recent call last):
      File "/AImage/stable-diffusion-webui/modules/processing.py", line 808, in create_infotext
        generation_params[key] = value[index]
                                 ~~~~~^^^^^^^
    IndexError: list index out of range

Environment Web-UI version:1.9.3 SD Version:sdxl1.0 no LoRA/LoCon/LoHa

Other Enabled Extensions

FriedGenera commented 5 months ago

I'm having the same problem on Web-UI 1.9.4, and it also breaks adetailer when you have multiple prompts.

woCmodsiW commented 3 months ago

Web-UI v: [v1.10.1] This problem is still occurring as previously detailed in the issue.

wangbo6886 commented 1 month ago

I also have the same problem. Open adetailer and set batch size > 1.