For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/01/OpticalFlowLoader.md.

加载光流模型(OpticalFlowLoader)

OpticalFlowLoadermodel/loaders角色:功能节点

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

参数

参数类型默认 / 范围说明
model_nameCOMBO文件/选项(运行时列出)要加载的光流模型。文件必须放置在 optical_flow 文件夹中。目前仅支持 torchvision 的 raft_large.pth。

输出

输出类型说明
OPTICAL_FLOWOPTICAL_FLOWOPTICAL_FLOW

怎么接

  • 上游:同类型上游
  • 下游:同类型下游
  • 接线:本节点无需上游连线,输出 OPTICAL_FLOW 供下游使用。

使用案例

从 model_name(文件/选项(运行时列出)) 开始填就能跑起来。典型接法:同类型上游 → 本节点 → 同类型下游。输出类型是 OPTICAL_FLOW,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

OpticalFlowLoader 端口与连线示意

同类节点

ClipLoader · 加载CLIP视觉 · Ckeckpoint加载器(已弃用) · Checkpoint加载器(简易) · 加载ControlNet模型 · 加载ControlNet模型(diff) · Diffusers加载器 · 双CLIP加载器 · 超网络加载器 · Checkpoint加载器(仅图像) · 加载LoRA · LoRA加载器(仅模型)