hn.today

Show HN: I made a computer vision tool for evaluating deadlift form

github.com7 points1 comments
Screenshot of Show HN: I made a computer vision tool for evaluating deadlift form

A computer-vision tool that evaluates deadlift form from side-on video: it counts reps, timestamps each pull, measures bar height using the near plate as a ruler, and classifies each rep's back as STRAIGHT or ROUNDED with live probability displayed beside the footage. Three models are combined: a ViTPose model for pose and hip hinge angle (used to cross-check rep counting), SAM 3.1 to track the plate and derive bar height (assumes a 45 cm Olympic plate), and a System One read (gemma-4-26b-a4b-it) that returns per-frame probabilities {"straight", "rounded"} about spinal shape. Each rep verdict is the mean P(rounded) across the first pull (from bar leaving the floor to roughly the knee), and the classifier is explicitly about spine shape, not torso lean.

Setup and usage are concrete: get a VLM Run API key, set it in a .env, create the provided conda environment, drop side-on clips into data/input, and run main.py with optional flags that override config.py (sample rate, plate diameter, rep source, model ID, threshold, export height, trim seconds, fresh runs, and on-screen credit). Tone-mapping/HDR is supported (requires ffmpeg with libplacebo and, on macOS, a Vulkan driver like moltenvk) and models can be fed tone-mapped frames. Outputs go to a timestamped data/output folder containing an overlay video, timeline.png, reps.json, reads.json, summary.txt and run.json (which records per-model cost); gateway replies are cached in data/cache. Licensed Apache-2.0.

Read on github.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.