Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates visualizing image block parameters with text annotations for AI artists using Python Imaging Library.
The PlotBlockParams
node is designed to facilitate the visualization of parameters associated with image blocks in a structured and coherent manner. This node is particularly useful for AI artists who need to overlay parameter information onto images, making it easier to analyze and interpret the data visually. By leveraging the capabilities of the Python Imaging Library (PIL), this node allows you to add text annotations to images, ensuring that each image is accompanied by its corresponding parameters. This can be especially beneficial for debugging, presentations, or any scenario where understanding the relationship between images and their parameters is crucial.
This parameter expects a batch of images in tensor format. Each image in the batch will be processed to include the corresponding parameter information. The images should be in the shape of (batch_size, height, width, channels). The quality and clarity of the annotations depend on the resolution of these images.
This parameter is a list of dictionaries, where each dictionary contains the parameters to be annotated on the corresponding image. The number of dictionaries in this list should match the number of images provided. Each dictionary should have keys like regex
and value
that will be used to generate the text annotations.
This parameter is a string that determines whether to add parameter annotations to the images. If set to "false"
, no annotations will be added. Any other value will result in the parameters being annotated on the images. This allows for flexible control over whether or not to include parameter information in the output images.
This parameter is an integer that specifies the number of columns to arrange the images in the final output. If set to 0, the node will automatically calculate the number of columns based on the square root of the number of images, ensuring a balanced grid layout. This helps in organizing the images neatly for better visualization.
This output parameter is a tensor containing the batch of images with the parameter annotations added. The images are returned in the shape of (batch_size, height, width, channels), ready for further processing or visualization. This output allows you to easily see the relationship between each image and its corresponding parameters.
add_params
to "false"
if you want to visualize the images without any annotations for a cleaner look.cols_num
to control the layout of the output images, especially when dealing with a large batch of images.params
list matches the number of images in the images
tensor.ShareTechMono-Regular.ttf
is present in the FONTS_DIR
directory and that the path is correctly specified.regex
and value
).params
list contains the required keys and that the values are correctly formatted.© Copyright 2024 RunComfy. All Rights Reserved.