Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary mask option? #27

Open
Jonseed opened this issue Oct 8, 2024 · 0 comments
Open

Add binary mask option? #27

Jonseed opened this issue Oct 8, 2024 · 0 comments

Comments

@Jonseed
Copy link

Jonseed commented Oct 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant