Extensions/ComfyUI-DonutNodes
ComfyUI Extension

ComfyUI-DonutNodes

A ComfyUI extension with 68 custom nodes.

By DonutsDelivery·Created about a year ago·Updated about 10 hours ago· 25
DonutsDelivery/ComfyUI-DonutNodes
Nodes68
On cloudLocal install
CategoryComfyanonymous/LoRA, donut/image
Stars25
Updatedabout 10 hours ago

Nodes (68)

Donut Apply LoRA Stack

The apply half of the best-known Z-Image LoRA stack in ComfyUI

Comfyanonymous/LoRA
Donut Auto Gamma (DEPRECATED)

Four ways to auto-correct exposure, from fast mean-shift to histogram science

donut/image
Donut Auto White Balance (DEPRECATED)

Industry-standard white balance, from gray world to Photoshop-style

donut/image
Donut Block Calibration

The answer to 'which of my 76 detailer sliders should I even touch'

donut/calibration
DonutCacheDebug

The pack's own stethoscope for cache-invalidation bugs

donut/debug
Donut CAS (Contrast Adaptive Sharpen) (DEPRECATED)

AMD's game sharpener, ported to your diffusion output

donut/image/sharpen
Checkpoint Save (No Workflow) (DEPRECATED)

A save node with no workflow baggage — and now no menu presence either

advanced/model_merging
Donut Clip Encode

An SDXL text encoder that knows the resolution it's drawing at

essentials
Donut Dependency Check

Your Nodes Vanished? This Diagnostic Tells You Why — Without Breaking Anything

Donut/diagnostics
Donut Detailer (DEPRECATED)

Not that kind of detailer — a per-block model patch in a detailer's clothing

Model Patches
Donut Detailer 2 (DEPRECATED)

The K/S1/S2 flavor of the Donut model patch — and why it's on the way out

Model Patches
Donut Detailer 4 (DEPRECATED)

Direct weight and bias multipliers

Model Patches
Donut Detailer LoRA 5

A detailer that patches the LoRA itself, not the model

LoRA Patches
Donut Detailer (Unified)

The one detailer node that finally merges the three formulas

Model Patches
Donut Detailer XL Blocks

Per-block weight and bias control over every SDXL block — all 76 knobs

Model Patches
Donut Detailer ZIT

Tuning Z-Image Turbo's 30 layers by what they actually do

donut/Model Patches
Donut Diffusion Model Save (No Workflow)

Save a merged model without the workflow sludge (or accidental fp8)

advanced/model_merging
Donut Dynamic LoRA Stack

The LoRA Stack With No Row Limit — Edit a JSON Array Instead of 3 Dropdowns

donut/LoRA
Donut Edit Studio

Two reference slots, one crop, no API key

donut/editing
Donut Extract LoRA (Raw → Patched)

Turn a patched model back into a portable LoRA

advanced/model_merging
Face Detailer (Max Faces)

The crowd-of-clones fix

ImpactPack/Simple
Donut Filler (Model + CLIP)

A fake model and a fake CLIP, for when a merge needs an empty seat

utils
Donut Filler Clip (DEPRECATED)

A do-nothing CLIP for the merge graph that wants every socket wired

utils
Donut Filler Model (DEPRECATED)

A placeholder that makes merge graphs stay wired

utils
Donut Frequency Analysis

A spectral 'is this AI?' diagnostic that's honest about what it can tell you

donut/analysis
Donut Gamma Correction (DEPRECATED)

A gamma slider with a dither knob — and a nod to a Linux image viewer

donut/image
Donut Local Contrast (DEPRECATED)

The Clarity slider, as a ComfyUI node

donut/image/sharpen
Donut Histogram Stretch (DEPRECATED)

The auto-levels fix for flat renders

donut/image
DonutHotReload

The dev node that's intentionally disabled

donut/dev
Donut Image Adjust

Six tone and color fixes, one node

donut/image
Donut Image Save

