ComfyUI > Nodes > ComfyUI Fooocus Nodes > Fooocus ImagePrompt

ComfyUI Node: Fooocus ImagePrompt

Class Name

Fooocus ImagePrompt

Category
Fooocus
Author
Seedsa (Account age: 2658days)
Extension
ComfyUI Fooocus Nodes
Latest Updated
2024-08-08
Github Stars
0.05K

How to Install ComfyUI Fooocus Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI Fooocus Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Fooocus Nodes 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

Fooocus ImagePrompt Description

Preprocess images for AI art prompts with specific techniques for enhanced compatibility and effectiveness in AI models.

Fooocus ImagePrompt:

The Fooocus ImagePrompt node is designed to preprocess and adapt images for use in AI art generation workflows. This node allows you to input an image and apply specific preprocessing techniques based on the type of image prompt you select. The primary goal of this node is to prepare images in a way that enhances their compatibility and effectiveness when used as prompts in AI models. By leveraging different preprocessing methods, the node ensures that the images are optimized for various tasks, such as face recognition or general image analysis, thereby improving the quality and relevance of the generated art.

Fooocus ImagePrompt Input Parameters:

image

This parameter accepts the image that you want to preprocess. The image should be provided in a compatible format, typically as a tensor or array. The image serves as the primary input that will undergo preprocessing based on the selected image prompt type.

ip_type

This parameter determines the type of image prompt preprocessing to be applied. It accepts values from a predefined list of image prompt types, such as general image prompts or face-specific prompts. The default value is set to the general image prompt type. The choice of ip_type influences the preprocessing steps and the final output quality.

ip_stop

This parameter is a floating-point value that controls the stopping criteria for the image prompt preprocessing. It ranges from 0.0 to 1.0, with a default value based on the selected ip_type. Adjusting this value can impact the extent of preprocessing applied to the image, allowing for fine-tuning of the results.

ip_weight

This parameter is a floating-point value that determines the weight or influence of the image prompt during preprocessing. It ranges from 0.0 to 2.0, with a default value based on the selected ip_type. Modifying this value can affect the prominence of the image prompt in the final output, enabling you to balance its impact.

skip_cn_preprocess

This boolean parameter indicates whether to skip the ControlNet preprocessing steps. The default value is False. When set to True, the node will bypass additional preprocessing steps that are typically applied to enhance the image prompt, which can be useful for specific use cases where minimal preprocessing is desired.

Fooocus ImagePrompt Output Parameters:

image_prompt

The output of this node is the preprocessed image prompt. This parameter contains the image after it has undergone the specified preprocessing steps, making it ready for use in subsequent AI art generation tasks. The preprocessed image prompt is optimized for compatibility and effectiveness, ensuring better results in the final artwork.

Fooocus ImagePrompt Usage Tips:

  • Experiment with different ip_type values to see how various preprocessing methods affect the final output. This can help you find the best settings for your specific use case.
  • Adjust the ip_weight parameter to control the influence of the image prompt. Higher values can make the prompt more prominent, while lower values can make it more subtle.
  • Use the skip_cn_preprocess parameter to bypass additional preprocessing steps if you want to retain more of the original image characteristics.

Fooocus ImagePrompt Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input image is not in a compatible format.
  • Solution: Ensure that the image is provided as a tensor or array in the expected format.

"Unsupported ip_type value"

  • Explanation: The selected ip_type is not recognized.
  • Solution: Choose a valid ip_type from the predefined list of supported types.

"ip_stop value out of range"

  • Explanation: The ip_stop parameter is set outside the allowable range of 0.0 to 1.0.
  • Solution: Adjust the ip_stop value to be within the specified range.

"ip_weight value out of range"

  • Explanation: The ip_weight parameter is set outside the allowable range of 0.0 to 2.0.
  • Solution: Adjust the ip_weight value to be within the specified range.

Fooocus ImagePrompt Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Fooocus Nodes
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.