Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance and resize AI art creation hint images for improved quality and accuracy.
The HintImageEnchance
node is designed to enhance and resize hint images, which are auxiliary images used to guide the generation process in AI art creation. This node processes each hint image by converting it to a numpy array, applying a specified resizing mode, and then converting it back to a tensor. The primary goal of this node is to ensure that hint images are appropriately scaled and enhanced to match the desired output dimensions, thereby improving the quality and accuracy of the generated images. By offering multiple resizing modes, it provides flexibility in how the images are adjusted, ensuring that they fit well within the target dimensions while maintaining their essential features.
This parameter accepts a list of hint images that you want to enhance and resize. Each image in the list is processed individually to ensure it meets the desired specifications. The images should be provided in a format that can be converted to a numpy array for further processing.
This parameter specifies the target width for the generated images. It determines the width to which the hint images will be resized. The value should be an integer representing the number of pixels.
This parameter specifies the target height for the generated images. It determines the height to which the hint images will be resized. The value should be an integer representing the number of pixels.
This parameter defines the mode of resizing to be applied to the hint images. It can take one of the following values: ResizeMode.RESIZE.value
, ResizeMode.OUTER_FIT.value
, or ResizeMode.INNER_FIT.value
. Each mode offers a different approach to resizing, allowing you to choose the one that best fits your needs. ResizeMode.RESIZE
resizes the image to the exact dimensions specified, ResizeMode.OUTER_FIT
ensures the image fits within the target dimensions without cropping, and ResizeMode.INNER_FIT
ensures the image fills the target dimensions, potentially cropping parts of the image.
This output is a tensor containing the enhanced and resized hint images. Each image in the tensor has been processed according to the specified resizing mode and target dimensions, ensuring they are ready for use in the image generation process. The tensor format allows for efficient handling and integration with other nodes in the AI art creation pipeline.
ResizeMode.OUTER_FIT
mode, which ensures the entire image fits within the target dimensions without cropping.ResizeMode.INNER_FIT
mode, which may crop parts of the image but ensures no empty space is left.ResizeMode.RESIZE
mode, which scales the image to the specified width and height without considering the aspect ratio.image_gen_width
and image_gen_height
are not compatible with the resizing mode selected.ResizeMode.OUTER_FIT
or ResizeMode.INNER_FIT
modes.resize_mode
parameter.resize_mode
parameter is set to one of the supported values: ResizeMode.RESIZE.value
, ResizeMode.OUTER_FIT.value
, or ResizeMode.INNER_FIT.value
.© Copyright 2024 RunComfy. All Rights Reserved.