ComfyUI  >  Nodes  >  ComfyUI Easy Use >  PreSampling (Advanced)

ComfyUI Node: PreSampling (Advanced)

Class Name

easy preSamplingAdvanced

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 (Advanced) Description

Advanced pre-sampling settings for AI art generation, offering control over image quality and characteristics.

PreSampling (Advanced):

The easy preSamplingAdvanced node is designed to provide advanced pre-sampling settings for your AI art generation process. This node allows you to fine-tune various parameters that influence the initial stages of image generation, ensuring that you have greater control over the quality and characteristics of the output. By leveraging this node, you can achieve more precise and desirable results, making it an essential tool for artists looking to optimize their workflows and enhance their creative outputs.

PreSampling (Advanced) Input Parameters:

steps

This parameter defines the number of steps to be taken during the sampling process. More steps generally lead to higher quality images but will take longer to process. The minimum value is 1, and there is no strict maximum, but higher values will increase computation time. The default value is typically set to a moderate number to balance quality and performance.

cfg

The cfg (Classifier-Free Guidance) parameter controls the strength of the guidance applied during sampling. Higher values will make the generated image more closely follow the provided prompt, while lower values will allow for more creative freedom. The default value is usually set to a balanced level to provide a good mix of adherence to the prompt and creative output.

cfg_mode

This parameter determines the mode of the Classifier-Free Guidance. Different modes can affect how the guidance is applied, impacting the final image's style and adherence to the prompt. The default mode is often set to a standard setting that works well for most cases.

cfg_scale_min

This parameter sets the minimum scale for the Classifier-Free Guidance. It ensures that the guidance does not fall below a certain threshold, maintaining a baseline level of adherence to the prompt. The minimum value is typically set to 0, and the default value is chosen to provide a good starting point for most use cases.

sampler_name

The sampler_name parameter specifies the sampling algorithm to be used. Different algorithms can produce varying results in terms of style and quality. Common options include "euler_ancestral," "dpmpp_2s_ancestral," "dpmpp_2m_sde," and "lcm." The default sampler is usually selected based on its general effectiveness across a range of scenarios.

scheduler

This parameter defines the scheduling strategy for the sampling process. It can influence the timing and order of operations during sampling, affecting the final image's characteristics. The default scheduler is typically chosen to provide a good balance of performance and quality.

denoise

The denoise parameter controls the amount of noise reduction applied during sampling. Higher values will result in cleaner images, while lower values may retain more texture and detail. The minimum value is 0.0, the maximum is 1.0, and the default value is set to 1.0 to ensure high-quality outputs.

seed

The seed parameter sets the random seed for the sampling process. Using the same seed will produce the same image, allowing for reproducibility. The minimum value is 0, and the maximum value is determined by the system's capabilities. The default value is 0, which typically means a random seed will be used.

image_to_latent (optional)

This optional parameter allows you to provide an image that will be converted to a latent representation for use in the sampling process. This can be useful for tasks like inpainting or style transfer.

latent (optional)

This optional parameter allows you to provide a latent representation directly, bypassing the need for an initial image. This can be useful for advanced workflows where you already have a latent representation prepared.

prompt (hidden)

This hidden parameter is used internally to store the text prompt provided by the user. It is not typically modified directly.

extra_pnginfo (hidden)

This hidden parameter stores additional metadata related to the image generation process. It is used internally and is not typically modified directly.

my_unique_id (hidden)

This hidden parameter is used to store a unique identifier for the node instance. It is used internally and is not typically modified directly.

PreSampling (Advanced) Output Parameters:

pipe

The pipe output parameter returns a pipeline object that contains the results of the pre-sampling process. This pipeline can be used in subsequent nodes to continue the image generation process. The pipe object includes all the necessary information and settings to ensure a smooth transition between stages.

PreSampling (Advanced) 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 steps parameter to improve image quality, but be mindful of the increased computation time with higher values.

PreSampling (Advanced) Common Errors and Solutions:

"Invalid sampler_name provided"

  • Explanation: The sampler_name parameter was set to an unrecognized value.
  • Solution: Ensure that the sampler_name is set to one of the supported algorithms, such as "euler_ancestral," "dpmpp_2s_ancestral," "dpmpp_2m_sde," or "lcm."

"Denoise value out of range"

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

"Seed value too high"

  • Explanation: The seed parameter was set to a value higher than the system's maximum allowed seed number.
  • Solution: Reduce the seed value to be within the allowed range, typically between 0 and the system's maximum seed number.

PreSampling (Advanced) 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.