The WAS save node without the WAS install

Donut/image
Donut Inpaint · Keep Surroundings

The one node that makes a Krea 2 area edit actually stay an area edit

donut/editing
Donut Krea2 Fusion Control

Fine-tune how Krea 2 fuses text, without a single LoRA

Donut/conditioning
Donut Krea2 Image Conditioning

Mix three reference images into Krea 2 with per-image strength

Donut/conditioning
Donut LoRA CivitAI Info (DEPRECATED)

The metadata node that got folded into a better one

donut/LoRA
Donut LoRA CivitAI Lookup

Identify any LoRA (or any hash) without leaving the graph

donut/LoRA
Donut LoRA Hash Lookup (DEPRECATED)

Resolve a bare SHA256 to a model page

donut/LoRA
Donut LoRA Library Manager

Your CivitAI metadata cache, managed

donut/LoRA
Donut LoRA Loader · Dynamic

The One-Stop Dynamic LoRA Loader — Block Weights, a Krea2 Safety Rail, and a Fast Path

donut/LoRA
DonutLoRAStack

The block-weighted LoRA stacker the pack is built around

donut/LoRA
DonutLoraStackCombine

Splice two LoRA stacks into one

donut/LoRA
DonutManualCleanup

The 'free my VRAM and reset caches' button

donut/utils
Donut Model Merge Krea2

Merge Krea 2 checkpoints component-by-component, without rebuilding quantized weights

model/merging/model specific
Model Save (No Workflow) (DEPRECATED)

Export a checkpoint without the metadata baggage

advanced/model_merging
DonutMultiModelSampler (DEPRECATED)

Sample with three models and a CFG that slides

donut/sampling
Donut Open CivitAI

Jump from a LoRA in your folder to its CivitAI page

donut/LoRA
Donut Prompt Conditioning

One CLIP Encode, Four Conditionings — the Face Pass and the Zeroed Negative

donut/text
Donut Prompt Injection

A style directory you can actually navigate

donutnodes
Donut Reference Guidance

Hand Krea 2 an image without touching your LoRA

donut/conditioning
DonutSampler

A KSampler with a CFG that changes as it denoises

donut/sampling
DonutSampler (Advanced) (DEPRECATED)

The CFG-curve sampler, pinned to full control

donut/sampling
Donut Save (No Workflow)

Bake a full checkpoint with no workflow embedded

advanced/model_merging
Donut SDXL TeaCache

Skip the UNet steps that barely change

DonutNodes
Donut SDXL TeaCache Stats

See what TeaCache actually did to your SDXL model

DonutNodes
Donut Seeds · Text / Samplers / Filename

Three Seeds, One Workflow — Stop Your Wildcards Reshuffling Every Time You Retry

donut/control
Donut Sharpener (DEPRECATED)

Still loads old workflows, no longer in the menu

donut/enhancement
Donut Sharpener (from reference) (DEPRECATED)

The reference-based Donut sharpener

donut/enhancement
Donut Simple Calibration (DEPRECATED)

Fix a merged SDXL model's magnitude drift, the lazy way

donut/calibration
Donut Spectral Sharpener

Spectral sharpening with a reference

donut/enhancement
Donut Text · Recursive Wildcards

Wildcards That Reference Other Wildcards — Recursive Prompt Expansion Without the Blowup

donut/text
Donut Tiled Upscale

Tiled img2img that works on any model

donut/upscale
Donut Weight-Vector Scale

Scale LoRA block weights without nuking the neutral layers

Donut/conditioning
DonutWidenMergeCLIP

Merge text encoders the same way you merge the UNet

donut/merge
DonutWidenMergeUNet

Merge checkpoints by importance, not by blind averaging

donut/merge
Donut ZiT Conditioning Rebalance

Crank prompt adherence without CFG

Donut/conditioning
Donut ZiT Layer-Blend Encode

A text-encode for Z-Image that blends every encoder layer, not just the last

Donut/conditioning
Model Merge ZIT

