EasyUse/Imagegenerated
ImageCount(imageCount)
ImageCount returns the number of images contained in an input batch. It accepts an IMAGE tensor and outputs a single INT value representing the image count.
image Count
images
count
Easy Use
ImageCount returns the number of images contained in an input batch. It accepts an IMAGE tensor and outputs a single INT value representing the image count.
Inputs
- images (IMAGE, required): An image or batch of images. The node counts the number of images in this input.
Outputs
- INT: The number of images in the input batch.
Usage Notes
The returned count is based on the batch dimension of the input image tensor. A single image input returns 1; a batch of multiple images returns the total number of images in that batch.
This node is useful for conditional logic, loop controls, or any workflow step where you need to know how many images are being processed. The output can be connected to any node expecting an integer value.
Comments
Sign in with GitHub to join the discussion.