Add WorldArena and PhyGround result browser
Browse files1234567891011121314<!doctype html><html lang="zh"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>PixelWorld · WorldArena2 与 PhyGround</title><style>body{margin:0;background:#f5f7fb;color:#17263b;font:15px system-ui,sans-serif}main{max-width:1200px;margin:auto;padding:30px 22px}a{color:#2563eb;text-decoration:none}h1{font-size:30px}h2{font-size:21px}.muted{color:#64748b;font-size:13px;line-height:1.7}.panel{background:white;border:1px solid #dfe5ee;border-radius:14px;padding:22px;margin:20px 0}.panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}.big{font-size:27px;font-weight:650}progress{width:100%;height:12px;margin:12px 0}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:10px;text-align:left;border-bottom:1px solid #edf0f5}.scroll{overflow:auto}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:white;border:1px solid #dfe5ee;border-radius:12px;overflow:hidden}.card video{width:100%;aspect-ratio:16/9;display:block;background:#101827}.body{padding:15px}.empty{aspect-ratio:16/9;background:#eaf0f8;display:grid;place-items:center;color:#64748b}.filters{display:flex;flex-wrap:wrap;gap:14px;align-items:center}select,input,button{padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;background:white}button{cursor:pointer}.links{display:flex;gap:15px;margin-top:12px;font-size:13px}@media(max-width:800px){.panels{grid-template-columns:1fr}.grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.grid{grid-template-columns:1fr}main{padding:20px 14px}}</style></head><body><main><a href="index.html">← 主实验</a><h1>WorldArena2 与 PhyGround</h1><p class="muted">GPT-6.2-Sol · 官方任务范围、已验证视频与脱敏 Trace。每 60 秒读取 HF 最新数据。</p><p id="updated" class="muted">读取进度…</p><div class="panels"><section class="panel"><h2>WorldArena2 · Visual Track 1</h2><div id="world-count" class="big">—</div><progress id="world-progress" max="1000" value="0"></progress><p id="world-state" class="muted"></p><p id="world-eval" class="muted"></p></section><section class="panel"><h2>PhyGround · 官方评测</h2><div id="phy-count" class="big">—</div><progress id="phy-progress" max="250" value="0"></progress><p id="phy-score"></p><p id="phy-state" class="muted"></p><a id="phy-json">完整评分 JSON →</a></section></div><section class="panel"><h2>PhyGround · 物理规律分项</h2><div class="scroll"><table><thead><tr><th>规律</th><th>有效评分数</th><th>平均分</th></tr></thead><tbody id="laws"></tbody></table></div><p class="muted">物理 micro-average 对所有有效规律评分等权平均。不同规律对应的案例数量不同。</p><p id="reference" class="muted"></p></section><section class="panel filters"><label>Benchmark <select id="bench"><option value="phyground">PhyGround</option><option value="worldarena2">WorldArena2</option></select></label><label>样本 <input id="search" placeholder="样本名称或编号"></label><span id="coverage" class="muted"></span></section><div id="videos" class="grid"></div><p><button id="more" hidden>加载更多</button></p></main><script>const endpoint='https://huggingface.co/datasets/HuggingFriends/PixelWorld/resolve/main/metadata/supplementary_results.json';const $=x=>document.getElementById(x),nf=new Intl.NumberFormat('zh-CN');let data=null,limit=48;const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));const num=x=>Number.isFinite(x)?nf.format(x):'—';function paint(){if(!data)return;const b=data.benchmarks[$('bench').value],q=$('search').value.trim();const rows=(b.videos||[]).filter(v=>!q||v.case.includes(q)||v.run_case.includes(q));$('coverage').textContent=`已验证 ${num(b.exported)} 条;HF 视频 ${num(b.uploaded_videos)} 条;Trace ${num(b.uploaded_traces)} 条`;$('videos').innerHTML=rows.slice(0,limit).map(v=>`<article class="card">${v.video_url?`<video controls preload="none" src="${esc(v.video_url)}"></video>`:'<div class="empty">本地已验证 · 上传中</div>'}<div class="body"><b>${esc(v.case)}</b><p class="muted">${v.media.width}×${v.media.height} · ${v.media.fps} FPS · ${v.media.frames} 帧<br>Input ${num(v.tokens?.input_tokens)} · Output ${num(v.tokens?.output_tokens)}<br>${v.physical_avg!=null?'物理规律均分 '+Number(v.physical_avg).toFixed(3):''}</p><div class="links">${v.trace_url?`<a href="${esc(v.trace_url)}">完整脱敏 Trace ↓</a>`:'<span class="muted">Trace 待上传</span>'}${v.code_url?`<a href="${esc(v.code_url)}">生成代码 →</a>`:''}</div></div></article>`).join('');$('more').hidden=rows.length<=limit}async function refresh(){try{const r=await fetch(endpoint+'?refresh='+Date.now(),{cache:'no-store'});if(!r.ok)throw Error('HTTP '+r.status);data=await r.json();const w=data.benchmarks.worldarena2,p=data.benchmarks.phyground,s=p.score;$('updated').textContent='更新:'+new Date(data.updated_unix*1000).toLocaleString('zh-CN');$('world-count').textContent=`${num(w.generated)} / ${num(w.expected)}`;$('world-progress').value=w.generated;$('world-state').textContent=`运行 ${num(w.running)} · 待生成 ${num(w.pending)} · 已验证导出 ${num(w.exported)}`;$('world-eval').textContent=w.full_ewm_score==null?'官方完整 EWMScore 待评分;完整结果需要全部组件及对应的 GT。':'官方 EWMScore '+w.full_ewm_score;$('phy-count').textContent=`${num(p.generated)} / ${num(p.expected)}`;$('phy-progress').value=p.generated;$('phy-score').textContent=s?.complete?`物理 micro-average ${s.physical_micro_avg.toFixed(5)}`:'官方评分处理中';$('phy-state').textContent=s?.complete?`${s.physical_law_ratings} 条有效规律评分 · PhyJudge 9B · subq+human · no-thinking`:'等待完整验收';$('phy-json').href=p.score_url||'#';$('laws').innerHTML=Object.entries(s?.per_law||{}).map(([k,v])=>`<tr><th>${esc(k.replaceAll('_',' '))}</th><td>${v.count}</td><td>${v.mean.toFixed(3)}</td></tr>`).join('');const ref=s?.published_reference;$('reference').textContent=ref?`论文背景参考:${ref.model} 人类评分 ${ref.score}。本页使用发布版自动评估器,评分来源分别标注,不计算跨 judge 的差值。`:'';paint()}catch(e){$('updated').textContent='同步待恢复:'+e.message}}$('bench').onchange=()=>{limit=48;paint()};$('search').oninput=()=>{limit=48;paint()};$('more').onclick=()=>{limit+=48;paint()};refresh();setInterval(refresh,60000);</script></body></html>supplementary_results.htmlAdded+14