Blend 30 transformer layers by hand

advanced/model_merging
Model Merge ZIT Blocks (DEPRECATED)

The old per-layer Z-Image merge node (folded into ModelMergeZIT)

advanced/model_merging
Readme

DonutNodes + Donut Workflow V4 Beta

Support on Ko-fi

Donut Workflow is the main workflow for this node pack. DonutNodes is built around its Krea2 model setup, LoRA controls, editing, prompting, generation and saving. You can also use the individual nodes in your own ComfyUI workflows.

Start with Donut Workflow V4 Beta

Download the workflow · Setup and usage · V3 → V4 Beta changelog

Donut Workflow V4 Beta — redesigned controls

New look, you will be shook. V4 Beta replaces V3's spread-out controls with numbered cards, collapsible Advanced settings and inspectable source/generation subgraphs. Everyday controls stay accessible in Graph and App Mode.

  • Edit Studio: base and optional identity images, paste/drop/upload, visual crop controls and output sizing in one place.
  • Reference guidance: optional image references for native Krea2 generation conditioning, separate from the edit-LoRA path.
  • Wildcard library: create reusable prompt choices, insert tokens and inspect the final expanded prompt.
  • Model downloads: check selected models against a reviewed catalog and download missing files with size/hash verification.
  • Latest result: follow generation stages and view intermediate/final images.
  • Donut Image Save: numbered filenames and configurable formats, including WebP, without a WAS dependency.

V3 already included face detailing, editing, model merging, LoRA stacking and upscaling. The changelog separates those existing capabilities from V4 Beta's additions and installation fixes.

Installation

  1. Install or update DonutNodes to the code accompanying V4 Beta. In ComfyUI Manager, search for DonutNodes. If the installed release does not yet contain DonutImageSave and DonutEditStudio, use the matching beta source; an older package is not sufficient.
  2. Restart ComfyUI and refresh the browser, then download the workflow JSON using GitHub's Download raw file button and open it in ComfyUI.
  3. Use Install Missing Nodes → Install All, then Apply Changes/restart. Leave the collapsed Required node packs subgraph in place for dependency detection. No WAS version selection is needed.
  4. Select your models/LoRAs, use Download missing for catalogued files, review the prompts and save settings, and click Run.

See the workflow README for model filenames, companion packs, editing, wildcard files, saving and migration from V3.

Manual node installation

cd ComfyUI/custom_nodes
git clone https://github.com/DonutsDelivery/ComfyUI-DonutNodes.git donutnodes
cd donutnodes
python -m pip install -r requirements.txt

Use the Python interpreter that launches ComfyUI, then restart and refresh. For an existing checkout, update it rather than creating a duplicate node folder. The workflow release name V4 Beta is separate from the DonutNodes package version. These documents and the bundled JSON are prepared with the current source; this is not a claim that an older registry release contains the beta.

Beta test status

The current development code passed a fresh Linux/Python 3.12.7 installation with default missing-node installs → restart → full generation on an RTX 4070. No WAS installation, manual version selection or dependency repair was required. The tested path includes base generation, first upscale, two face refinements and a 1728 × 1344 WebP save.

That run reused models and had editing and the second upscale off. Other modes, platforms and GPU configurations still need beta coverage. See the validation report for exact scope and remaining warnings. For errors, include the workflow, versions, OS/GPU and full traceback; Donut Dependency Check helps diagnose dependencies.

Using the nodes independently

The pack also includes block-weighted LoRA stacking, Krea2 model merging and Fusion Control, CFG sampling curves, detailers, tiled upscaling, SDXL TeaCache and spectral sharpening. Experimental execution modes remain optional.

Optional companion packages

These are separate from the seven companion packs required by V4 Beta. Install DonutLocalAutomation to retain DonutPromptReceiver and DonutImageReporter when using older personal workflows that contain them.

Third-party attribution

See THIRD_PARTY_NOTICES.md for incorporated code and its licenses.