ComfyUI  >  Nodes  >  ComfyUI Fooocus Nodes >  Fooocus KSampler

ComfyUI Node: Fooocus KSampler

Class Name

Fooocus KSampler

Category
Fooocus
Author
Seedsa (Account age: 2658 days)
Extension
ComfyUI Fooocus Nodes
Latest Updated
8/8/2024
Github Stars
0.1K

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

Powerful node for AI art generation sampling with advanced algorithms for high-quality latent image generation and precise control over sampling process parameters.

Fooocus KSampler:

The Fooocus KSampler is a powerful node designed to facilitate the sampling process in AI art generation. It leverages advanced algorithms to generate high-quality latent images based on given conditions and parameters. This node is particularly beneficial for artists looking to fine-tune their creative outputs by controlling various aspects of the sampling process, such as the number of steps, the configuration scale, and the type of sampler and scheduler used. By providing a flexible and robust framework, the Fooocus KSampler helps you achieve more precise and desirable results in your AI-generated artwork.

Fooocus KSampler Input Parameters:

model

This parameter specifies the model to be used for sampling. It is a required input and ensures that the sampling process is aligned with the chosen model's capabilities.

seed

The seed parameter is an integer that initializes the random number generator, ensuring reproducibility of results. It has a default value of 0, with a minimum value of 0 and a maximum value of 0xffffffffffffffff. Using the same seed will produce the same output, which is useful for consistency in experiments.

steps

This integer parameter defines the number of steps to be taken during the sampling process. The default value is 20, with a minimum of 1 and a maximum of 10000. More steps generally lead to higher quality images but will take longer to process.

cfg

The cfg (configuration) parameter is a floating-point value that controls the guidance scale. It has a default value of 8.0, with a minimum of 0.0 and a maximum of 100.0, adjustable in steps of 0.1 and rounded to 0.01. Higher values can lead to more detailed images but may also increase the risk of overfitting.

sampler_name

This parameter allows you to choose the type of sampler to be used from a predefined list. The available options are specified in ldm_patched.modules.samplers.KSampler.SAMPLERS. Different samplers can produce varying styles and qualities of images.

scheduler

The scheduler parameter specifies the type of scheduler to be used, chosen from a predefined list in ldm_patched.modules.samplers.KSampler.SCHEDULERS. Schedulers influence the sampling trajectory and can affect the final image quality and style.

positive

This parameter accepts conditioning data that positively influences the sampling process. It helps guide the model towards desired features and characteristics in the generated image.

negative

Similar to the positive parameter, this accepts conditioning data that negatively influences the sampling process. It helps the model avoid unwanted features and characteristics in the generated image.

latent_image

This parameter takes a latent image as input, which serves as the starting point for the sampling process. It allows for more controlled and directed image generation.

denoise

The denoise parameter is a floating-point value that controls the amount of noise reduction applied during sampling. It has a default value of 1.0, with a minimum of 0.0 and a maximum of 1.0, adjustable in steps of 0.01. Lower values can retain more details from the initial latent image, while higher values can produce smoother results.

Fooocus KSampler Output Parameters:

LATENT

The output of the Fooocus KSampler is a latent image, which is a high-dimensional representation of the generated artwork. This latent image can be further processed or decoded into a final image. The quality and characteristics of the latent image are influenced by the input parameters, making it a crucial component in the AI art generation pipeline.

Fooocus KSampler Usage Tips:

  • Experiment with different seed values to explore a variety of outputs and find the most appealing results.
  • Adjust the steps parameter to balance between processing time and image quality; more steps generally yield better results but take longer.
  • Use the cfg parameter to fine-tune the guidance scale; higher values can enhance details but may require careful adjustment to avoid overfitting.
  • Select different samplers and schedulers to see how they affect the style and quality of the generated images.
  • Utilize the positive and negative conditioning parameters to guide the model towards or away from specific features, helping you achieve the desired artistic effect.

Fooocus KSampler Common Errors and Solutions:

Invalid base_resolution format

  • Explanation: This error occurs when the resolution format provided is incorrect or cannot be parsed.
  • Solution: Ensure that the resolution is specified in the format "width x height" (e.g., "512 x 512"). Double-check for any typos or incorrect delimiters.

Model not found

  • Explanation: This error indicates that the specified model could not be located or loaded.
  • Solution: Verify that the model name is correct and that the model is properly installed and accessible in the specified directory.

Seed value out of range

  • Explanation: This error occurs when the seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff. Adjust the seed value accordingly.

Steps value out of range

  • Explanation: This error indicates that the number of steps specified is outside the acceptable range.
  • Solution: Ensure that the steps value is between 1 and 10000. Adjust the steps value to fall within this range.

CFG value out of range

  • Explanation: This error occurs when the cfg value provided is outside the acceptable range.
  • Solution: Ensure that the cfg value is between 0.0 and 100.0. Adjust the cfg value accordingly.

Denoise value out of range

  • Explanation: This error indicates that the denoise value specified is outside the acceptable range.
  • Solution: Ensure that the denoise value is between 0.0 and 1.0. Adjust the denoise value to fall within this range.

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