ComfyUI Extension: Sigma Graph Node for ComfyUI
A ComfyUI node for interactively editing sigma schedules via graph and text.
Custom Nodes (0)
README
Sigma Schedule Graph Node for ComfyUI & Wan‑Video
A compact, bidirectional sigma‐schedule editor for diffusion sampling.
Sketch your noise schedule with just a handful of points. Refine the shape quickly.
Design your conceptual curve once and use for any number of steps!
Node will automatically extrapolate schedule to desired step count and save for later.
Features
-
🎨 Interactive Graph
Click & Drag graph points to shape your sigma curve.
➕ to add new graph point for fine tuning
➖ to remove one graph point. -
✍️ Textual Workspace
The top textarea shows your control‑point y‑values.
Paste comma lists or full JSON point arrays.
Textual edits auto‑sync to the graph. -
🔄 Dynamic Extrapolation
The bottom preview displays the final sigma list of length=steps
.
Changesteps
and immediately see how your low‑point curve scales.
(obscured by default on-load for compactness) -
💾 Save & Load Presets
Toggle save‑mode with the 💾 button, then click a slot to store or recall curves. -
ℹ️ Built‑in Help
Click the ℹ️ button for quick tips.
Preview
Installation
-
Copy the Folder
Place this directory under:ComfyUI/custom_nodes/TWanSigmaGraph/
-
Restart ComfyUI
Relaunch the server or reload your browser. -
Locate the Node
Find Sigma Schedule Graph under sampling → custom.
Usage
-
Set Steps
Adjust thesteps
input—this defines how many sigma values you’ll get. -
Design Your Curve
• Edit the top text box or drag points on the graph.
• The graph and text box stay in sync. -
Adjust Density (Optional)
Click + / – to add or remove handles for finer or coarser control. -
View Final Sigmas (Optional)
Expand the node to see the full sigma list interpolated tosteps
. -
Save Presets
• Click 💾 to enter save mode.
• Click a slot to store or load a curve. -
Info & Reset
Use the ℹ️ popup for instructions.
To reset, clear the node’s cache in your browser’slocalStorage
. -
Connect to Sampler
Plug theSIGMAS
output into any sampler that accepts custom sigma schedules (e.g. TWanSigmaSampler).
File Structure
TWanSigmaGraph/
├── __init__.py # Node registration & widget directory
├── TWanSigmaGraph.py # Backend: parse & interpolate points
└── js/
└── TWanSigmaGraphWidget.js # Frontend: graph UI, text sync, presets
Troubleshooting
-
Blank Widget on First Load
Refresh the page—this alpha‑stage bug will be fixed soon. -
Presets Not Saving
Check thatlocalStorage
is enabled for127.0.0.1
in your browser. -
Curve Reverts to Default
The node defaults to four points (1.00, 0.67, 0.33, 0.00
). To clear your custom curve, delete the keyTWanSigmaGraph_last_<node.id>
in dev‑tools → Application → localStorage.
Thanks & Credits
- Realistic_Studio_930 — Curve design inspiration
- huchenlei — JavaScript guidance
- ComfyUI Community — Testing & feedback
Licensed under the MIT License. See LICENSE.txt for details.