Nodes/ComfyUI-RvTools_v2/Pipe In Context Video (WVW) v2
ComfyUI Node

Pipe In Context Video (WVW) v2

Two Wans, plus the VRAM toolkit

By r-vageΒ·Created about a year agoΒ·Updated 5 months agoΒ· 23
Pipe In Context Video (WVW) v2
  • base_ctx
  • model_1
  • model_2
  • clip_1
  • vae_1
  • model
  • clip
  • vae
  • loras
  • images_input
  • images_ref_start
  • images_ref_end
  • images_output
  • audio_input
  • audio_output
  • mask_1
  • mask_2
  • images_pp_1
  • images_pp_2
  • images_pp_3
  • images_pp_4
  • images_pp_5
  • text_embeds
  • image_embeds
  • any_1
  • any_2
  • any_3
  • any_4
  • any_5
  • torch_compile_args
  • block_swap_args
  • vram_management_args
  • context
  • model_1
  • model_2
  • clip_1
  • vae_1
  • model
  • clip
  • vae
  • loras
  • width
  • height
  • frame_rate
  • frame_load_cap
  • skip_first_frames
  • select_every_nth
  • images_input
  • images_ref_start
  • images_ref_end
  • images_output
  • audio_input
  • audio_output
  • mask_1
  • mask_2
  • images_pp_1
  • images_pp_2
  • images_pp_3
  • images_pp_4
  • images_pp_5
  • text_embeds
  • image_embeds
  • any_1
  • any_2
  • any_3
  • any_4
  • any_5
  • steps
  • cfg
  • seed
  • torch_compile_args
  • block_swap_args
  • vram_management_args
  • path
β—„widthβ€”β–Ί
β—„heightβ€”β–Ί
β—„frame_rateβ€”β–Ί
β—„frame_load_capβ€”β–Ί
β—„skip_first_framesβ€”β–Ί
β—„select_every_nthβ€”β–Ί
β—„stepsβ€”β–Ί
β—„cfgβ€”β–Ί
β—„seedβ€”β–Ί
β—„pathβ€”β–Ί

Pipe In Context Video (WVW) v2 is the top of the Wan context line and arguably the most serious node in the whole pack: it carries two Wan models (model_1, model_2, both WANVIDEOMODEL) plus a standard model/clip/vae trio, loras, text_embeds, image_embeds - and then three inputs no other node in this pack has: torch_compile_args (WANCOMPILEARGS), block_swap_args (BLOCKSWAPARGS), and vram_management_args (VRAM_MANAGEMENTARGS).

That trio is the WanVideoWrapper VRAM survival kit, and it's the reason this node exists. Wan 2.x's 14B diffusion transformer is enormous for a home GPU, and the wrapper's answer is block swap (offloading transformer blocks to CPU RAM so a 24GB card can run the 14B) and torch.compile (fusing ops to cut both VRAM and inference time). You configure those behaviors in the wrapper's setup nodes and pipe the resulting args objects into this context, so the whole "how do I even fit this model" configuration rides the same wire as the models themselves. If the other context nodes are about tidy wiring, this one is about making a 14B video model run - the two-model layout points at the classic two-pass pattern (cheap first pass for motion, better second pass for detail) that people actually use to make Wan 2.2 work at home.

The context mechanics are the usual rgthree-style dict: base_ctx in, per-field overrides, inherit the rest, everything out on context plus individual outputs. The rest of the slots are the familiar video set - frame loader knobs, images_input, images_ref_start/images_ref_end, images_output, audio in/out, two masks, five images_pp_*, five any_*, steps/cfg/seed/path.

Install. ComfyUI Manager β†’ search "RvTools" β†’ install ComfyUI-RvTools_v2 and restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2
# restart ComfyUI afterwards

No models ship with it. Manual clones: pip install -r requirements.txt (opencv-python, pynvml, piexif, Pillow, pilgram). You must also have ComfyUI-WanVideoWrapper installed - the WANCOMPILEARGS, BLOCKSWAPARGS and VRAM_MANAGEMENTARGS inputs come straight from that pack, and without it this node has nothing to talk to.

