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

# OpticalFlowLoader - ComfyUI Built-in Node Documentation

> Complete documentation for the OpticalFlowLoader node in ComfyUI. Learn its inputs, outputs, parameters and usage.

## 概述

从 `models/optical_flow/` 文件夹中加载光流模型。目前仅支持 torchvision 的 RAFT-large 格式，这也是 VOIDWarpedNoise 节点所使用的模型。ComfyUI 不会自动下载光流权重文件，您需要手动将检查点文件放置在 `models/optical_flow/` 目录中。

## 输入

| 参数           | 描述                                                                         | 数据类型   | 是否必填 | 取值范围                             |
| ------------ | -------------------------------------------------------------------------- | ------ | ---- | -------------------------------- |
| `model_name` | 要加载的光流模型。文件必须放置在 `optical_flow` 文件夹中。目前仅支持 torchvision 的 `raft_large.pth`。 | STRING | 是    | `models/optical_flow/` 文件夹中的文件列表 |

## 输出

| 输出名称           | 描述                                  | 数据类型  |
| -------------- | ----------------------------------- | ----- |
| `OPTICAL_FLOW` | 加载的光流模型，封装在 ModelPatcher 中，供其他节点使用。 | MODEL |

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

***

**Source fingerprint (SHA-256):** `94bab0bb7e2b9d9b3f343337799eccc744f79275b72a6fad9681b408b4a0820b`
