FlashVSR+ (unofficial port)
Unofficial ComfyUI nodes for FlashVSR+ video super-resolution (one-step diffusion upscaler, ROCm-tested)
FlashVSR+ for ComfyUI
Unofficial ComfyUI nodes for FlashVSR+, a one-step diffusion model for video super-resolution.
This is a modified version of OpenImagingLab/FlashVSR_Plus, released under the Apache-2.0 license. It is not affiliated with or endorsed by the original authors. The model, the paper and the weights are theirs. See Credits.
Changelog
Unreleased
- The DiT and the Tiny Decoder are loaded, offloaded and streamed by ComfyUI's model management, including DynamicVRAM. The node's own offload, pinning, cache clearing and OOM retry code was removed.
- The model code uses
comfy.ops. int8 weights load throughcomfy.ops.mixed_precision_ops. - Cross-attention uses ComfyUI's attention.
- The Tiny Decoder runs serially on ComfyUI's TAEHV blocks. The parallel decoder path was removed.
- The Tiny Decoder layers before the first and after the last MemBlock run on several frames at once.
- DiT tiles run one at a time.
- New loader input
implementation. - Peak dedicated VRAM on the RX 9070 XT test clip (tiles 128/24) went from 9.4 GB to 6.5 GB, one run from 19.9 s to 16.8 s.
einopsis no longer a dependency. The upstream inference package (CLI, pipeline, Wan VAE) was removed.
1.0.0 (2026-12-03)
First release. Changes from upstream FlashVSR+:
- Two ComfyUI nodes (V3 schema): FlashVSR+ Loader and FlashVSR+ Upscale, working on regular
IMAGEbatches. - ComfyUI model management: the DiT and the decoder are loaded and offloaded through
ModelPatcher, and the weights live inmodels/FlashVSR_Plus/. - Spatial tiling, set separately for the DiT and the decoder, with cosine-blended overlaps. Equal-sized DiT tiles are batched to fill free VRAM.
- Optional int8 DiT weights (ConvRot, via Comfy Kitchen), about 1.4 GB less VRAM.
- ComfyUI's RoPE, RMSNorm and AdaLN helpers in the DiT. The in-tree Triton sparse attention kernel is used when Triton is available, with ComfyUI attention as a fallback.
- The cross-attention K/V of the fixed text prompt are computed once per run.
- Runs on AMD ROCm, including Windows. The Upscale node enables MIOpen for its own run.
- Faster runs: no per-layer host syncs in sparse attention, one LQ projection call per stream chunk, the allocator cache is kept between decoder tiles, and the Tiny Decoder output is scaled on the GPU. On the RX 9070 XT test clip (tiles 128/24), one run went from 31.4 s to 19.0 s.
- Missing model files are downloaded from Hugging Face on first use.
- Example workflow in
example_workflow/. - Published on the Comfy Registry as
deeh0pe-flashvsr-plus. - The
v1preset was removed. The upstream CLI and Python API are not maintained here.
Requirements
- A recent ComfyUI with the V3 node API and
comfy-kitchen. - A GPU. Developed and tested on an AMD RX 9070 XT (gfx1201, ROCm on Windows). NVIDIA should work but has not been tested.
- Triton (optional, strongly recommended). If Triton can be imported, the fused sparse attention kernel is used. Otherwise the node falls back to ComfyUI attention, which is several times slower.
Installation
Run these with the Python environment ComfyUI uses:
cd ComfyUI/custom_nodes
git clone https://github.com/DeeH0pe/deeh0pe-flashvsr-plus
pip install -r deeh0pe-flashvsr-plus/requirements.txt
Model files
The loader downloads missing files from ruchangyao/FlashVSR_plus the first time it runs. That is about 6.8 GB per preset plus 190 MB for TCDecoder.ckpt. Set HF_HUB_OFFLINE=1 to turn this off. Missing files then raise an error. To download them manually, place them like this:
ComfyUI/models/FlashVSR_Plus/
├── turbo/
│ ├── dit.safetensors
│ └── lq_proj_in.safetensors
├── base/
│ ├── dit.safetensors
│ └── lq_proj_in.safetensors
└── TCDecoder.ckpt
You only need the preset you use. The text prompt tensor (prompt_tensor/posi_prompt.pth) is part of this repository.
Optional: int8 DiT
The int8 weights are not downloaded. Make them from the bf16 DiT:
- Run the loader once with
weights = bf16so thatdit.safetensorsgets downloaded. - From the ComfyUI folder, with ComfyUI's Python, run:
This writespython custom_nodes/deeh0pe-flashvsr-plus/convert_int8.py turbo # or: basedit_int8.safetensorsnext todit.safetensors. The script always reads and writesComfyUI/models/FlashVSR_Plus/<mode>/, so it does not follow a different models folder set with--base-directory. - Select
weights = int8in the loader. After that, you can deletedit.safetensorsif you want to free the space.
Nodes
FlashVSR+ Loader
| Input | Description |
|---|---|
| mode | turbo or base. |
| weights | bf16 uses dit.safetensors, int8 uses dit_int8.safetensors. |
| implementation | own uses the Triton sparse attention kernel, comfy uses ComfyUI attention (several times slower), auto picks own when Triton is available. |
FlashVSR+ Upscale
| Input | Default | Description |
|---|---:|---|
| pipe | | Output of the loader. |
| images | | Video frames as an IMAGE batch. |
| scale | 4.0 | Upscale factor. The output is padded internally to a multiple of 128 and cropped back. |
| temporal_compression | 4 | Lower it to 2 or 1 for videos with large motion. This is slower. |
| color_correction | off | Wavelet low-frequency color correction against the input. |
| seed | 1 | Noise seed. |
| dit_tiled / dit_tile_size / dit_overlap | off / 128 / 24 | Run the DiT on spatial tiles. Sizes are in input pixels. |
| vae_tiled / vae_tile_size / vae_overlap | off / 128 / 24 | Decode spatial tiles. Sizes are in input pixels. |
| cache_text_context | on | Compute the text cross-attention K/V once per run. |
Tips
- If you run out of VRAM, enable
dit_tiledandvae_tiled. 128/24 is a safe start. Larger tiles are faster but need more VRAM. - All frames are held in memory as one
IMAGEbatch, so split very long videos into parts.
Credits
FlashVSR+ was created by Ruchang Yao, Shi Guo, Junhao Zhuang, Mingde Yao, Xin Cai, Jiahao Zhan, Bin Fu, Xinyuan Chen, Yu Qiao and Tianfan Xue (Shanghai AI Lab, MMLAB CUHK, Tsinghua University, CPII under InnoHK).
Project page · Paper · Weights · Original code
@misc{yao2026flashvsrefficientvideosuperresolution,
title={FlashVSR+: Efficient Video Super-Resolution via Hybrid Attention and Reward-Yield Distribution Matching},
author={Ruchang Yao and Shi Guo and Junhao Zhuang and Mingde Yao and Xin Cai and Jiahao Zhan and Bin Fu and Xinyuan Chen and Yu Qiao and Tianfan Xue},
year={2026},
eprint={2610.17552},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.17552},
}
@article{zhuang2025flashvsr,
title={FlashVSR: Towards Real-Time Diffusion-Based Streaming Video Super-Resolution},
author={Zhuang, Junhao and Guo, Shi and Cai, Xin and Li, Xiaohui and Liu, Yihao and Yuan, Chun and Xue, Tianfan},
journal={arXiv preprint arXiv:2510.12747},
year={2025}
}
License
Apache-2.0, see LICENSE. The model weights are distributed separately by their authors under their own terms.