EmptyImage:
The EmptyImage node is designed to generate blank images of specified dimensions and color. This can be particularly useful for initializing image data structures or creating placeholder images in your AI art projects. By allowing you to specify the width, height, batch size, and color, this node provides flexibility in creating images that meet your specific needs. Whether you need a single image or a batch of images, the EmptyImage node can efficiently generate them on your chosen device, making it a versatile tool in your image processing workflow.
EmptyImage Input Parameters:
width
The width parameter specifies the width of the generated image in pixels. It accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION. Adjusting this parameter will change the horizontal size of the output image.
height
The height parameter defines the height of the generated image in pixels. Similar to the width parameter, it accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION. Modifying this parameter will alter the vertical size of the output image.
batch_size
The batch_size parameter determines the number of images to generate in a single batch. It accepts integer values with a default of 1, a minimum of 1, and a maximum of 4096. This parameter is useful when you need to create multiple images simultaneously.
color
The color parameter sets the color of the generated image using an integer value representing the RGB color code. It accepts values ranging from 0 to 0xFFFFFF, with a default of 0 (black). This parameter allows you to customize the color of the blank image.
EmptyImage Output Parameters:
IMAGE
The IMAGE output parameter returns the generated image(s) as a tensor. This tensor contains the pixel data for the image(s) created based on the specified input parameters. The output can be used directly in subsequent image processing or AI art generation tasks.
EmptyImage Usage Tips:
- To create a white image, set the
colorparameter to 0xFFFFFF. - Use the
batch_sizeparameter to generate multiple images at once, which can be useful for batch processing tasks. - Adjust the
widthandheightparameters to match the dimensions required for your specific project or workflow.
EmptyImage Common Errors and Solutions:
"Invalid width or height value"
- Explanation: This error occurs when the
widthorheightparameter is set outside the allowed range. - Solution: Ensure that the
widthandheightvalues are within the specified minimum and maximum limits.
"Batch size exceeds maximum limit"
- Explanation: This error happens when the
batch_sizeparameter is set to a value greater than 4096. - Solution: Reduce thebatch_sizevalue to 4096 or less.
"Invalid color value"
- Explanation: This error is triggered when the
colorparameter is set to a value outside the range of 0 to 0xFFFFFF. - Solution: Set the
colorparameter to a valid RGB color code within the specified range.
