Skip to content

How to apply mask softness only on one side of the mask? #93

@Sanster

Description

@Sanster

Hi, thank you for your outstanding work. I am adding an outpainting function in my open-source project and have a question to ask: How can I modify the soften_mask function to make it only apply "soft" to one side of the mask?

def soften_mask(np_rgba_image, softness, space, use_fft=True):

This is the current effect, if I only want to outpaint one side, the bottom mask will also be soft.

image mask
expanded_image expanded_mask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions