Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate image list from JSON keys for AI art with configurable dimensions, noise, and encoding for automation.
LF_ImageListFromJSON is a node designed to generate a list of images based on the keys from a provided JSON object. This node is particularly useful for AI artists who need to create a batch of images with specific dimensions, either blank or with added noise, depending on the configuration. The node processes the JSON input to determine the number of images to generate and uses the specified parameters to control the characteristics of these images. The generated images are then encoded and sent to a server for further processing or display. This node simplifies the task of creating multiple images programmatically, making it an essential tool for automated image generation workflows.
This parameter expects a JSON object that contains the keys which will be used to determine the number of images to generate. Each key in the JSON object represents an image to be created. The JSON object serves as a blueprint for the image generation process.
This boolean parameter controls whether noise should be added to the generated images. If set to True
, the images will contain random noise, which can be useful for creating varied and textured images. If set to False
, the images will be blank. The default value is False
.
This integer parameter specifies the width of the generated images in pixels. It determines the horizontal dimension of each image. The width should be set according to the desired output size for the images.
This integer parameter specifies the height of the generated images in pixels. It determines the vertical dimension of each image. The height should be set according to the desired output size for the images.
This integer parameter is used to seed the random number generator, ensuring reproducibility of the generated images. By setting a specific seed value, you can ensure that the same set of images is generated each time the node is executed. The seed value can range from 0 to 0xFFFFFFFFFFFFFFFF.
This output parameter returns a tensor containing the batch of generated images. Each image in the tensor corresponds to a key in the input JSON object. The tensor format is suitable for further processing or analysis in AI workflows.
This output parameter returns a list of keys from the input JSON object. These keys correspond to the generated images and can be used to identify or reference the images in subsequent steps.
This output parameter returns the number of images generated, which is equal to the number of keys in the input JSON object. It provides a quick reference to the total count of images created by the node.
This output parameter returns the width of the generated images, as specified in the input parameters. It confirms the horizontal dimension of the images.
This output parameter returns the height of the generated images, as specified in the input parameters. It confirms the vertical dimension of the images.
json_input
parameter contains a valid JSON object with the desired keys to generate the correct number of images.add_noise
parameter to create varied images by adding random noise, which can be useful for training AI models or creating textured backgrounds.width
and height
parameters according to the desired output size for your images to ensure they meet your project's requirements.seed
value to reproduce the same set of images in multiple runs, which is useful for consistency in experiments or demonstrations.json_input
parameter does not contain a valid JSON object.json_input
parameter is a properly formatted JSON object with the necessary keys.width
or height
parameter is missing or not set.width
and height
parameters to define the dimensions of the generated images.seed
parameter is set to a value outside the acceptable range.seed
value is within the range of 0 to 0xFFFFFFFFFFFFFFFF.© Copyright 2024 RunComfy. All Rights Reserved.