Models About & Code

Standalone App & PWA

Install Sports Form Coach from its dedicated camera=(self) origin as an offline desktop or mobile PWA with OS image/* and video/* file_handlers support.

Open coach.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so coach.webai.show caches its own RTMO-s (19.9 MB), MoveNet MultiPose (19.0 MB), and RAFT Optical Flow (64.0 MB) weights. Staying on webai.show shares RAFT weights with the optical-flow model page.

Frame 1 / 6 · 640×400 Pending pose analysis

Interactive multi-athlete sports analysis canvas showing faceless mannequin drills, color-coded skeletons, joint protractors, and RAFT optical flow arrows.

Click any athlete on canvas to focus their protractor. Keys: ←/→ scrub · Space play · 1–6 athlete

Drill Timeline & Frame Scrubber

1 / 6

Loading Relay Baton Pass drill… Zero uploads, zero identifiable people in starter presets.

CPU WASM Universal (ONNX Runtime Web 1.21.0) · Zero WebGPU required · 0 bytes uploaded

Biomechanical Joint Protractor

Pending pose inference
Knee Flexion — L — · R —
Hip Hinge — L — · R —
Elbow Extension — L — · R —
Torso Lean — Forward lean from vertical
Left-vs-Right Form Symmetry Diff — Awaiting Pose

No canned biomechanics — run live pose inference to inspect real joint angles.

30%
1.4×

Stage 2 · RAFT Velocity Vectors

64.0 MB · Built RAFT Worker

Reuses ../../models/raft-optical-flow/worker.js (opencv/optical_flow_estimation_raft) to measure dense 480×360 pixel velocity between consecutive clip frames and project speed vectors onto each athlete.

Coach Reports & Exports

100% On-Device

Local AI Engine

Three browser-runnable ONNX models running strictly off the main thread in CPU WebAssembly via ONNX Runtime Web 1.21.0 — zero WebGPU required and zero bytes uploaded.

Stage 1A · Xenova/RTMO-s Precision Pose (19.9 MB fp16 · Apache-2.0)

Xenova/RTMO-s · onnx/model_fp16.onnx · 640×640 multi-person COCO-17 pose · ONNX Runtime Web 1.21.0

Stage 1B · MoveNet MultiPose Lightning (19.0 MB fp32 · Apache-2.0)

Xenova/movenet-multipose-lightning · onnx/model.onnx · ~35 ms real-time 6-athlete pose · ONNX Runtime Web 1.21.0

Stage 2 · RAFT Optical Flow Velocity (64.0 MB fp32 · BSD-3-Clause)

opencv/optical_flow_estimation_raft · reuses ../../models/raft-optical-flow/worker.js · 480×360 dense flow field

Stage 1A · RTMO-s Not downloaded (19.9 MB)
Stage 1B · MoveNet Optional · 30 fps (19.0 MB)
Stage 2 · RAFT Flow Optional · Velocity (64.0 MB)
Numeric Integrity 0 NaN · 640×400

How Sports Form Coach Works

Unlike single-person hand/face mocap demos, Sports Form Coach tracks multiple athletes simultaneously, computes bilateral biomechanical joint angles, and fuses dense RAFT optical flow velocity vectors across consecutive frames — all locally in dedicated Web Workers.

1. RTMO-s & MoveNet MultiPose (Raw ORT 1.21.0 WASM)

Stage 0 live Chrome probing showed Transformers.js 3.7.5 lacks native rtmo and movenet classes and its quantized int8 graphs fail on missing WASM ConvInteger(10) ops (while MoveNet fp16 collapses scores to zero on WASM). Running Xenova/RTMO-s (fp16, 19.9 MB, matching fp32 to 3 decimals) and Xenova/movenet-multipose-lightning (fp32, 19.0 MB, ~35 ms/frame) directly in ONNX Runtime Web 1.21.0 delivers zero-NaN multi-athlete COCO-17 skeletons on every device.

2. Joint-Angle Protractor & Symmetry Audit

coach-core.mjs computes 3-point vector interior angles for Left/Right Knee Flexion (hip→knee→ankle), Hip Hinge (shoulder→hip→knee), Elbow Extension (shoulder→elbow→wrist), and Torso Lean from vertical, tracks stable Athlete #1/#2/#3 IDs across frames via nearest-centroid matching, and flags Left-vs-Right bilateral drift above 8° and 16°.

3. Reused RAFT Optical Flow & Safe Reports

Stage 2 instantiates the site's built ../../models/raft-optical-flow/worker.js to recover a full [1, 2, 360, 480] displacement field between adjacent frames, maps mean and peak speed (px/frame) onto each athlete's body box, and exports annotated PNGs plus OWASP formula-neutralized CSV and JSON coaching reports.

Show the code — runPoseInference() dual RTMO-s fp16 & MoveNet MultiPose fp32 ORT worker
Show the code — computeAthleteBiomechanics() knee, hip, elbow & L/R symmetry protractor
Show the code — sortAndAssignAthletes() deterministic multi-athlete ID tracking across frames
Show the code — sampleAthleteVelocityFromFlow() per-athlete RAFT optical flow speed sampler
Show the code — buildBiomechanicsCsv() OWASP formula-neutralized coaching CSV exporter
Show the code — drawCoachOverlays() multi-athlete skeletons, protractor arcs & flow arrows

Export Coaching Report

Annotated frame & multi-athlete biomechanics

Annotated multi-athlete stage frame with skeletons, joint-angle protractor, and optical flow velocity vectors
Athlete Conf Knee ° Hip ° Elbow ° L/R Symmetry RAFT Speed