stable.art icon indicating copy to clipboard operation
stable.art copied to clipboard

Inpainting inserts Smart Objects with layer mask matching the initial selection

Open JTJutajoh opened this issue 2 years ago • 1 comments

When using a non-rectangular selection to perform inpainting, such as a lasso selection, the resulting Smart Object should come with a layer mask that masks out the parts that were not included in the selection. This would be especially useful when using more advanced selections such as a feathered lasso selection.

JTJutajoh avatar Jan 17 '23 23:01 JTJutajoh

An alternative to this would be an option to keep the selection active after the smart object has been inserted, so that it can be used immediately to create this mask. Honestly, both of these options would be nice to have.

JTJutajoh avatar Jan 17 '23 23:01 JTJutajoh

Every time I render the selection goes away, such that it needs to be made again. Is this the intended use-model or am I doing it wrong? The selection needs to persist after inpainting, otherwise this is a very troublesome workflow.

Alchete avatar Jan 23 '23 20:01 Alchete

@Alchete This is a Photoshop limitation - it itself removes the selection, but I am working on a workaround. However, if you want just to generate more images with the same selection, then you can click "Generate more", and it will use the same selection but new parameters (e.g. prompt, steps, sampling method, etc).

isekaidev avatar Jan 25 '23 18:01 isekaidev

Done. Could you test and give feedback on how it works for you?

isekaidev avatar Jan 30 '23 10:01 isekaidev

Done. Could you test and give feedback on how it works for you?

Almost perfect, the process of creating an inpainting with a layer mask is exactly what I was hoping for. There is only one problem, I made this separate issue about it: #36

JTJutajoh avatar Feb 01 '23 09:02 JTJutajoh