Nodes/ComfyUI-MAINodes/RelayVSR • X2 / X4 Settings
ComfyUI Node

RelayVSR • X2 / X4 Settings

A ComfyUI node in RelayVSR with 21 inputs and 1 output.

By matlowai·Created 3 months ago·Updated a day ago· 233
RelayVSR • X2 / X4 Settings
  • loop_experiment
  • settings
◄variantX4 original (recommended, also for 2x)►
◄lightx2v_rootauto►
◄model_dirauto►
◄python_executableauto►
◄execution_modesingle GPU►
◄gpu_ids0►
◄output_scale2►
◄compile_modelfalse►
◄warmupfalse►
◄clip_len16►
◄queue_size4►
◄codeclibx264►
◄crf17►
◄preserve_audiotrue►
◄unload_comfy_modelstrue►
◄qualityfaithful: back-projection + residual 0.85►
◄back_projection1.00►
◄residual_gain0.85►
◄downscalebicubic►
◄vramauto (pick by GPU memory)►
CategoryRelayVSR

Inputs (21)

NameTypeDefaultDescription
variantCOMBOX4 original (recommended, also for 2x)2 options: X4 original (recommended, also for 2x), X2 native
lightx2v_rootSTRINGautoPath to ModelTC/LightX2V checkout, or auto
model_dirSTRINGautoFolder containing BOTH variant checkpoints
python_executableSTRINGautoLightX2V venv Python; auto picks its .venv/bin/python
execution_modeCOMBOsingle GPU3 options: single GPU, Wan block offload, two GPUs (SP)
gpu_idsSTRING0Single GPU 0 or, for SP, 0,1. Physical GPU indexes (CUDA_VISIBLE_DEVICES).
output_scaleCOMBO22 options: 2, 4
compile_modelBOOLEANfalse—
warmupBOOLEANfalse—
clip_lenINT164–128—
queue_sizeINT41–64—
codecCOMBOlibx2642 options: libx264, libx265
crfINT170–51—
preserve_audioBOOLEANtrue—
unload_comfy_modelsBOOLEANtrue—
qualityCOMBOfaithful: back-projection + residual 0.85Named presets set the three knobs below (and, for the Flash ones, a Flash loop on its last 4 blocks at half strength). 'custom' uses the knobs as set. Measured with the X4 model at 2x output; 'smooth' was measured with clip_len 32.
back_projectionFLOAT1.000–1custom only. Shrinks each output frame back to the input size and adds this much of the difference back, so shapes, thickness and brightness match the input while the added texture stays. 0 = off.
residual_gainFLOAT0.850–3custom only. How much of the detail RelayVSR adds on top of a plain bicubic upscale: below 1 is more faithful and calmer, above 1 crisper with more invented texture. 1 = stock.
downscaleCOMBObicubiccustom only. Filter for the X4 model's 4x result when the output is 2x. bilinear is calmer and softer; bicubic is stock.
vramCOMBOauto (pick by GPU memory)Memory/speed tier (single GPU). 24 GB+: int8 weights + int8 KV cache, ~23 % faster than bf16 with offload. 16 GB: W6A8 weights + int4 KV, fits a 16 GB card at 1280x704 in. Uses the matching wan_<mode>.safetensors next to flash.safetensors when present, else quantizes wan.safetensors on load. Drift vs full precision is invisible (44-53 dB). With Wan block offload only the KV cache is quantized; two GPUs stay full precision.
loop_experimentoptRELAYVSR_LOOP_SETTINGS—

Outputs (1)

NameTypeDescription
settingsRELAYVSR_SETTINGS—