ComfyUI  >  Nodes  >  ComfyUI Easy Use >  PreSampling

ComfyUI Node: PreSampling

Class Name

easy preSampling

Category
EasyUse/PreSampling
Author
yolain (Account age: 1341 days)
Extension
ComfyUI Easy Use
Latest Updated
6/25/2024
Github Stars
0.5K

How to Install ComfyUI Easy Use

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

PreSampling Description

Streamline image generation by configuring sampling parameters easily for optimal results with minimal effort.

PreSampling:

The easy preSampling node is designed to streamline the initial stages of image generation by providing a user-friendly interface for configuring various sampling parameters. This node allows you to set up and fine-tune the sampling process, ensuring that the generated images meet your desired quality and characteristics. By offering a range of adjustable settings, such as the number of steps, configuration scale, and denoising levels, the easy preSampling node helps you achieve optimal results with minimal effort. Its primary goal is to simplify the sampling process, making it accessible even to those without a deep technical background, while still providing the flexibility needed for advanced users to customize their workflows.

PreSampling Input Parameters:

steps

This parameter defines the number of steps the sampling process will take. More steps generally lead to higher quality images but will take longer to process. The minimum value is 1, and the maximum value is typically determined by the specific model or use case.

cfg

The configuration scale (cfg) parameter adjusts the strength of the guidance during sampling. Higher values make the generated image more closely follow the given prompt, while lower values allow for more creative freedom. The default value is 7.0, with a minimum of 1.0 and a maximum of 100.0.

cfg_mode

This parameter specifies the mode of the configuration scale, which can affect how the guidance is applied during sampling. Different modes may offer various benefits depending on the desired outcome.

cfg_scale_min

This parameter sets the minimum value for the configuration scale, providing a lower bound for the guidance strength. It helps in maintaining a consistent level of guidance throughout the sampling process. The default value is 1.0, with a minimum of 0.0 and a maximum of 100.0.

sampler_name

The name of the sampler to be used in the process. Different samplers can produce varying results, and selecting the appropriate one can significantly impact the quality and style of the generated image.

scheduler

This parameter allows you to choose the scheduler for the sampling process. Schedulers can influence the timing and sequence of the sampling steps, affecting the final image quality and characteristics.

denoise

The denoise parameter controls the level of noise reduction applied during sampling. A higher value results in a cleaner image, while a lower value retains more of the original noise. The default value is 1.0, with a minimum of 0.0 and a maximum of 1.0, adjustable in steps of 0.01.

seed

The seed parameter sets the random seed for the sampling process, ensuring reproducibility of the generated images. Using the same seed will produce the same image every time. The default value is 0, with a minimum of 0 and a maximum determined by the system's capabilities.

image_to_latent (optional)

This optional parameter allows you to input an image that will be converted to a latent representation, which can then be used in the sampling process.

latent (optional)

This optional parameter accepts a latent representation directly, bypassing the need for an initial image input.

prompt (hidden)

The prompt parameter is used to provide textual guidance for the image generation process. It is hidden from the main interface but plays a crucial role in shaping the final output.

extra_pnginfo (hidden)

This hidden parameter stores additional metadata in the PNG file, which can be useful for tracking and reproducing the sampling process.

my_unique_id (hidden)

A unique identifier for the sampling process, used internally to manage and track different sampling sessions.

PreSampling Output Parameters:

pipe

The pipe output is a pipeline object that contains all the necessary information and settings for the sampling process. It can be used as an input for subsequent nodes or processes, ensuring a seamless workflow.

PreSampling Usage Tips:

  • Experiment with different cfg values to find the right balance between adherence to the prompt and creative freedom.
  • Use the seed parameter to reproduce specific results or to explore variations by changing the seed value.
  • Adjust the denoise parameter to control the level of noise in the final image, depending on your desired outcome.

PreSampling Common Errors and Solutions:

"Invalid sampler name"

  • Explanation: The sampler name provided does not match any available samplers.
  • Solution: Ensure that the sampler name is correctly spelled and matches one of the supported samplers.

"Seed value out of range"

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Check the seed value and ensure it falls within the specified minimum and maximum limits.

"Invalid configuration scale mode"

  • Explanation: The cfg_mode parameter is set to an unsupported value.
  • Solution: Verify that the cfg_mode is set to a valid option and adjust it accordingly.

"Denoise value out of range"

  • Explanation: The denoise parameter is set to a value outside the allowed range.
  • Solution: Adjust the denoise value to be within the range of 0.0 to 1.0.

PreSampling Related Nodes

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