code wiki / _hdl_build / nx_poseelm_gate.nx
nx_poseelm_gate.nx
buildroot/runtime/_hdl_build/nx_poseelm_gate.nx
about
nx_poseelm_gate.nx -- R2 v1: does a NONLINEAR learner (ELM = fixed random ReLU projection + trained linear
output) crack pose-from-silhouette where the linear perceptron failed? Render arm poses -> occupancy ->
project -> perceptron on the projected features -> HELD-OUT generalization (9 hand regions). vs untrained at
chance. If trained >> untrained on held-out, R2 v1 works (coarse, our-render domain). expect_exit:0 ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_figure_render.nxnx_pose_elm.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const PW: i64 = 64 |
| 15 | const PH: i64 = 48 |
| 16 | const GW: i64 = 8 |
| 17 | const GH: i64 = 6 |
| 18 | const GC: i64 = 16 // contour columns |
| 19 | const NCELL: i64 = 32 // per column: top-height + thickness (the arm shows in the UPPER CONTOUR) |
| 20 | const NH: i64 = 64 // random hidden features |
| 21 | const NR: i64 = 3 // hand HEIGHT bins (low/mid/high) -- well-posed + balanced; the contour top-height encodes it |
| 22 | const NTR: i64 = 30 |
| 23 | const NHO: i64 = 9 |
| 24 | const NALL: i64 = 39 |
functions
| 9 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 10 | func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 } |
| 11 | func pdg(d: i64) -> i64 { return d * 12868 / 180 } called by 1: pe_sample |
| 12 | func clamp3(v: i64) -> i64 { if v < 0 { return 0 } if v > 2 { return 2 } return v } called by 1: main |
| 29 | func pe_contour(zb: *i64, feat: *i64) -> i64 called by 1: pe_sample |
| 47 | func pe_sample(sk: i64, fb: *i64, zb: *i64, pitch: i64, elbow: i64, occ: *i64, wxy: *i64) -> i64 |
| 56 | func main() -> i64 |