> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SeedVR2Preprocess - ComfyUI Built-in Node Documentation

> 此节点通过将调整尺寸后的图像或视频填充到 SeedVR2 模型期望的形状，为 SeedVR2 模型准备输入。

此节点通过将调整尺寸后的图像或视频填充到 SeedVR2 模型期望的形状，为 SeedVR2 模型准备输入。像素值会被限制在 0-1 范围内，高度和宽度会填充为 16 的倍数，帧数会通过重复最后一帧进行填充，直到符合 4n+1 模式（1、5、9、13、...）。处理过程中会丢弃 alpha 通道；配套的 Post-Process SeedVR2 Output 节点稍后会从原始调整尺寸后的图像中恢复它。

## 输入

| 参数               | 描述            | 数据类型  | 必需 | 范围 |
| ---------------- | ------------- | ----- | -- | -- |
| `resized_images` | 要处理的调整尺寸后的图像。 | IMAGE | 是  | -  |

注意：输入可以是单帧、帧序列，或一批视频（4-D 或 5-D IMAGE 张量）。如果通道数超过 3，则会丢弃 alpha 通道，仅保留 RGB。输入的较短边必须至少为 2 像素。空间填充使用黑色（值 0），有效帧数符合 4n+1 模式（1、5、9、13、...）。

## 输出

| 输出名称     | 描述               | 数据类型  |
| -------- | ---------------- | ----- |
| `images` | 用于 VAE 编码的填充后图像。 | IMAGE |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SeedVR2Preprocess/zh.md)

***

**Source fingerprint (SHA-256):** `f4fa433d299feba40696f27ff365c59988e5102112f09536724b5db5b09416bb`
