code wiki / (root) / nx_coco_oks.nx

nx_coco_oks.nx

buildroot/runtime/nx_coco_oks.nx

2611 B53 linesdepth 5pulls 7 transitivereach 3 importersview sourcekind librarytopic coco
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_f32.nx nx_f32_cvt.nx nx_f32_div.nx nx_f32_exp.nx nx_coco_oks.nx nx_coco_eval.nx nx_coco_oks_gate.nx nx_pose_score_one.nx

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

14func oks_sigma1000(i: i64) -> i64
called by 1: coco_oks calls 1: sys_mmap
23func coco_oks(px: *i64, py: *i64, gx: *i64, gy: *i64, vis: *i64, n: i64, area: i64) -> i64