Nodes/ComfyUI-FlashVSR-Stock/FlashVSR Postprocess
ComfyUI Node

FlashVSR Postprocess

Postprocesses stock Wan VAE output by trimming tail-padding frames to the original frame count and removing the right/bottom padding added for 128-pixel spatial alignment. FlashVSR's official causal layout starts directly at source frame zero. Fast AdaIN and low-frequency wavelet color correction are optional.

By Pizzawookiee·Created 14 days ago·Updated 4 days ago· 2
FlashVSR Postprocess
  • images
  • video
  • IMAGE
color_correctionoff
color_chunk_size4
color_deviceauto
inplace_correctiontrue
profile_stagesfalse
CategoryFlashVSR/decoding

Inputs (7)

NameTypeDefaultDescription
imagesIMAGEDecoded padded frames from stock VAE Decode. The node removes duplicated tail frames and right/bottom spatial alignment padding.
videoFLASHVSR_VIDEOPrepared-video metadata used to restore the requested frame count, width, and height.
color_correctionCOMBOoffoff preserves the VAE output. adain is the fast option: it matches each frame's per-channel mean and contrast to the resized input. wavelet_quarter_res transfers spatially varying low-frequency color at quarter width and height and is the practical wavelet option. wavelet_full_res performs all five blur passes at the complete output resolution for an exact but much slower result.
color_chunk_sizeINT41–64Frames color-corrected together. Larger batches reduce per-frame overhead; 1 minimizes temporary memory. This also batches AdaIN when that mode is selected.
color_deviceCOMBOautoDevice used by AdaIN/wavelet correction. auto uses a CUDA GPU when available and otherwise CPU. GPU work is bounded by color_chunk_size and uses FP16 workspaces.
inplace_correctionBOOLEANtrueCorrect the decoder IMAGE tensor in bounded chunks instead of allocating a second complete video. Disable only when the uncorrected decoder output is also used by another workflow branch.
profile_stagesBOOLEANfalsePrint wall time and per-stage color-correction timing for transfers, downsampling, lowpass, upsampling, clamping and output transfer.

Outputs (1)

NameTypeDescription
IMAGEIMAGE