Nodes/RES4LYF/ReWanPatcher
ComfyUI Node Runs on cloud

ReWanPatcher

Unlock RES4LYF's Wan video features

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
ReWanPatcher
  • model
  • model
enabletrue

If you want to do the RES4LYF things on a Wan video model - regional conditioning, temporal (frame-by-frame) prompting, style transfer, video-to-video editing - you patch the model first. ReWanPatcher is that patch. It's the Wan counterpart to ReFluxPatcher: model in, model out, and now the pack's guide and conditioning machinery can hook into your Wan generation.

Wan is where RES4LYF gets genuinely wild. The pack supports changing the prompt on a per-frame basis and drawing regional masks across a video, and the author has claimed generating as many as 601 frames in a single shot on a single 4090 using the sliding-window attention in the Advanced version of this patcher. The base ReWanPatcher is the on-ramp: it enables the feature set without the extra long-video controls.

How it works

It's a model patcher. It rewires the Wan transformer so RES4LYF's guides, regional/temporal conditioning, and style transfer can inject into sampling. You place it between your Wan model loader and your sampler; everything downstream that expects a RES4LYF-patched Wan model will now work. Nothing is computed here - it's a cheap, reversible patch.

The inputs and outputs that matter

This node keeps it simple - just two controls:

  • model (MODEL) - your Wan model. The single output is model (MODEL), wired onward to your sampler (or the next patcher).
  • enable (default true) - toggle the patch on or off in place, so you can A/B whether the RES4LYF features are actually doing something without unplugging the node.

That's the whole surface. The interesting parameters live on the guide, conditioning, and sampler nodes you feed this patched model into - ReWanPatcher just opens the door.

How to install it

ComfyUI Manager: search RES4LYF, install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF
cd RES4LYF
pip install -r requirements.txt

Portable ComfyUI: use the embedded pip. Restart, then hard-refresh the browser with F5. No models to download for the node itself - you supply your own Wan checkpoint.

Common issues & troubleshooting

The RES4LYF features do nothing. ReWanPatcher only enables them; the actual effect comes from the guide/conditioning nodes you attach. If regional or temporal conditioning isn't showing up, confirm those nodes are wired and that this patched model (not the raw one) is what reaches the sampler.

Wrong patcher for the model. This is the Wan patcher. On Flux use ReFluxPatcher instead - the pack ships a per-architecture patcher rather than one universal node, and pointing the wrong one at your model won't do what you want.

Want long videos? Look at the Advanced variant of this patcher for the sliding-window attention that makes very long frame counts feasible. The base node here is the simpler entry point; the extra-long-video controls live on the Advanced one.

Out of memory on video. That's Wan being Wan, not this node - video latents are heavy. Fewer frames, lower resolution, or the sliding-window approach on the Advanced patcher are the levers, not this patch.

CategoryRES4LYF/model_patches

Inputs (2)

NameTypeDefaultDescription
modelMODEL
enableBOOLEANtrue

Outputs (1)

NameTypeDescription
modelMODEL