Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates configuration of Txt2Img and Img2Img generation processes, offering mode selection and image input strength adjustment for creative control.
The Generation TXT IMG Settings (JPS) node is designed to facilitate the configuration of text-to-image (Txt2Img) and image-to-image (Img2Img) generation processes. This node allows you to select the mode of generation and adjust the strength of the image input, providing flexibility and control over the creative output. By setting the appropriate mode and image strength, you can fine-tune the balance between text and image inputs, ensuring that the generated content aligns with your artistic vision. This node is particularly useful for AI artists who want to experiment with different generation techniques and achieve specific visual effects.
The mode
parameter determines the type of generation process to be used. It can be set to either "Txt2Img" or "Img2Img". When set to "Txt2Img", the node focuses on generating images based on textual descriptions. When set to "Img2Img", the node modifies an existing image based on the provided input. This parameter is crucial as it defines the primary method of image generation.
The img_percentage
parameter controls the strength of the image input in the Img2Img mode. It is an integer value that ranges from 0 to 100, with a default value of 50. This parameter is only relevant when the mode is set to "Img2Img". A higher percentage means that the existing image will have a stronger influence on the final output, while a lower percentage will result in more significant modifications based on the text input.
The gen_mode
output indicates the selected generation mode. It returns an integer value where 1 represents "Txt2Img" and 2 represents "Img2Img". This output is useful for understanding which generation process was applied.
The img_strength
output provides the strength of the image input as a floating-point value. In "Txt2Img" mode, this value is set to 0.001, indicating minimal influence from any image input. In "Img2Img" mode, it is calculated based on the img_percentage
parameter, providing a precise measure of the image's influence on the final output.
mode
to "Txt2Img" and ignore the img_percentage
parameter.mode
to "Img2Img" and adjust the img_percentage
to control the balance between the original image and the text modifications.mode
parameter was set to a value other than "Txt2Img" or "Img2Img".mode
parameter is set to either "Txt2Img" or "Img2Img".img_percentage
parameter was set to a value outside the range of 0 to 100.img_percentage
parameter to be within the valid range of 0 to 100.© Copyright 2024 RunComfy. All Rights Reserved.