ComfyUI > Nodes > ComfyUI-CADS

ComfyUI Extension: ComfyUI-CADS

Repo Name

ComfyUI-CADS

Author
asagi4 (Account age: 495 days)
Nodes
View all nodes(1)
Latest Updated
2024-07-31
Github Stars
0.04K

How to Install ComfyUI-CADS

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

ComfyUI-CADS Description

ComfyUI-CADS integrates the CADS model into ComfyUI, inspired by the A1111 implementation. It aims to enhance ComfyUI's capabilities by leveraging the CADS framework for improved performance and functionality.

ComfyUI-CADS Introduction

ComfyUI-CADS is an extension designed to enhance the diversity of images generated by AI models using the ComfyUI interface. It implements the Condition-Annealed Diffusion Sampling (CADS) method, which introduces scheduled noise to the conditioning during the inference process. This technique can significantly increase the variety of generated images, making it a valuable tool for AI artists looking to explore a broader range of creative possibilities.

The extension is inspired by the original CADS method described in the paper CADS: Unleashing the Diversity of Diffusion Models through Condition-Annealed Sampling. By integrating this method into ComfyUI, the author aims to provide AI artists with a powerful tool to enhance their creative workflows.

How ComfyUI-CADS Works

At its core, ComfyUI-CADS works by adding controlled noise to the conditioning of the diffusion model during the image generation process. This noise is introduced in a scheduled manner, meaning it changes over time according to specific parameters. Here’s a simplified breakdown of how it works:

  1. Noise Introduction: Noise is added to the conditioning of the model. Conditioning refers to the additional information provided to the model to guide the generation process.
  2. Scheduled Noise: The amount and type of noise introduced are controlled by parameters such as noise_scale, t1, and t2. These parameters determine how the noise changes over the course of the generation process.
  3. Normalization and Rescaling: The rescale parameter helps normalize the noised conditioning, ensuring that the added noise does not overwhelm the original conditioning.
  4. Selective Application: The noise can be selectively applied to different parts of the model’s conditioning using the apply_to and key parameters. By carefully adjusting these parameters, AI artists can influence the diversity and style of the generated images, leading to more varied and interesting results.

ComfyUI-CADS Features

ComfyUI-CADS comes with several features that allow for extensive customization and control over the image generation process:

  • Noise Scale (noise_scale): This parameter controls the intensity of the noise added to the conditioning. Positive values increase the noise, while negative values decrease it. Extreme values may require the use of the rescale parameter to maintain image quality.
  • Rescale (rescale): This parameter normalizes the noised conditioning. A value of 0 disables rescaling, while a value of 1 uses only the normalized value.
  • Time Parameters (t1 and t2): These parameters control the scaling of the added noise over time. Noise scales down after t2 and stops being added after t1.
  • Step Parameters (start_step and total_steps): These optional parameters affect the noise scaling schedule. If start_step is greater than or equal to total_steps, the sampler’s timestep value is used instead.
  • Selective Application (apply_to and key): These parameters allow you to apply noise selectively to different parts of the conditioning. The apply_to parameter defaults to uncond, and the key parameter selects where to add the noise.
  • Noise Type (noise_type): This parameter determines the probability distribution of the generated noise, allowing for different types of noise to be used.

ComfyUI-CADS Models

The extension does not introduce new models but rather enhances the existing models in ComfyUI by applying the CADS method. This means you can use ComfyUI-CADS with any model supported by ComfyUI, including popular ones like SD XL and SD 1.5. The key is to experiment with the parameters to see how they affect the output of your chosen model.

What's New with ComfyUI-CADS

The extension is continuously being improved. Here are some of the recent updates:

  • Noise Application Update: Noise is now applied to the regular conditioning y by default, which improves the logical consistency of the method.
  • Parameter Adjustments: Fine-tuning of parameters to better align with the original CADS implementation and improve the diversity of generated images. These updates aim to enhance the usability and effectiveness of the extension, providing AI artists with better tools for their creative projects.

Troubleshooting ComfyUI-CADS

Here are some common issues you might encounter while using ComfyUI-CADS and how to solve them:

  • Images Look Unusual or Distorted: If your images are not turning out as expected, try adjusting the noise_scale and rescale parameters. Extreme values can lead to poor results.
  • Noise Not Applied Correctly: Ensure that the apply_to and key parameters are set correctly. These parameters control where the noise is added.
  • Unexpected Results with Time Parameters: Double-check the values of t1 and t2. Remember that t2 should be greater than t1 as the diffusion process runs backwards from 1 to 0.

Frequently Asked Questions

Q: What does the noise_scale parameter do? A: It controls the intensity of the noise added to the conditioning. Positive values increase noise, while negative values decrease it.

Q: How do I use the rescale parameter? A: The rescale parameter normalizes the noised conditioning. Set it to 0 to disable rescaling or to 1 to use only the normalized value.

Q: What should I do if my images look distorted? A: Try adjusting the noise_scale and rescale parameters. Extreme values can lead to poor results, so fine-tuning these settings can help.

Learn More about ComfyUI-CADS

To further explore the capabilities of ComfyUI-CADS, you can check out the following resources:

  • CADS Paper: The original research paper describing the CADS method.
  • A1111 Implementation: Another implementation of CADS that can provide additional insights and examples.
  • Example Workflow: Load this workflow into ComfyUI to compare CADS and non-CADS generations. These resources will help you get the most out of ComfyUI-CADS and inspire new creative possibilities in your AI art projects.

ComfyUI-CADS Related 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.