β¨οΈ CR Load Flow Frames
Step through a folder one frame at a time, current plus previous
- current_image
- previous_image
- current_frame
- show_help
This one's built for a specific old-school animation technique: stepping through a folder of frames one at a time and getting both the current frame and the previous one out together. That pairing - current plus previous - is exactly what optical-flow-based temporal consistency techniques need: warp or blend the current frame using motion estimated between it and its predecessor. It's a pattern from before native video diffusion existed, when people chained still-image diffusion frame by frame and used optical flow to keep things from flickering between frames.
How it works
Point it at a folder (input_folder, picked from a dropdown, or a raw input_path string if you'd rather type one), and it treats that folder as a sequence ordered by sort_by. current_frame is the index you're processing right now; the node loads that frame as current_image and the one before it as previous_image. skip_start_frames lets you jump past however many frames at the beginning of the folder before counting starts - handy if a sequence has junk frames up front. file_pattern (default *.png) filters which files in the folder actually count as part of the sequence.
Because it hands current_frame back as an output too, you can wire that into an incrementing loop (bump it, feed it back in) to walk through the whole folder frame by frame across repeated runs.
Inputs and outputs that matter
input_folder(dropdown) and the optionalinput_path(typed path) - pick your frame source.sort_by-IndexorAlphabetic, how the folder's files get ordered into a sequence.current_frameandskip_start_frames- which frame you're on, and how many to skip before frame 0.file_pattern- optional filter, default*.png.- Outputs:
current_image,previous_image,current_frame(passed through as INT, useful for a counter loop), andshow_help.
How to install it
ComfyUI Manager: search "Comfyroll Studio", install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, restart. Nothing extra to download - this reads whatever image files you point it at.
Common issues
Sort order is the thing that bites people: if your filenames aren't zero-padded (frame1.png, frame2.png, β¦ frame10.png), alphabetic sort puts frame10.png right after frame1.png, not after frame9.png. Switch to Index sort if your naming is numerically consistent, or rename your files with leading zeros.
On the very first frame of a sequence there's no real "previous" frame to hand back - check what your graph does with previous_image at current_frame 0 (or wherever skip_start_frames lands you) before building a flow-warp step on top of it that assumes both images always exist.
Worth being honest about where this technique sits today: per-frame diffusion with optical-flow consistency was a genuine workaround in the animation-from-stills era, but native video models with temporal attention baked in have mostly displaced it for anyone doing serious video generation now. This node is most useful if you're maintaining or extending a workflow that was already built this way.
And the usual: if the node's missing, check your ComfyUI console for an import error elsewhere in the pack before assuming this specific node is broken.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| input_folder | COMBO | 0 options: | |
| sort_by | COMBO | 2 options: Index, Alphabetic | |
| current_frame | INT | 00β10000 | β |
| skip_start_frames | INT | 00β10000 | β |
| input_pathopt | STRING | β | |
| file_patternopt | STRING | *.png | β |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| current_image | IMAGE | β |
| previous_image | IMAGE | β |
| current_frame | INT | β |
| show_help | STRING | β |