strideworld-release commited on
Commit
3c54771
·
verified ·
1 Parent(s): fbdf2a4

Keep test overview qualitative

Browse files
Files changed (1) hide show
  1. index.html +6 -43
index.html CHANGED
@@ -10,7 +10,7 @@
10
  <meta name="description" content="StrideWorld: camera-controlled video world models measured for rigidity, pace and composition.">
11
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2317202c'/%3E%3Cpath d='M8 24V9h9' stroke='%23d9a441' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='22' cy='9' r='3' fill='%2345b385'/%3E%3C/svg%3E">
12
  <style>
13
- /* Layout: a survey sheet. Hero (thesis + one swap-pair route trace), three finding strips that plot every model,
14
  then the instrument table with in-cell gauges. Colours: one hue per test (Rigidity blue, Pace green, Composition amber). */
15
  :root{
16
  --paper:#f5f7fa; --sheet:#ffffff; --ink:#16202c; --ink-2:#465264; --muted:#7f8a9b; --rule:#e2e7ee; --rule-2:#eef1f5;
@@ -61,11 +61,6 @@ svg text{font-family:var(--mono)}
61
  .fhead i{width:9px;height:9px;border-radius:2px;display:inline-block}
62
  .finding h3{font-family:var(--display);font-weight:650;font-size:19px;line-height:1.2;letter-spacing:-.01em;margin:0;text-wrap:balance}
63
  .finding p{margin:0;font-size:13px;color:var(--ink-2)}
64
- .finding .now{font-family:var(--mono);font-size:12px;color:var(--ink)}
65
- .strip{display:block;width:100%;height:auto;overflow:visible;margin-top:2px}
66
- .strip .dot{cursor:pointer;transition:r .12s}
67
- .strip .dot.hl{stroke:var(--ink);stroke-width:2}
68
- .strip .lbl{font-size:10px;fill:var(--ink);pointer-events:none}
69
  .f1 .fhead{color:var(--f1)} .f1 .fhead i{background:var(--f1)}
70
  .f2 .fhead{color:var(--f2)} .f2 .fhead i{background:var(--f2)}
71
  .f3 .fhead{color:var(--f3)} .f3 .fhead i{background:var(--f3)}
@@ -511,51 +506,19 @@ function createExamplePlayback(videos, options) {
511
  var calm = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
512
  if(!calm){ try{ $("camA").setAttribute("opacity","1"); $("camB").setAttribute("opacity","1"); $("mA").beginElement(); $("mB").beginElement(); }catch(e){} }
513
 
514
- /* finding strips */
515
  var models = DATA.models;
516
- function strip(cfg){
517
- var W=320,H=58,L=8,R=8,y=30;
518
- var xs=function(v){return L+(cfg.scale(v))*(W-L-R)};
519
- var s='<svg class="strip" viewBox="0 0 '+W+' '+H+'" aria-hidden="true">';
520
- if(cfg.band) s+='<rect x="'+xs(cfg.band[0])+'" y="'+(y-10)+'" width="'+(xs(cfg.band[1])-xs(cfg.band[0]))+'" height="20" rx="4" fill="var(--f2-tint)"/>';
521
- s+='<line x1="'+L+'" x2="'+(W-R)+'" y1="'+y+'" y2="'+y+'" stroke="var(--rule)" stroke-width="1"/>';
522
- (cfg.ticks||[]).forEach(function(t){ s+='<line x1="'+xs(t[0])+'" x2="'+xs(t[0])+'" y1="'+(y+6)+'" y2="'+(y+10)+'" stroke="var(--muted)"/><text class="lbl" x="'+xs(t[0])+'" y="'+(y+22)+'" text-anchor="middle" style="fill:var(--muted)">'+t[1]+'</text>'; });
523
- if(cfg.ref) s+='<line x1="'+xs(cfg.ref[0])+'" x2="'+xs(cfg.ref[0])+'" y1="'+(y-14)+'" y2="'+(y+8)+'" stroke="var(--ink-2)" stroke-dasharray="3 2"/><text class="lbl" x="'+(xs(cfg.ref[0])+4)+'" y="'+(y-16)+'" style="fill:var(--ink-2)">'+cfg.ref[1]+'</text>';
524
- models.forEach(function(m){
525
- var v=m.values[cfg.key]; if(v==null) return;
526
- var grey=isNoise(m,cfg.key);
527
- var c=grey?"var(--muted)":cfg.color(m,v);
528
- s+='<circle class="dot" data-key="'+esc(m.key)+'" cx="'+xs(v).toFixed(1)+'" cy="'+y+'" r="5" fill="'+c+'" fill-opacity="'+(grey?.45:.78)+'" stroke="var(--sheet)" stroke-width="1.2"><title>'+esc(m.name)+': '+fmt(v,cfg.key)+'</title></circle>';
529
- });
530
- return s+'</svg>';
531
- }
532
- var ranked=function(key){return models.filter(function(m){return m.values[key]!=null && !isNoise(m,key)})};
533
- var off=ranked("offset"), vr=models.map(function(m){return m.vs_rigid}).filter(function(v){return v!=null}).sort(function(a,b){return a-b});
534
- var bestOff=off.slice().sort(function(a,b){return a.values.offset-b.values.offset})[0];
535
- var rat=ranked("ratio"), outside=rat.filter(function(m){return m.pace_flag==="changes_pace"});
536
- var eq1=rat.filter(function(m){return m.pace_flag==="outside_eq1_only"});
537
- var cmp=ranked("comp").sort(function(a,b){return b.values.comp-a.values.comp});
538
- var nearMed=(function(){var a=ranked("near").map(function(m){return m.values.near}).sort(function(a,b){return a-b});return a.length?a[Math.floor(a.length/2)]:null})();
539
  var logx=function(lo,hi){return function(v){var t=(Math.log(v)-Math.log(lo))/(Math.log(hi)-Math.log(lo));return Math.max(0,Math.min(1,t))}};
540
  var F=[
541
  {cls:"f1", tag:"Rigidity", q:"Does the scene stay rigid as the camera moves?",
542
- m:"Offset of held-out anchors from their rigid positions, at 2–8° of image motion.",
543
- now: (vr.length?"every model exceeds a rigid rendering of its camera path, by "+vr[0].toFixed(1)+"× to "+vr[vr.length-1].toFixed(1)+"× · ":"")+"lowest offset "+fmt(bestOff.values.offset,"offset")+"° ("+esc(bestOff.name)+")",
544
- svg: strip({key:"offset", scale:function(v){return Math.min(1,v/0.6)}, color:function(){return "var(--f1)"},
545
- ticks:[[0,"0°"],[0.3,"0.3°"],[0.6,"0.6°"]]})},
546
  {cls:"f2", tag:"Pace", q:"Does a held action keep its speed?",
547
- m:"Pace ratio: observed over predicted motion after 16 steps; 1 is steady.",
548
- now: (outside.length? outside.map(function(m){return esc(m.name)+" "+fmt(m.values.ratio,"ratio")+"×"}).join(", ")+" changes pace":"no model changes pace")+(eq1.length?" · "+eq1.length+" more with the weighted stride only":""),
549
- svg: strip({key:"ratio", scale:logx(0.5,4.5), band:[0.8,1.25],
550
- color:function(m){return m.pace_flag==="changes_pace"?"var(--alert)":m.pace_flag==="outside_eq1_only"?"var(--f3)":"var(--f2)"},
551
- ticks:[[0.5,"0.5×"],[1,"1×"],[2,"2×"],[4,"4×"]]})},
552
  {cls:"f3", tag:"Composition", q:"Do actions compose into routes?",
553
- m:"Composition score of routes and swap pairs; incomplete routes score 0.",
554
- now: "best "+fmt(cmp[0].values.comp,"comp")+" ("+esc(cmp[0].name)+") · median "+(nearMed==null?"–":nearMed.toFixed(0))+"% of routes end within one stride",
555
- svg: strip({key:"comp", scale:function(v){return v/100}, color:function(){return "var(--f3)"}, ticks:[[0,"0"],[50,"50"],[100,"100"]]})}
556
  ];
557
  $("findings").innerHTML=F.map(function(f){
558
- return '<article class="finding '+f.cls+'"><div class="fhead"><i></i>'+f.tag+'</div><h3>'+f.q+'</h3><p>'+f.m+'</p>'+f.svg+'<div class="now">'+f.now+'</div></article>';
559
  }).join("");
560
 
561
  /* chips */
 
10
  <meta name="description" content="StrideWorld: camera-controlled video world models measured for rigidity, pace and composition.">
11
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2317202c'/%3E%3Cpath d='M8 24V9h9' stroke='%23d9a441' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='22' cy='9' r='3' fill='%2345b385'/%3E%3C/svg%3E">
12
  <style>
13
+ /* Layout: a survey sheet. Hero (thesis + one swap-pair route trace), three qualitative test descriptions,
14
  then the instrument table with in-cell gauges. Colours: one hue per test (Rigidity blue, Pace green, Composition amber). */
15
  :root{
16
  --paper:#f5f7fa; --sheet:#ffffff; --ink:#16202c; --ink-2:#465264; --muted:#7f8a9b; --rule:#e2e7ee; --rule-2:#eef1f5;
 
61
  .fhead i{width:9px;height:9px;border-radius:2px;display:inline-block}
62
  .finding h3{font-family:var(--display);font-weight:650;font-size:19px;line-height:1.2;letter-spacing:-.01em;margin:0;text-wrap:balance}
63
  .finding p{margin:0;font-size:13px;color:var(--ink-2)}
 
 
 
 
 
64
  .f1 .fhead{color:var(--f1)} .f1 .fhead i{background:var(--f1)}
65
  .f2 .fhead{color:var(--f2)} .f2 .fhead i{background:var(--f2)}
66
  .f3 .fhead{color:var(--f3)} .f3 .fhead i{background:var(--f3)}
 
506
  var calm = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
507
  if(!calm){ try{ $("camA").setAttribute("opacity","1"); $("camB").setAttribute("opacity","1"); $("mA").beginElement(); $("mB").beginElement(); }catch(e){} }
508
 
509
+ /* Qualitative test descriptions; measurements appear in the leaderboard. */
510
  var models = DATA.models;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  var logx=function(lo,hi){return function(v){var t=(Math.log(v)-Math.log(lo))/(Math.log(hi)-Math.log(lo));return Math.max(0,Math.min(1,t))}};
512
  var F=[
513
  {cls:"f1", tag:"Rigidity", q:"Does the scene stay rigid as the camera moves?",
514
+ m:"Compare held-out anchors with the positions predicted by a rigid scene."},
 
 
 
515
  {cls:"f2", tag:"Pace", q:"Does a held action keep its speed?",
516
+ m:"Compare the camera's motion with the pace established by its first steps."},
 
 
 
 
517
  {cls:"f3", tag:"Composition", q:"Do actions compose into routes?",
518
+ m:"Compare generated routes with the paths predicted from individual actions."}
 
 
519
  ];
520
  $("findings").innerHTML=F.map(function(f){
521
+ return '<article class="finding '+f.cls+'"><div class="fhead"><i></i>'+f.tag+'</div><h3>'+f.q+'</h3><p>'+f.m+'</p></article>';
522
  }).join("");
523
 
524
  /* chips */