WanVideo Strength Visualizer
Turn a 40-number strength array into a chart your eyes can actually read
- block_strengths
- text_visualization
- graph_image
A BLOCK_STRENGTHS object is forty numbers. Forty numbers in a row is not information - it's noise your brain has to decode before you can tell whether the curve does what you think it does. This node fixes that by drawing the thing.
It takes the strength profile from WanVideoBlockStrengthBuilder and renders it two ways:
- text_visualization (STRING) - an ASCII bar chart, one row per strength level, with the block numbers along the bottom. Plus the useful stats: which blocks sit above 0.5, the average, and the peak ("Peak strength: 0.800 at block 22").
- graph_image (IMAGE) - the same 40 bars rendered as an actual image tensor, each block a column whose brightness is its strength, with block numbers overlaid every five columns. Wire it into a preview node if you want it on the canvas instead of in the console.
Inputs are block_strengths (required), show_numbers (labels on the image, default on), and graph_height (5–20 rows of ASCII, default 10). There's nothing to tune here - it's a pure readout node.
Why you'd reach for it
Two real uses. First, design-time verification: pick a pattern, look at the chart, and catch the mistake before you burn a generation. A linear_rise with base_strength 0.5 and a gaussian_peak are both "curves," but they do opposite things - the visualizer makes that obvious in one glance instead of after one wasted render.
Second, it's the honest checkpoint for the pack's strength-curve story. As covered in the WanVideoBlockStrengthBuilder and WanVideoAdvancedActivationEditor articles, the per-block strength feature is currently half-plumbed - the curves are real, the visualization is real, but the runtime patch doesn't consume per-block strengths yet. If you're going to experiment with these patterns anyway, at least see what you're building, and know what to re-check when the repo updates.
Install
Same pack install as everything else here - fblissjr/ComfyUI-WanActivationEditor, which needs kijai's ComfyUI-WanVideoWrapper first:
cd ComfyUI/custom_nodes
git clone https://github.com/kijai/ComfyUI-WanVideoWrapper # required first
git clone https://github.com/fblissjr/ComfyUI-WanActivationEditor
cd ComfyUI-WanActivationEditor && pip install -r requirements.txt
Restart ComfyUI. ComfyUI Manager works too (search "ComfyUI-WanActivationEditor").
One gotcha to file away: if you feed it something that isn't a BLOCK_STRENGTHS object - say you hand it a raw string or a float by mistake - it returns "Invalid block strengths data" and no image. Make sure the input actually comes from the strength builder's block_strengths output. And if you get no graph_image, that's PIL missing from your Python environment; the text output still works.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| block_strengths | BLOCK_STRENGTHS | — | |
| show_numbers | BOOLEAN | true | — |
| graph_height | INT | 105–20 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text_visualization | STRING | — |
| graph_image | IMAGE | — |