SeedVR2:影片放大 - After
SeedVR2:影片放大 - Before

The SeedVR2: Video Upscaling workflow is designed to enhance the resolution of videos, making them suitable for high-definition displays. It utilizes the SeedVR2 model, which is specifically tailored for video upscaling tasks. The workflow begins by loading a video using the LoadVideo node, which is then processed to extract individual frames through the GetVideoComponents node. These frames are upscaled using the SeedVR2_VideoUpscaler custom node, which leverages advanced algorithms to increase the resolution while maintaining visual quality. The upscaled frames are then reassembled into a video using the CreateVideo node and saved with the SaveVideo node. This process is particularly useful for improving the quality of older or lower-resolution videos, making them appear sharper and more detailed.

Technically, the workflow operates by processing each frame of the video individually, allowing for precise control over the upscaling process. The ImageScale node is used to adjust the resolution settings, which are based on the height of the output video. This ensures that the aspect ratio is preserved, providing a seamless viewing experience. The SeedVR2 model is known for its ability to enhance details without introducing artifacts, making it an excellent choice for video upscaling tasks. By using this workflow, users can transform standard-definition videos into high-definition content, suitable for modern viewing platforms.

API

從程式碼使用此工作流

每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。

utility_seedvr2_video_upscale.json
正在取得工作流 JSON…

使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。

// Install (beta)
npm i @comfyorg/sdk

// Run "SeedVR2:影片放大" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("utility_seedvr2_video_upscale_api.json");

const job = await client.run(wf);
await job.getOutputs("17")[0].toFile("output.png"); // SaveVideo

SDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。

Comfy Cloud API 存取需有 API 金鑰的方案。

常見問題

常見問題

查看所有工作流
Showing 30 of 30 templates