ComfyUI Node
AP Apply RAFT Optical Flow (Latent, Masked)
A ComfyUI node in AP_OpticalFlow with 15 inputs and 4 outputs.
AP Apply RAFT Optical Flow (Latent, Masked)
- latent
- mask
- flow_data
- output_latent
- warped_latent
- warped_mask
- valid_mask
◄flow_directionab►
◄batch_modeauto►
◄flow_skip0►
◄frames_skip0►
◄strength1.00►
◄invert_flowfalse►
◄invert_maskfalse►
◄mask_strength1.00►
◄mask_feather0►
◄interpolationbilinear►
◄padding_modeborder►
◄current_frame_index0►
CategoryAP_OpticalFlow
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| latent | LATENT | — | |
| mask | MASK | — | |
| flow_data | AP_FLOW | — | |
| flow_direction | COMBO | ab | 2 options: ab, ba |
| batch_mode | COMBO | auto | 3 options: auto, by_index, repeat_latent |
| flow_skip | INT | 00–2147483647 | — |
| frames_skip | INT | 00–2147483647 | — |
| strength | FLOAT | 1.00-4–4 | — |
| invert_flow | BOOLEAN | false | — |
| invert_mask | BOOLEAN | false | — |
| mask_strength | FLOAT | 1.000–2 | — |
| mask_feather | INT | 00–64 | — |
| interpolation | COMBO | bilinear | 3 options: bilinear, nearest, bicubic |
| padding_mode | COMBO | border | 3 options: border, zeros, reflection |
| current_frame_indexopt | INT | 00–2147483647 | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| output_latent | LATENT | — |
| warped_latent | LATENT | — |
| warped_mask | MASK | — |
| valid_mask | MASK | — |