The catches. This is the most environment-sensitive node in the pack: it's only useful to WanVideoWrapper users on tight VRAM budgets doing two-model passes. If that's not you, it's just an enormous box of unused slots. Everything else is the familiar caveat list - pack unmaintained with ComfyUI_Eclipse as the README's successor, context is pipe-typed and needs a matching Out node, and cross-pack context dicts don't merge cleanly. When it works it's great; just make sure the wrapper versions line up, because block-swap and compile arg formats have shifted across WanVideoWrapper releases.

Category🫦 RvTools II/ Pipe

Inputs (42)

NameTypeDefaultDescription
base_ctxoptpipeβ€”
model_1optWANVIDEOMODELβ€”
model_2optWANVIDEOMODELβ€”
clip_1optWANTEXTENCODERβ€”
vae_1optWANVAEβ€”
modeloptMODELβ€”
clipoptCLIPβ€”
vaeoptVAEβ€”
lorasoptWANVIDLORAβ€”
widthoptINTβ€”
heightoptINTβ€”
frame_rateoptFLOATβ€”
frame_load_capoptINTβ€”
skip_first_framesoptINTβ€”
select_every_nthoptINTβ€”
images_inputoptIMAGEβ€”
images_ref_startoptIMAGEβ€”
images_ref_endoptIMAGEβ€”
images_outputoptIMAGEβ€”
audio_inputoptAUDIOβ€”
audio_outputoptAUDIOβ€”
mask_1optMASKβ€”
mask_2optMASKβ€”
images_pp_1optIMAGEβ€”
images_pp_2optIMAGEβ€”
images_pp_3optIMAGEβ€”
images_pp_4optIMAGEβ€”
images_pp_5optIMAGEβ€”
text_embedsoptWANVIDEOTEXTEMBEDSβ€”
image_embedsoptWANVIDIMAGE_EMBEDSβ€”
any_1opt*β€”
any_2opt*β€”
any_3opt*β€”
any_4opt*β€”
any_5opt*β€”
stepsoptINTβ€”
cfgoptFLOATβ€”
seedoptINTβ€”
torch_compile_argsoptWANCOMPILEARGSβ€”
block_swap_argsoptBLOCKSWAPARGSβ€”
vram_management_argsoptVRAM_MANAGEMENTARGSβ€”
pathoptSTRINGβ€”

Outputs (42)

NameTypeDescription
contextpipeβ€”
model_1WANVIDEOMODELβ€”
model_2WANVIDEOMODELβ€”
clip_1WANTEXTENCODERβ€”
vae_1WANVAEβ€”
modelMODELβ€”
clipCLIPβ€”
vaeVAEβ€”
lorasWANVIDLORAβ€”
widthINTβ€”
heightINTβ€”
frame_rateFLOATβ€”
frame_load_capINTβ€”
skip_first_framesINTβ€”
select_every_nthINTβ€”
images_inputIMAGEβ€”
images_ref_startIMAGEβ€”
images_ref_endIMAGEβ€”
images_outputIMAGEβ€”
audio_inputAUDIOβ€”
audio_outputAUDIOβ€”
mask_1MASKβ€”
mask_2MASKβ€”
images_pp_1IMAGEβ€”
images_pp_2IMAGEβ€”
images_pp_3IMAGEβ€”
images_pp_4IMAGEβ€”
images_pp_5IMAGEβ€”
text_embedsWANVIDEOTEXTEMBEDSβ€”
image_embedsWANVIDIMAGE_EMBEDSβ€”
any_1*β€”
any_2*β€”
any_3*β€”
any_4*β€”
any_5*β€”
stepsINTβ€”
cfgFLOATβ€”
seedINTβ€”
torch_compile_argsWANCOMPILEARGSβ€”
block_swap_argsBLOCKSWAPARGSβ€”
vram_management_argsVRAM_MANAGEMENTARGSβ€”
pathSTRINGβ€”