Spaces:
Running on T4
Running on T4
|
Download docs/MOTION_REQUIREMENTS_AUDIT.md from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 5.05 kB
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/docs/MOTION_REQUIREMENTS_AUDIT.md
- Command line
-
hf download hf://spaces/modventures/baseball-engine/docs/MOTION_REQUIREMENTS_AUDIT.md
-
curl -L -o MOTION_REQUIREMENTS_AUDIT.md https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/docs/MOTION_REQUIREMENTS_AUDIT.md
5.05 kB
| # Motion-player requirements audit | |
| Against `Motion_Player_Backend_Requirements.md` v1.0, 15 October 2026. | |
| | Requirement | Implementation and verification | | |
| | --- | --- | | |
| | Shared contract and model selector | `MotionInput.model`: `sam3d` (default), `gvhmr`. Separate runtime checks, native adapters and anatomy/definition revisions. No fallback. Model-switch and compatibility tests. | | |
| | Source upload or backend asset | Authenticated multipart upload or `source_asset_id`; no arbitrary URL/path input. Source bytes retained and checksummed. | | |
| | Manifest, lineage and versions | Immutable analysis/job/revision/person IDs; model/source/asset hashes, adapter, correction inputs and definition revision. | | |
| | Original PTS, VFR, retiming | Every source frame retained. Video and capture clocks exported separately. GVHMR explicitly maps a 30-Hz model grid back to original times; rotation interpolation uses SO(3). | | |
| | Athlete selection and identity | Required box when ambiguous; bounded short-loss recovery requires spatial/motion/size/appearance agreement. Lost frames remain gaps; ambiguous crossings cannot be recovered on clothing alone. | | |
| | Correct and check motion | One continuous native MHR/SMPL-X parameter fit per valid segment; bounded-memory exact gradient accumulation, separate RTMW evidence, two-neighbor cycle-checked LK, shared shape, initializer/temporal priors, quality-window acceptance/rollback, image contradiction gates, hand-peak protection and sensitivity fits. Computational batches create no motion/derivative seams. Accepted rig points bypass independent smoothing. Real gaps/model boundaries and raw/fitted switches stay explicit. Engineering diagnostics do not establish depth accuracy. | | |
| | Anatomy and canonical names | Both export all 20 names. Native joint definitions/indices verified. SMPL-X surface-derived landmarks explicitly marked; no claim that its hips/shoulders equal MHR70 landmarks. | | |
| | Coordinates, scale and root | Fixed camera/declared reference axes; hip-relative positions, root separate, added once for projection. Model scale documented; unknown scale disables absolute measurements. Native global predictions are not promoted to calibrated ground motion. | | |
| | Motion and quality artifacts | Finite positions or null, status/confidence/reasons for every joint/frame, explicit gaps/segments, stable skeleton/bones. No invented cross-model confidence. | | |
| | Four measurement groups and graphs | Existing companion formulas from corrected exported points. Separate SMPL-X definition revision documents the anatomical change. Public-artifact reproduction verified for both adapters. | | |
| | Events and reviewed corrections | Source frames/timestamps, individual manual/estimated provenance and unavailable events. A reviewed surrounding window does not falsely make an automatic baseline/forward boundary manual. New revision retains parent. | | |
| | Projections and annotation | Same corrected sequence and intrinsics produce JSON projections and all four videos. Source playback timeline preserved; no bottom panel. | | |
| | Ready/failed semantics | No usable motion fails. Missing selected model returns actionable 503 before job allocation; other model and old APIs remain available. Publish after referenced artifacts are ready. | | |
| | Auth, retention, cancellation | Existing queue/auth, safe artifact allowlist, checksums/ranges/expiry, cancellation and staging cleanup retained. Durable replay requires persistent storage. | | |
| | Optional ground/distortion inputs | Declared axes/intrinsics preserved. Missing camera-up is estimated with pinned offline GeoCalib and conservative multi-frame image/uncertainty checks, or left unknown. Two selected upright-image floor points can derive pitcher direction using declared calibrated intrinsics and the supplied/accepted estimated up reference; ray/horizon, distortion and perturbation checks reject unreliable geometry. Manual vectors take priority. Both adapters use the same camera axes and effective calculation provenance. Optional five-coefficient Brown–Conrady projection shared by fitting, motion projection and annotation. Background motion can contradict a static-camera declaration. No calibrated ground trajectory is inferred. Missing/estimated calibration remains explicit. | | |
| | Optional animated mesh | Deferred second phase, as the document allows. Artifact explicitly unavailable; skeleton remains measurement source. | | |
| | Reference accuracy acceptance criterion 9 | **Pending independent reference data.** Fixture/round-trip tests establish arithmetic and alignment, not hidden-depth or arbitrary real-video accuracy. | | |
| | Real GVHMR GPU validation | Completed on T4 with the operator's licensed SMPL-X neutral file: 70 source frames, accepted fitted motion, four annotated videos and public-artifact measurement reproduction. This verifies execution and consistency, not independent depth accuracy. | | |
| Existing `/v1/analyses`, `/product`, and `/v1/sam-batting/analyses` contracts remain | |
| separate. The selector is added only to `/v1/motion-analyses`. | |