ComfyUI > Nodes > JPS Custom Nodes for ComfyUI > Generation TXT IMG Settings (JPS)

ComfyUI Node: Generation TXT IMG Settings (JPS)

Class Name

Generation TXT IMG Settings (JPS)

Category
JPS Nodes/Settings
Author
JPS (Account age: 370days)
Extension
JPS Custom Nodes for ComfyUI
Latest Updated
2024-05-22
Github Stars
0.04K

How to Install JPS Custom Nodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for JPS Custom Nodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter JPS Custom Nodes for ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Generation TXT IMG Settings (JPS) Description

Facilitates configuration of Txt2Img and Img2Img generation processes, offering mode selection and image input strength adjustment for creative control.

Generation TXT IMG Settings (JPS):

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.

Generation TXT IMG Settings (JPS) Input Parameters:

mode

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.

img_percentage

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.

Generation TXT IMG Settings (JPS) Output Parameters:

gen_mode

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.

img_strength

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.

Generation TXT IMG Settings (JPS) Usage Tips:

  • To generate images purely based on text descriptions, set the mode to "Txt2Img" and ignore the img_percentage parameter.
  • For modifying existing images with text input, set the mode to "Img2Img" and adjust the img_percentage to control the balance between the original image and the text modifications.

Generation TXT IMG Settings (JPS) Common Errors and Solutions:

Invalid mode selected

  • Explanation: The mode parameter was set to a value other than "Txt2Img" or "Img2Img".
  • Solution: Ensure that the mode parameter is set to either "Txt2Img" or "Img2Img".

img_percentage out of range

  • Explanation: The img_percentage parameter was set to a value outside the range of 0 to 100.
  • Solution: Adjust the img_percentage parameter to be within the valid range of 0 to 100.

Generation TXT IMG Settings (JPS) Related Nodes

Go back to the extension to check out more related nodes.
JPS Custom Nodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.