This repository has been archived on 2026-05-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
imagerepo/app
bvandeusen 641a52d1ad diag(ml): per-stage timing + file size in video inference logs
Adds per-call instrumentation to _run_video_inference so we can see
where the cost goes on slow videos: frame extraction (ffmpeg seeks),
WD14, or SigLIP. Also captures file size to correlate slowness with
file characteristics.

Output shape:
  tag_and_embed: video 7384 timings extract=12.3s wd14=24.1s
  siglip=82.6s frames=10/10 file_size=412.5MB

Investigating a soft-time-limit storm where the deployed code has
soft_time_limit=900 but workers are firing limits at ~120s intervals.
This patch is pure observability — no behavior change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 11:09:41 -04:00
..