ComfyUI > Nodes > ComfyUI Fooocus Nodes > Fooocus Loader

ComfyUI Node: Fooocus Loader

Class Name

Fooocus Loader

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 Loader Description

Initialize and configure image processing pipeline parameters for Fooocus framework.

Fooocus Loader:

The Fooocus Loader node is designed to initialize and configure the pipeline for various image processing tasks within the Fooocus framework. It serves as the foundational setup node that prepares the necessary parameters and settings for subsequent nodes to function correctly. By defining key attributes such as resolution, prompts, and optional configurations, the Fooocus Loader ensures that the pipeline is tailored to your specific needs, enabling efficient and effective image generation and manipulation. This node is essential for setting up the environment and parameters that other nodes in the Fooocus suite will utilize, making it a critical component for achieving desired artistic outcomes.

Fooocus Loader Input Parameters:

resolution

The resolution parameter specifies the dimensions of the output image. It can be set to predefined values or customized by specifying the width and height in the format "width x height". If set to "自定义 x 自定义", custom dimensions must be provided through empty_latent_width and empty_latent_height. This parameter directly impacts the size and detail of the generated image.

empty_latent_width

This parameter defines the width of the latent space when a custom resolution is used. It is only required if resolution is set to "自定义 x 自定义". The width determines the horizontal dimension of the image in the latent space, affecting the overall aspect ratio and detail.

empty_latent_height

Similar to empty_latent_width, this parameter specifies the height of the latent space for custom resolutions. It is necessary when resolution is "自定义 x 自定义". The height influences the vertical dimension of the image in the latent space, contributing to the aspect ratio and detail.

positive

The positive parameter is used to input the positive prompt, which guides the image generation process towards desired features and elements. This prompt helps in emphasizing specific aspects or styles in the generated image.

negative

The negative parameter allows you to input the negative prompt, which helps in avoiding unwanted features or elements in the generated image. This prompt is useful for steering the image generation away from certain characteristics.

optional_lora_stack

This parameter accepts a list of optional LoRA (Low-Rank Adaptation) models that can be stacked to influence the image generation process. These models can provide additional stylistic or functional adjustments to the output.

Fooocus Loader Output Parameters:

ui

The ui output parameter provides a dictionary containing the positive and negative prompts. This output is useful for verifying the prompts used in the pipeline and ensuring they are correctly set.

result

The result output parameter returns a tuple containing the configured pipeline dictionary. This dictionary includes all the parameters and settings defined in the Fooocus Loader, which will be used by subsequent nodes in the pipeline to generate and manipulate images.

Fooocus Loader Usage Tips:

  • Ensure that the resolution parameter is correctly set to match your desired output dimensions. If using custom dimensions, provide accurate values for empty_latent_width and empty_latent_height.
  • Utilize the positive and negative prompts effectively to guide the image generation process towards desired features and away from unwanted elements.
  • Consider using the optional_lora_stack to apply additional stylistic or functional adjustments to the generated images, enhancing the final output.

Fooocus Loader Common Errors and Solutions:

Invalid base_resolution format.

  • Explanation: This error occurs when the resolution parameter is not in the correct format "width x height".
  • Solution: Ensure that the resolution is specified in the correct format, or provide valid values for empty_latent_width and empty_latent_height if using custom dimensions.

请先调用 FooocusLoader

  • Explanation: This error indicates that the Fooocus Loader node has not been called or initialized before using other nodes in the pipeline.
  • Solution: Make sure to initialize the Fooocus Loader node with the necessary parameters before proceeding with other nodes in the pipeline.

Fooocus Loader 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.