Replies: 1 comment 1 reply
-
ImageToMask can work with batches of images since yesterday. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
first of all: great tool and kudos for sharing it as oss!
In my beginner attempts at doing animations with different control nets I found myself wanting a mask. However, I found out that the Convert Image to Mask Node only created the first image as the mask and not the nice batch of images that where actually loaded and needed for my idea.
Digging around in the source I found two minor changes needed in
nodes_masks.py
to fix this:The Solid Mask node needs a batch_size attribute (there could be a better way to do this as creating a number of masks that are exactly the same seems a bit bad)
I have tested this using a workflow involving MaskComposite Nodes (subtract, and, & multiply operations) and ConvertMasktoImage Nodes. It seems to work well enough for my needs.
However, I do not have extensive experience of using ComfyUI in general and masks in particular. There is a high probability that more chances are needed and/or that I have broken something. There is also a possibility that I'm doing things in a wrong or awkward way.
Should I rather build this as a custom nodes repo, or is it something that sounds ok to have in the basic mask nodes as per above?
Beta Was this translation helpful? Give feedback.
All reactions