ComfyUI  >  Nodes  >  ComfyUI-Diffusers >  Diffusers Sampler

ComfyUI Node: Diffusers Sampler

Class Name

DiffusersSampler

Category
Diffusers
Author
Limitex (Account age: 1276 days)
Extension
ComfyUI-Diffusers
Latest Updated
5/22/2024
Github Stars
0.1K

How to Install ComfyUI-Diffusers

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

Diffusers Sampler Description

Facilitates image generation using diffusion model pipeline with pre-trained models for AI artists, simplifying creative process.

Diffusers Sampler:

The DiffusersSampler node is designed to facilitate the generation of images using a diffusion model pipeline. This node leverages the power of pre-trained models to create high-quality images based on provided embeddings and configuration settings. It is particularly useful for AI artists who want to generate images from textual descriptions or other forms of embeddings. The node simplifies the process by handling the intricate details of the diffusion process, allowing you to focus on the creative aspects of your work. By adjusting various parameters, you can control the resolution, number of steps, and other aspects of the image generation process, making it a versatile tool for a wide range of artistic applications.

Diffusers Sampler Input Parameters:

maked_pipeline

This parameter expects a pre-configured pipeline object that handles the diffusion process. The pipeline is responsible for generating images based on the provided embeddings and configuration settings.

positive_embeds

This parameter takes embeddings that represent the positive prompts or features you want to emphasize in the generated image. These embeddings guide the model to focus on specific aspects, enhancing the desired features in the output.

negative_embeds

This parameter takes embeddings that represent the negative prompts or features you want to minimize or avoid in the generated image. These embeddings help in reducing unwanted elements, ensuring the output aligns more closely with your creative vision.

width

This parameter sets the width of the generated image. It accepts integer values with a default of 512, a minimum of 1, and a maximum of 8192. Adjusting this parameter allows you to control the horizontal resolution of the output image.

height

This parameter sets the height of the generated image. It accepts integer values with a default of 512, a minimum of 1, and a maximum of 8192. Adjusting this parameter allows you to control the vertical resolution of the output image.

steps

This parameter determines the number of inference steps the model will take to generate the image. It accepts integer values with a default of 20, a minimum of 1, and a maximum of 10000. More steps generally result in higher quality images but require more computational time.

cfg

This parameter stands for "Classifier-Free Guidance" and controls the guidance scale. It accepts floating-point values with a default of 8.0, a minimum of 0.0, and a maximum of 100.0. This parameter helps in balancing the influence of the positive and negative embeddings on the generated image.

seed

This parameter sets the random seed for the image generation process. It accepts integer values with a default of 0 and a maximum of 0xffffffffffffffff. Setting a specific seed allows for reproducibility of the generated images.

Diffusers Sampler Output Parameters:

IMAGE

The output of this node is an image tensor. This tensor represents the generated image based on the provided embeddings and configuration settings. The image tensor can be further processed or directly used in your creative projects.

Diffusers Sampler Usage Tips:

  • Experiment with different values for the steps parameter to find a balance between image quality and computational time.
  • Use the seed parameter to generate reproducible results, which is useful for iterative design processes.
  • Adjust the cfg parameter to fine-tune the influence of positive and negative embeddings, helping you achieve the desired artistic effect.
  • Start with the default width and height values and gradually increase them to generate higher resolution images as needed.

Diffusers Sampler Common Errors and Solutions:

"Invalid pipeline object"

  • Explanation: The maked_pipeline parameter received an invalid or improperly configured pipeline object.
  • Solution: Ensure that the pipeline object is correctly initialized and compatible with the DiffusersSampler node.

"Embedding size mismatch"

  • Explanation: The sizes of the positive_embeds and negative_embeds do not match the expected dimensions.
  • Solution: Verify that the embeddings are correctly generated and match the expected input size for the model.

"Out of memory"

  • Explanation: The specified width, height, or steps parameters require more memory than available.
  • Solution: Reduce the values for width, height, or steps to fit within the available memory limits of your hardware.

"Invalid seed value"

  • Explanation: The seed parameter received a value outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff.

Diffusers Sampler Related Nodes

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