Skip to content

Add binary mask option? #27

@Jonseed

Description

@Jonseed

I was trying to use this with Inpaint-CropAndStitch, and I kept getting the error: AssertionError: Batch size of images and masks must be the same. But I double-checked, and there was only 1 mask and 1 image outputting from canvas_tab. The thing that finally fixed it was using the Impact-Pack node ToBinaryMask to convert the mask from canvas_tab into a binary mask (only 0 or 255 values), and that did it. Inpaint-CropAndStitch needs to receive a binary mask, and the masks from canvas_tab have soft edges with values between 0 and 255. So I have to convert it to a binary mask (non-zero values are all set to 255). It would be nice to have a toggle inside canvas_tab to natively output binary masks for those nodes that must receive binary masks.

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