Nodes/Comfy EverAnimate/EverAnimate Chunks Calculator
ComfyUI Node

EverAnimate Chunks Calculator

Tiny node that tells you how many chunks a video will take

By younestft·Created 3 months ago·Updated 3 months ago· 17
EverAnimate Chunks Calculator
  • chunks_calculator
  • INT

The EverAnimate Chunks Calculator is a dead-simple utility that answers one question before you burn an hour of GPU time: how many 81-frame chunks is this pose video going to need? It's the smallest node in the Comfy EverAnimate pack, and honestly it does its one job well.

You connect the chunks calculator output from the Master Settings node to its single input, and the node does the math: it takes the pose video's frame count and the Master's chunk length, divides, and rounds up. The result is (pose frames + chunk length - 1) // chunk length, with the Initial Chunk counted as chunk 1, so a 200-frame pose at 81 per chunk reports 3.

What you actually see

The fun part is the display. This node is marked as an output node, so it renders a small panel right on the canvas showing "Total chunks needed" followed by the number in bold - a proper UI, not just another widget buried in the node. A custom front-end script draws it, and it updates after each run.

The other thing it produces is a plain INT output containing just the chunk count. That's the genuinely useful bit: wire that INT into anything that wants a count - a text display, a loop count, an INT-driven switch - and you can build graphs that adapt to however long your driving video is, without hardcoding "3 chunks" anywhere.

The honest limits

It needs the Master's pose video to be connected, since the count comes from the pose video's frame count. Disconnect the pose video and the panel politely says "Pose video is not connected" and reports 0. And it's only ever as accurate as the chunk length you set on the Master - change that and the count changes, which is by design, not a bug.

Given the whole chunked-workflow genre, this is a "nice to have" rather than essential - you can count windows on your fingers for a fixed-length project. Where it earns its keep is a workflow where you drop in different-length driving videos and want the rest of the graph to scale itself.

Install

Same as every node in the pack - ComfyUI Manager (search "Comfy EverAnimate") or:

cd ComfyUI/custom_nodes
git clone https://github.com/younestft/Comfy_EverAnimate.git Comfy-EverAnimate

Restart ComfyUI. No dependencies, no model files.

Common issues

  • Shows "Pose video is not connected" - wire a pose video into the Master Settings node. The calculator reads it from there.
  • Count looks off by one - remember chunk 1 is the Initial Chunk, and partial chunks round up. That's the intended behavior.
  • The node needs a current ComfyUI for the custom in-canvas panel; if the panel doesn't render but the node runs, update ComfyUI first.
Categorymodel/conditioning/video_models

Inputs (1)

NameTypeDefaultDescription
chunks_calculatorEVERANIMATE_CHUNKS_CALCULATOR

Outputs (1)

NameTypeDescription
INTINT