Sigma Schedule Graph Node for ComfyUI & Wan‑Video
A compact, bidirectional sigma‐schedule editor for diffusion sampling.
Shape a high‑resolution schedule by defining just a handful of control points—then automatically extrapolate that curve to any number of steps without typing dozens of values or dragging dozens of handles.
Why low‑point curves matter
• Sketch your noise schedule with just a handful of points. Refine the shape quickly!
• When you bump steps up to 35, 100, or more, the node interpolates your low‑point profile into a full sigma list for your sampler.
• No need to manually adjust dozens of numbers or sliders. Design your conceptual curve once and use for any number of steps!
Features
-
🎨 Interactive Graph
Drag handles 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.
Changestepsand 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 thestepsinput—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 theSIGMASoutput into any sampler that accepts custom sigma schedules (e.g. KSampler).
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 thatlocalStorageis enabled for127.0.0.1in 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.