nx_coco_oks.nx
buildroot/runtime/nx_coco_oks.nx
about
nx_coco_oks.nx -- the REAL COCO industry metric OKS (Object Keypoint Similarity), replacing our self-validating
PCK-vs-our-own-teacher. OKS = Sum_i exp(-d_i^2 / (2 s^2 k_i^2)) * [v_i>0] / Sum_i [v_i>0], where d_i = pred-GT
distance, s^2 = the person's segment AREA (from the COCO annotation), k_i = 2*sigma_i, sigma_i the OFFICIAL COCO
per-keypoint constants. This is what AP@[.5:.95] thresholds -> the number the field grades pose by. Needs
GROUND-TRUTH annotations (area + GT keypoints) to be meaningful -- it is NOT computable against our own port.
license_tier: ORIGINAL
dependencies 5 imports · 3 importers
imports: nx_syscalls.nxnx_f32.nxnx_f32_cvt.nxnx_f32_div.nxnx_f32_exp.nx
imported by: nx_coco_eval.nxnx_coco_oks_gate.nxnx_pose_score_one.nx
structs
| none |
consts
| none |
functions
| 14 | func oks_sigma1000(i: i64) -> i64 |
| 23 | func coco_oks(px: *i64, py: *i64, gx: *i64, gy: *i64, vis: *i64, n: i64, area: i64) -> i64 called by 3: ce_person_oksmainmain calls 8: nx_i32_to_f32nx_f32_divoks_sigma1000nx_f32_mulnx_f32_expnx_f32_neg+2 |