Closed Dutch77 closed 4 months ago
Ok. I figured it out. I was exporting my png file in photopea and I had disabled option don't use palletes
. Apparently PIL Image cannot extract channels from such images and it explodes here https://github.com/hako-mikan/sd-webui-regional-prompter/blob/main/scripts/regions.py#L533
We can probably close this but I think this info can be really handy for someone. I lost several hours today because of this.
Describe the bug I want to use txt2img with regional prompter mask mode, but mask cannot be loaded. These are data sent to the api:
Produces error
Tried with example mask from this project. For some reason it's unable to extract mask.
Please if you're going to fix it would be great if it could accept a mask in base64, so it wouldn't have to be uploaded to a disk in advance - that would be super cool feature.
Thanks
Environment version: v1.9.4 • python: 3.10.12 • torch: 2.1.0+cu121 • xformers: 0.0.22.post7 • gradio: 3.41.2 • checkpoint: d6a48d3e20
Other Enabled Extensions