Agent: bound video GPU work (early-exit frame loop at max_regions) #172
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #171. Image 81602 turned out to be a 156 MB mp4, not a huge still (confirmed via
/api/gallery/image/81602). The agent samples up to 64 frames × ~32 regions/frame → ~2000 regions (the 413) and 64 frames of detect+CCIP+embed (the 38s). TheMAX_REGIONSbackstop only truncated the submit — the GPU work was already spent.Now the frame loop breaks once accumulated regions reach
max_regions, so a long video costs ~a few frames of GPU (~2–3s) instead of all 64 (~38s). The whole-imageembedtask is unaffected (it mean-pools all frames and returns before this loop).Agent-only; full CI green on dev.
🤖 Generated with Claude Code