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

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

Open
LizardKing777 opened this issue Mar 28, 2024 · 2 comments
Open

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

LizardKing777 opened this issue Mar 28, 2024 · 2 comments

Comments

@LizardKing777
Copy link

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
Copy link
Owner

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

@LizardKing777
Copy link
Author

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

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

2 participants