hako-mikan / sd-webui-regional-prompter

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

Can't use more than two masks in Latent mode #312

Open LizardKing777 opened 4 months ago

LizardKing777 commented 4 months ago

If I use more than two masks in latent mode, I get this error at every iteration:

*** Error executing callback cfg_denoised_callback for /home/lizard/Downloads/stable-diffusion-webui/extensions/sd-webui-regional-prompter/scripts/rp.py
    Traceback (most recent call last):
      File "/home/lizard/Downloads/stable-diffusion-webui/modules/script_callbacks.py", line 224, in cfg_denoised_callback
        c.callback(params)
      File "/home/lizard/Downloads/stable-diffusion-webui/extensions/sd-webui-regional-prompter/scripts/rp.py", line 591, in denoised_callback
        denoised_callback_s(self, params)
      File "/home/lizard/Downloads/stable-diffusion-webui/extensions/sd-webui-regional-prompter/scripts/latent.py", line 194, in denoised_callback_s
        fil = self.filters[a + b*areas]
    IndexError: list index out of range

OS: Ubuntu 22.04 Web-UI version: Just updated to latest version SD Version: 1.5 & XL LoRA/LoCon/LoHa: All not working

Other Enabled Extensions Dynamic Prompts (doesn't work whether active or not) Dynamic Thresholding (doesn't work whether active or not) Lora Masks (doesn't work whether active or not) NegPip (doesn't work whether active or not) Composible Lora( same) CD Tuner (same)

hako-mikan commented 3 months ago

That happens when the number of masks and the number of specified regions don't match.

LizardKing777 commented 1 month ago

If I switch to Attention mode and use the exact same prompt and mask it works just fine.