# Core dependencies torch>=2.0.0 torchvision>=0.15.0 numpy>=1.24.0 einops>=0.6.0 safetensors>=0.4.0 tqdm>=4.65.0 pillow>=9.5.0 huggingface_hub>=0.19.0 # Optional performance optimizations (not required) # Uncomment if you want SageAttention support for ~20-30% speedup: # sageattention>=1.0.0 # triton>=2.1.0
A powerful ComfyUI custom node based on the FlashVSR model, enabling real-time diffusion-based video super-resolution for streaming applications.
https://github.com/user-attachments/assets/1d1528c5-e3c1-487f-9c29-267ddb817809
High-Quality Video Upscaling: Utilizes the advanced FlashVSR model to upscale videos to 2x or 4x resolution.
enable_tiling to process high-resolution videos efficiently on low-VRAM GPUs..safetensors models from Hugging Face (1038lab/FlashVSR).2025/11/15: FlashVSR 1.1 Model Update + Frame Duplication Fix ( update.md )
2025/10/24: Initial release of ComfyUI-FlashVSR.
.safetensors models, audio passthrough, and tiling for low VRAM.custom_nodes directory. git clone https://github.com/1038lab/ComfyUI-FlashVSR.git
comfy-cli is installed with:“`bash
pip install comfy-cli
“`
“`bash
comfy node install ComfyUI-FlashVSR
“`
ComfyUI/models/FlashVSR/ on the first run..safetensors files into the ComfyUI/models/FlashVSR/ folder.| Model File | Purpose |
|———–|———|
| Wan2_1-T2V-1.1_3B_FlashVSR_fp32.safetensors | New FlashVSR 1.1 Main Diffusion Model |
| Wan2_1-T2V-1_3B_FlashVSR_fp32.safetensors | Previous FlashVSR 1.0 Main Model |
| Wan2.1_VAE.safetensors | Video VAE |
| Wan2_1_FlashVSR_LQ_proj_model_bf16.safetensors | Low-Quality Projection |
| Wan2_1_FlashVSR_TCDecoder_fp32.safetensors | Tiny Model Decoder |
📖 For optional performance optimization (~20-30% speedup), see SageAttention Installation Guide
This node processes image (frame) sequences. For a complete video workflow, combine it with other nodes in ComfyUI.
| Optional Setting | Description | Tips |
| —————————- | —————————————————————————————— | ————————————————————————————————– |
| preset (Simple) | Choose between: Fast (Tiny model), Balanced (Tiny model), High Quality (Full model). | High Quality requires significant VRAM. Consider using the Advanced node if you face OOM errors. |
| model_version (Advanced) | Options: Tiny (Fast), Tiny Long (Low VRAM), Full (Best Quality). | Full offers the best quality, while Tiny Long is optimized for minimal VRAM. |
| enable_tiling (Advanced) | Breaks the video into smaller chunks to save VRAM. | Enable this if you encounter OOM errors, especially with the Full model at 4x scale. |
| speed_optimization | Optimizes for processing speed. Higher values yield faster results. | Default is 2.0. |
| quality_boost | Boosts quality at the cost of VRAM usage. Higher values yield better results. | Default is 2.0. The Full model can handle 3.0 without crashing. |
| Input Frames | The video frames to process. | Requires at least 21 frames for initialization. |
| 4x Upscaling | Optimized for 4x upscaling. | 2x upscaling is supported, but 4x generally provides better results. |
| sageattention (Advanced) | Enable/Disable SageAttention optimization. | Enabled by default. Provides ~20-30% speedup if sageattention package is installed. |
FlashVSR is a real-time diffusion-based video super-resolution model. It is designed to provide high-quality upscaling, particularly suited for streaming applications. The .safetensors versions are included for enhanced compatibility and security.
torch >= 2.0.0torchvision >= 0.15.0safetensors >= 0.4.0huggingface_hub >= 0.19.0einops >= 0.6.0numpy >= 1.24.0tqdm >= 4.65.0pillow >= 9.5.0sageattention >= 1.0.0 – Provides ~20-30% speedup (see Optional Performance Optimization)triton >= 2.1.0 – Required by SageAttentionThese packages are typically included in ComfyUI environments. If you encounter an import error, run:
pip install torch>=2.0.0 torchvision>=0.15.0 safetensors>=0.4.0 huggingface-hub>=0.19.0 einops>=0.6.0
For an automatic ~20-30% performance boost, you can install SageAttention:
pip install sageattention triton
Note:
sageattention to disable.pip uninstall sageattention tritonWan2.1_VAE.safetensors:FlashVSR folder in ComfyUI/models/, then restart ComfyUI to trigger the automatic download again.enable_tiling to reduce VRAM usage.If this custom node helps you or if you appreciate the work, please give a ⭐ on this repo! It’s a great encouragement for my efforts!