ComfyUI+RelaySR视频清晰度提升
我使用ComfyUI+RelaySR视频清晰度提升,在window11+3070 显卡下实现了视频优化清晰度提升,提升效果还是非常明显的。
看效果:

步骤:
1. 按照最新版本 ComfyUI,我是直接下载window版本 ComfyUI_windows_portable,运行的bat版本的 run_nvidia_gpu.bat
这里可用说一下:如果你没有特别好的显卡,可用尝试用 CPU,即 run_cpu.bat
我本地地址: D:\ProgramData\ComfyUI_windows_portable
2.下载对应模型
(1)下载 RelaySR 工作流支持RelayVSR画布内容
cd /d D:\ProgramData\ComfyUI_windows_portable\ComfyUI\custom_nodes
git clone https://github.com/bbaudio-2025/Comfyui-Relay-VSR.git
(2)下载模型
# 你可用根据自己需要的倍数,去下不同的模型
./ComfyUI/
└── models/
└── relayvsr/
├── RelayVSR_X2/ (这个是下载的)
│ ├── wan_x2.safetensors
│ └── flash_x2.safetensors
│
└── RelayVSR_X2_int8_convrot/ (这个是生成的)
├── wan_x2_int8_convrot.safetensors
└── flash_x2.safetensors
# 模型下载地址:
https://huggingface.co/lightx2v/RelayVSR_X2/tree/main?utm_source=chatgpt.com
# 国内
http://hf-mirror.com/lightx2v/RelayVSR_X2/tree/main?utm_source=chatgpt.com
(3)因为我用3070是8G GPU内存,不足,降低模型规格
# 在软件目录下运行
python_embeded\python.exe ComfyUI\custom_nodes\Comfyui-Relay-VSR\convert_to_int8_convrot.py ComfyUI\models\relayvsr\RelayVSR_X2
3. 新建 ComfyUI 画布,将下面流程保存为 json拖进去,自动加载
{
"1": {
"inputs": {
"file": "test_10s.mp4",
"video-preview": ""
},
"class_type": "LoadVideo",
"_meta": {
"title": "加载视频"
}
},
"2": {
"inputs": {
"bundle": "RelayVSR_X2_int8_convrot",
"dtype": "fp16",
"offload": true,
"attention": "sdpa",
"path": ""
},
"class_type": "RelayVSRModelLoader",
"_meta": {
"title": "RelayVSR 模型加载器"
}
},
"3": {
"inputs": {
"upscale_width": 0,
"sr_ratio": 2,
"chunk_len": 8,
"seed": 0,
"chunk_overlap": 4,
"spatial_grid_cols": 1,
"spatial_grid_rows": 1,
"spatial_overlap": 64,
"codec": "h264",
"crf": 18,
"preset": "medium",
"filename_prefix": "RelayVSR/person_x2",
"model": [
"2",
0
],
"video": [
"1",
0
]
},
"class_type": "RelayVSRUpscaleStreaming",
"_meta": {
"title": "RelayVSR 流式超分"
}
}
}
4. 选择视频,进行生成

需要补充:你可用不指定宽度,默认是提宽高为原来视频2倍。