ComfyUI  >  Nodes  >  ComfyUI Iterative Mixing Nodes

ComfyUI Extension: ComfyUI Iterative Mixing Nodes

Repo Name


ttulttul (Account age: 4758 days)
View all nodes (9)
Latest Updated
Github Stars

How to Install ComfyUI Iterative Mixing Nodes

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

ComfyUI Iterative Mixing Nodes enhance image generation by iteratively refining outputs. Key nodes include Iterative Mixing KSampler, Batch Unsampler, and Iterative Mixing KSampler Advanced, optimizing the sampling process for improved results.

ComfyUI Iterative Mixing Nodes Introduction

ComfyUI-Iterative-Mixer is an extension for that introduces a technique called Iterative Mixing of Latents. This method is inspired by the paper and aims to enhance the quality and detail of AI-generated images by iteratively mixing latent representations during the denoising process. This extension is particularly useful for AI artists looking to upscale images while maintaining or even improving the quality and coherence of the output.

How ComfyUI Iterative Mixing Nodes Works

The core idea behind ComfyUI-Iterative-Mixer is to iteratively mix progressively noisier latent representations of an image during the denoising process. Imagine you have a blurry image that you want to make clearer. Instead of just sharpening it once, you gradually mix in different levels of noise and then denoise it step by step. This helps the model to fill in details more effectively, resulting in a higher-quality image.

Here's a simplified analogy: Think of it as sculpting a statue from a rough block of marble. Instead of carving out the details all at once, you make multiple passes, each time refining the details a bit more. This iterative approach helps in achieving a more polished and detailed final result.

ComfyUI Iterative Mixing Nodes Features


This node is the heart of the iterative mixing process. It feeds into a SamplerCustom node to implement iterative mixing sampling with various customizable options:

  • model: A diffusion model.
  • mixing_masks: Currently unused but will allow for mask-based mixing in future updates.
  • sampler: Choose a sampling method like euler.
  • alpha_1: Controls the steepness of the blending_schedule curve.
  • blending_schedule: Options include cosine, logistic, and linear blending curves.
  • blending_function: Choose between addition, slerp, and norm_only for different blending effects.
  • start_blending_at_pct: Sets the fraction of steps at which blending starts.
  • stop_blending_at_pct: Sets the fraction of steps at which blending stops.
  • clamp_blending_at_pct: Clamps the blending curve to halt blending after a certain point.
  • blend_min: Sets a minimum value for the blending curve.
  • blend_max: Sets a maximum value for the blending curve.
  • perlin_mode: Selects different Perlin noise blending modes.
  • perlin_strength: Controls the amount of Perlin noise operations.
  • perlin_scale: Controls the scale of Perlin noise.
  • rewind: An experimental feature that rewinds the sampling process to refine details.
  • rewind_min: Sets the minimum fraction of steps for rewinding.
  • rewind_max: Sets the maximum fraction of steps for rewinding.


This node generates a set of sigmas to feed into the IterativeMixingSampler. It requires a model input to fetch sigma-related parameters.


Similar to IterativeMixingScheduler but adds start and end steps for more control over the denoising process.


Generates a batch of Perlin noise masks. These masks can be used to control latent mixing at each step.

ComfyUI Iterative Mixing Nodes Models

The extension does not introduce new models but works with existing diffusion models in ComfyUI. The choice of model can affect the final output, so experimenting with different models can yield varying results.

What's New with ComfyUI Iterative Mixing Nodes

June 13th, 2024

  • Minor changes to ensure compatibility with SD3. ### March 9th, 2024
  • Added support for the new Differential Diffusion node.
  • Example workflow provided in Differential Diffusion.png.

February 9th, 2024

  • Introduced the rewind option in the IterativeMixingSampler node.
  • Deprecated the normalize_on_mean option.

January 12th, 2024

  • Extensive rework of the iterative mixing sampler code.
  • Improved handling of masked latents.

January 4th, 2024

  • Added new nodes for iterative mixing with SamplerCustom.
  • Reorganized code for better maintainability.

Troubleshooting ComfyUI Iterative Mixing Nodes

Common Issues and Solutions

  1. Grainy Output: If your output is grainy, try using a second sampler with a low denoising strength (0.05 - 0.25) to clean up the noise.
  2. Inconsistent Results: Ensure that the start_blending_at and stop_blending_at parameters are correctly set to match the total step count.
  3. Extra Limbs or Artifacts: Use ControlNet nodes to guide the sampling process and maintain structural consistency.

Frequently Asked Questions

  • What is the rewind feature? The rewind feature allows the sampler to go back and refine details by reintroducing noise and denoising again.

  • How do I choose the right blending function? Experiment with addition, slerp, and norm_only to see which one works best for your specific use case.

Learn More about ComfyUI Iterative Mixing Nodes

For additional resources, tutorials, and community support, you can visit the following links:

  • These resources will help you get the most out of ComfyUI-Iterative-Mixer and improve your AI art projects.

ComfyUI Iterative Mixing Nodes Related Nodes


© 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.