ComfyUI  >  Nodes  >  ComfyUI Impact Pack >  KSampler (pipe)

ComfyUI Node: KSampler (pipe)

Class Name

ImpactKSamplerBasicPipe

Category
sampling
Author
Dr.Lt.Data (Account age: 458 days)
Extension
ComfyUI Impact Pack
Latest Updated
6/19/2024
Github Stars
1.4K

How to Install ComfyUI Impact Pack

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

KSampler (pipe) Description

Facilitates AI art sampling with basic pipeline for generating latent images efficiently.

KSampler (pipe):

The ImpactKSamplerBasicPipe node is designed to facilitate the sampling process in AI art generation by leveraging a basic pipeline configuration. This node integrates various components such as the model, clip, and VAE, along with positive and negative prompts, to generate latent images. It provides a streamlined approach to sampling, allowing you to control parameters like seed, steps, configuration (cfg), sampler name, scheduler, and denoise level. The primary goal of this node is to offer a flexible and efficient way to produce high-quality latent images, making it an essential tool for AI artists looking to fine-tune their creative outputs.

KSampler (pipe) Input Parameters:

basic_pipe

This parameter represents the basic pipeline configuration, which includes the model, clip, VAE, positive prompts, and negative prompts. It serves as the foundation for the sampling process, ensuring that all necessary components are in place for generating latent images.

seed

The seed parameter is an integer value used to initialize the random number generator for the sampling process. It ensures reproducibility of results. The default value is 0, with a minimum of 0 and a maximum of 0xffffffffffffffff.

steps

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

cfg

The cfg (configuration) parameter is a floating-point value that controls the guidance scale during sampling. Higher values can lead to more detailed images but may also introduce artifacts. The default value is 8.0, with a minimum of 0.0 and a maximum of 100.0.

sampler_name

This parameter specifies the name of the sampler to be used in the sampling process. It allows you to choose from a predefined set of samplers provided by comfy.samplers.KSampler.SAMPLERS.

scheduler

The scheduler parameter determines the scheduling strategy for the sampling process. It allows you to select from various scheduling options provided by core.SCHEDULERS.

latent_image

This parameter represents the latent image to be used as input for the sampling process. It serves as the initial state from which the final image will be generated.

denoise

The denoise parameter is a floating-point value that controls the level of denoising applied during the sampling process. A value of 1.0 applies full denoising, while lower values apply less denoising. The default value is 1.0, with a minimum of 0.0 and a maximum of 1.0, adjustable in steps of 0.01.

KSampler (pipe) Output Parameters:

BASIC_PIPE

This output parameter returns the basic pipeline configuration used in the sampling process. It includes the model, clip, VAE, positive prompts, and negative prompts, allowing for further processing or reuse in subsequent operations.

LATENT

The latent output parameter represents the generated latent image resulting from the sampling process. This image can be further processed or converted into a final output image.

VAE

This output parameter returns the Variational Autoencoder (VAE) used in the sampling process. The VAE is essential for encoding and decoding the latent image, ensuring high-quality results.

KSampler (pipe) Usage Tips:

  • Experiment with different seed values to explore a variety of generated images while maintaining reproducibility.
  • Adjust the steps parameter to balance between image quality and computation time, especially for high-resolution outputs.
  • Use the cfg parameter to fine-tune the level of detail and guidance in the generated images, but be cautious of potential artifacts at higher values.
  • Select appropriate sampler_name and scheduler options to optimize the sampling process for your specific artistic goals.

KSampler (pipe) Common Errors and Solutions:

"Invalid seed value"

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure the seed value is an integer between 0 and 0xffffffffffffffff.

"Steps value out of range"

  • Explanation: The steps parameter is set to a value outside the allowed range.
  • Solution: Adjust the steps value to be between 1 and 10000.

"Invalid cfg value"

  • Explanation: The cfg parameter is set to a value outside the acceptable range.
  • Solution: Ensure the cfg value is a float between 0.0 and 100.0.

"Sampler name not recognized"

  • Explanation: The sampler_name provided does not match any of the predefined samplers.
  • Solution: Verify that the sampler_name is one of the options provided by comfy.samplers.KSampler.SAMPLERS.

"Scheduler not recognized"

  • Explanation: The scheduler parameter does not match any of the available scheduling options.
  • Solution: Ensure the scheduler is one of the options provided by core.SCHEDULERS.

KSampler (pipe) Related Nodes

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