Network Bending (Advanced)
The advanced node that's honest about being unfinished
- model
- MODEL
I'm going to tell you the unvarnished thing up front, because nobody deserves to discover it by building a workflow: as of the shipped 0.0.1 code, this node is a placeholder. It takes your model, clones it, and returns it - untouched. The six advanced operations in the dropdown (layer_swap, activation_replace, weight_transpose, channel_shuffle, frequency_filter, weight_clustering) look great and do nothing. The source literally contains the comment "Placeholder for advanced operations." So if you've already read the Network Bending article, you know which node of the two you actually want: the plain one, which is fully implemented, or this one, which is a promise.
What it's supposed to be
The concept is sound and the names tell the story. layer_swap would swap weights between similar layers (a real technique for blending model behavior). activation_replace would swap activation functions. weight_transpose transposes weight matrices - a shortcut to chaos. channel_shuffle scrambles channels in conv layers, frequency_filter filters weights in the frequency domain, and weight_clustering groups similar weights together. All of these are real, research-backed ways to bend a network. None of them run yet.
There's also a preserve_functionality toggle (default false) that's supposed to try to keep the model working while you bend it. In a working implementation that would be the safety rail; right now it's just a checkbox on a no-op.
The inputs that exist
For completeness, since you'll see them in the node:
model- the checkpoint to (theoretically) modify.operation- the six-mode dropdown above.intensity- 0–1, your (theoretical) dial.preserve_functionality- the safety toggle.
Output is a MODEL. It will be a faithful clone of your input, and only a clone.
How to check whether it's fixed yet
The pack is DavidPiazza/network_bending, at version 0.0.1. Install it via ComfyUI Manager ("Network Bending") or:
cd ComfyUI/custom_nodes
git clone https://github.com/DavidPiazza/network_bending.git
Before you trust this node, look at the source in src/network_bending/nodes.py - find class NetworkBendingAdvanced and see whether bend_network_advanced still returns the clone without doing anything. If it does, use the plain NetworkBending node for actual bending and check the repo's issues for when the advanced ops land. It's a young pack from an academic author (David Piazza, Université de Montréal), and this is the "roadmap" node of the bunch. When the advanced operations do get wired up, they'll be a genuinely exciting toy - the technique list is one of the best in the pack. Just don't wait on it.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | The model checkpoint to modify | |
| operation | COMBO | layer_swap | Advanced network bending operations |
| intensity | FLOAT | 0.500–1 | — |
| preserve_functionality | BOOLEAN | false | Try to preserve model functionality while bending |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |