A custom ComfyUI node that splits sampling steps between a main sampler and a refiner sampler, with independent denoise control for each phase.
- Split Steps: Divide total steps between main sampler and refiner sampler
- Dual Sampler Support: Use different samplers/schedulers for main and refiner phases
- Independent Denoise Control: Separate denoise parameters for main and refiner phases
- Refiner Intensity: Control how much the refiner affects the final result (0.0 to 1.0)
1- Search KsamplerDF in Comfyui Manager and install
- Open a terminal/command prompt
- Navigate to your ComfyUI custom nodes folder:
cd ComfyUI/custom_nodes - Clone this repository:
git clone https://github.com/DevDuckFace/KsamplerDF.git
- Restart ComfyUI
- Download this repository as a ZIP file
- Extract the contents to
ComfyUI/custom_nodes/KsamplerDF/ - Restart ComfyUI
Find the node in the Add Node menu under: sampling → KSampler DF (with Refiner)
| Parameter | Description |
|---|---|
| model | The model used for denoising |
| positive | Positive conditioning (prompt) |
| negative | Negative conditioning (negative prompt) |
| latent_image | The latent image to denoise |
| seed | Random seed for noise generation |
| steps | Total number of steps (split between main and refiner) |
| cfg | Classifier-Free Guidance scale |
| sampler_name | Sampler algorithm for the main phase |
| scheduler | Scheduler for the main phase |
| denoise | Denoise amount for the main phase (0.0 to 1.0) |
| refiner_at_step | Step at which to switch from main to refiner |
| sampler_refiner | Sampler algorithm for the refiner phase |
| scheduler_refiner | Scheduler for the refiner phase |
| denoise_refiner | Denoise amount for the refiner phase (0.0 to 1.0) |
With these settings:
- steps: 20
- refiner_at_step: 12
The node will:
- Run 12 steps with the main sampler/scheduler
- Run 8 steps with the refiner sampler/scheduler
The denoise_refiner parameter controls how much the refiner phase affects the image:
| Value | Effect |
|---|---|
0.0 |
Refiner is skipped (only main sampler runs) |
0.5 |
Refiner applies 50% denoising |
1.0 |
Refiner applies full denoising |
KsamplerDF/
├── __init__.py
├── nodes.py
└── README.md
- ComfyUI (latest version recommended)
- No additional dependencies required
MIT License - Feel free to use and modify as needed.
