Acly / krita-ai-diffusion

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
https://www.interstice.cloud
GNU General Public License v3.0
6.94k stars 339 forks source link

Give an option to not split generated result across regions #806

Open jacobEAdamson opened 5 months ago

jacobEAdamson commented 5 months ago

Currently, when inpainting using a selection mask while also having regions defined and linked to layers, if the the user generates an image for the selection and applies one of the generated images, the image is applied to each of the region layers (as a group). This is sometimes not what I want, as sometimes I want to modify the generated result as part of a single layer, or do not want my original region defining paint layers to be modified.

Is it possible to add an option when inpainting while regions are active to generate images to a new standalone layer instead of modifying and grouping based on region? Either in the system settings or as an option when using "Generate (Custom)" or "Refine (Custom)"

Acly commented 5 months ago

You can try this in 1.18.1, but there is no UI for it yet.

In settings.json (location) there is an option "apply_behavior". If you set it to "layer" it will behave as you request I think.

There's still some more options (replace, layer_group, layer_hide_below, transparency_mask) and I haven't decided which ones to keep/expose.

jacobEAdamson commented 5 months ago

Ah, perfect! Totally fine with it just being a setting in a file (though it would be nice to have some Readme that enumerates the options if it doesn't exist already)