Intro
This workflow and supporting custom node will support iterating over the SDXL 0.9 Base Model + Refiner Model combo, as well as perform a Hires. Fix (approximation) to improve on the quality of the generation. This is more of an experimentation workflow than one that will produce amazing, ultrarealistic images. It allows you to run essentially unlimited number of iterations on an image.
What does it do?
One of the common methods being tested for SDXL 0.9 image generation is running the base model for ~80% of the total steps, and then running the refiner model for the remaining ~20% of the total steps. This process can then be repeated multiple times to adjust the image. The problem is that currently this would require you to duplicate the nodes for every iteration of this. To clean this up, I created an iterative KSampler that supports multiple models (ie. Base & Refiner) as well as separate positive and negative prompt inputs for each. This node technically isn't limited to just SDXL, but was built with that in mind.
Note: I have not found the "best" values for iterations, denoising strength, samplers, base model %, etc. Feel free to try changing these values and seeing what effect it has!
How to install it?
Download the workflow zip file
Extract the zip file
Move the extracted iterative node python file to your custom_nodes folder:
ComfyUI/custom_nodes/Launch (or relaunch) ComfyUI
Load the workflow by pressing the
Loadbutton and selecting the extracted workflow json fileSelect
Queue Promptto generate an image
Quality of life add-ons
I highly suggest downloading this ComfyUI Manger extension as well for ComfyUI as it will make downloading other extensions MUCH easier moving forwards. In addition to that, if there are any dependencies that you do not already have fulfilled, it can auto-download those for you.
Download URL: https://civarchive.com/models/71980/comfyui-manager
Description
FAQ
Comments (5)
When loading the graph, the following node types were not found:
- Evaluate Integers
- Evaluate Floats
- String debug print
- Evaluate Strings
Hi, I'm getting this error when loading this one, cannot find: SDXLKSamplerAdvancedIterate
I installed Comfyui manager and a bunch of other nodes, The other one Semi-official is loading nicely.
What do i do?
Thanks
Very cool workflow !
Though what's the purpose of iterations ?
I played a bit with it but images are pretty bad with 2-3 iterations compared to 1.
7 More Suggested Resources for SDXL:
[1] First Ever SDXL Training With Kohya LoRA - Stable Diffusion XL Training Will Replace Older Models
[2] How To Use SDXL in Automatic1111 Web UI - SD Web UI vs ComfyUI - Easy Local Install Tutorial / Guide
[3] ComfyUI Master Tutorial - Stable Diffusion XL (SDXL) - Install On PC, Google Colab (Free) & RunPod
[4] Stable Diffusion XL (SDXL) Locally On Your PC - 8GB VRAM - Easy Tutorial With Automatic Installer
[5] How to use Stable Diffusion X-Large (SDXL) with Automatic1111 Web UI on RunPod - Easy Tutorial
[6] How To Use SDXL On RunPod Tutorial. Auto Installer & Refiner & Amazing Native Diffusers Based Gradio
[7] How To Use Stable Diffusion XL (SDXL 0.9) On Google Colab For Free
Awesome, thanks!
Is it staying in the latent space between iterations?
And can the seed change each iteration?

