Download physfix.html from HuggingFriends/PixelWorld-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 16 kB
-
https://huggingface.co/spaces/HuggingFriends/PixelWorld-dashboard/resolve/d5fa6197eb44fdfd2f2d534dd31bb454f9c26871/physfix.html
- Command line
-
hf download hf://spaces/HuggingFriends/PixelWorld-dashboard@d5fa6197eb44fdfd2f2d534dd31bb454f9c26871/physfix.html
-
curl -L -o physfix.html https://huggingface.co/spaces/HuggingFriends/PixelWorld-dashboard/resolve/d5fa6197eb44fdfd2f2d534dd31bb454f9c26871/physfix.html
16 kB
| <html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <title>PhysFix v0.6 · Live</title><meta property="og:title" content="PhysFix v0.6 Live"><style> | |
| *{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#182231;font:15px/1.55 system-ui,-apple-system,sans-serif}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}header{background:#fff;border-bottom:1px solid #dfe5ee;position:sticky;top:0;z-index:5}nav,main{max-width:1320px;margin:auto;padding:18px 26px}nav{display:flex;justify-content:space-between;align-items:center;gap:20px}nav strong{font-size:20px}nav span{display:flex;gap:20px;font-size:13px}main{padding-top:32px;padding-bottom:70px}h1{font-size:36px;line-height:1.18;letter-spacing:-1px;margin:7px 0 12px}h2{font-size:22px;margin:30px 0 14px}.eyebrow{color:#55708f;font-size:11px;font-weight:700;letter-spacing:1.5px}.muted{color:#64748b}.small{font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.card,.panel{background:#fff;border:1px solid #dfe5ee;border-radius:13px;padding:20px}.num{font-size:27px;font-weight:750}.badge{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:650;background:#eaf0f7;color:#526479}.running{background:#e4f2ed;color:#19724e}.queued,.waiting_input{background:#fff1d6;color:#97651a}.failed,.complete_invalid{background:#fde9e7;color:#a13230}.complete_valid{background:#e5edff;color:#255bb1}.table{overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:13px}table{width:100%;border-collapse:collapse;min-width:820px}th,td{text-align:left;padding:15px;border-bottom:1px solid #e9edf3;vertical-align:top}th{background:#f9fbfd;font-size:12px;color:#65758d}.progress{height:5px;border-radius:8px;background:#e8edf4;margin:8px 0;overflow:hidden}.progress i{display:block;height:100%;background:#3978dd}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:24px 0 15px}.controls{display:flex;flex-wrap:wrap;gap:10px}input,select{padding:8px 10px;border:1px solid #d7e0eb;background:#fff;border-radius:7px}.casegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.case{border:1px solid #dfe5ee;border-radius:10px;background:#fff;padding:14px;text-align:left;color:inherit;cursor:pointer}.case:hover{border-color:#89a9d5}.case.selected{outline:2px solid #3978dd}.case b{display:block}.case .meta{display:flex;justify-content:space-between;gap:8px;margin-top:9px}.detail{margin-top:22px}.media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.media video{width:100%;aspect-ratio:16/9;background:#101722;border-radius:9px}.modelstates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.modelstate{background:#f7f9fc;border:1px solid #e1e7ef;border-radius:9px;padding:13px}details{border-top:1px solid #e2e7ee;padding:13px 0}summary{cursor:pointer;font-weight:650}pre{white-space:pre-wrap;word-break:break-word;background:#f5f7fb;padding:14px;border-radius:8px;font:12px/1.6 ui-monospace,monospace}.notice{border-left:3px solid #e5b14b;background:#fff7e6;padding:12px 16px;margin:18px 0}.sync{font-size:12px;color:#8290a3;margin-top:24px}@media(max-width:900px){.cards,.casegrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){nav,main{padding:16px}nav span{gap:10px}.cards,.casegrid,.media,.modelstates{grid-template-columns:1fr}.toolbar{display:block}.controls{margin:8px 0}h1{font-size:28px}} | |
| </style></head><body><header><nav><strong><a href="physfix.html">PhysFix</a></strong><span><a href="#overview">总览</a><a href="#cases">样本</a><a href="#cost-time">Tokens 与时间</a><a href="https://github.com/SiYuanJasperMa/PhysFixBench">GitHub</a><a href="https://huggingface.co/datasets/HuggingFriends/PhysFixBench">HF 数据集</a><a href="index.html">PixelWorld</a></span></nav></header><main> | |
| <p class="eyebrow">PHYSICS VIDEO REPAIR BENCHMARK</p><h1>PhysFix v0.6 · Live</h1><p><label>运行范围:<select id="scope"><option value="formal">正式集 · 42 条</option><option value="candidate">候选探索 · 126 条</option></select></label></p><p id="subtitle" class="muted">正在读取公开快照…</p> | |
| <div id="cards" class="cards"></div><section id="overview"><h2>全量运行</h2><div class="table"><table><thead><tr><th>模型</th><th>Real · 35</th><th>S-rule · 6</th><th>S-model · 1</th><th>总状态</th></tr></thead><tbody id="matrix"></tbody></table></div></section> | |
| <section id="cost-time"><h2>Tokens 与时间</h2><div class="table"><table><thead><tr><th>模型</th><th>Input tokens</th><th>Cached input</th><th>Output tokens</th><th>Reasoning tokens</th><th>运行耗时</th><th>记录覆盖</th></tr></thead><tbody id="cost-rows"></tbody></table></div><p class="small muted">仅累计 provider 实际返回的用量;缺失不按 0 计。Cached 已包含在 Input 中;Reasoning 单列,不额外加到 Output。耗时包含已结束的成功和失败运行,部分记录是已知用量下界。</p></section><section id="cases"><div class="toolbar"><h2>42 条样本</h2><div class="controls"><input id="search" type="search" placeholder="搜索 PF / SR / SM"><select id="source"><option value="">全部来源</option><option value="real">Real</option><option value="synthetic_rule">S-rule</option><option value="synthetic_model">S-model</option></select><select id="status"><option value="">全部状态</option><option value="running">运行中</option><option value="queued">待运行</option><option value="waiting_input">等待输入</option><option value="complete_valid">格式通过</option><option value="complete_invalid">格式无效</option><option value="failed">失败</option></select></div></div><div id="casegrid" class="casegrid"></div><article id="detail" class="panel detail" hidden></article></section><p id="sync" class="sync"></p></main> | |
| <script> | |
| const names={'gpt61-sol':'GPT-6.1-Sol','gpt62-sol':'GPT-6.2-Sol'}, labels={real:'Real',synthetic_rule:'S-rule',synthetic_model:'S-model'}, statusLabels={waiting_input:'等待输入',queued:'待运行',running:'运行中',complete_valid:'格式通过',complete_invalid:'格式无效',failed:'失败',unknown:'未知'};let data,selected; | |
| const caseSection=document.getElementById('cases');caseSection.insertBefore(document.getElementById('detail'),caseSection.firstChild); | |
| let activeScope=new URLSearchParams(location.search).get('scope')==='candidate'?'candidate':'formal'; | |
| document.getElementById('scope').value=activeScope; | |
| document.getElementById('scope').onchange=()=>{activeScope=document.getElementById('scope').value;data=null;selected=null;document.getElementById('detail').hidden=true;document.getElementById('search').value='';document.getElementById('source').value='';document.getElementById('status').value='';const u=new URL(location.href);u.searchParams.set('scope',activeScope);u.searchParams.delete('case');history.replaceState(null,'',u);load();}; | |
| function number(v){return typeof v==='number'?v.toLocaleString('en-US'):'缺失';} | |
| function renderScopeAndCost(){ | |
| document.querySelector('main h1').textContent=activeScope==='candidate'?'PhysFix · 候选探索 126':'PhysFix v0.6 · 正式集 42'; | |
| document.querySelector('#cases .toolbar h2').textContent=data.records+' 条样本'; | |
| document.querySelector('#overview thead tr').innerHTML='<th>模型</th>'+Object.entries(labels).map(([k,v])=>'<th>'+v+' · '+data.source_counts[k]+'</th>').join('')+'<th>总状态</th>'; | |
| document.getElementById('cost-rows').innerHTML=Object.keys(names).map(m=>{const c=(data.cost_time||{})[m]||{};return `<tr><th>${names[m]}</th><td>${number(c.input_tokens)}</td><td>${number(c.cached_input_tokens)}</td><td>${number(c.output_tokens)}</td><td>${number(c.reasoning_output_tokens)}</td><td>已结束累计 ${age(c.finished_runtime_seconds)}<br><small>平均 ${c.mean_finished_runtime_seconds==null?'—':age(c.mean_finished_runtime_seconds)} · ${c.timed_finished_runs||0} 条</small></td><td>有用量 ${c.usage_reported_runs||0}<br>缺失 ${c.usage_missing_runs||0}<br>部分 ${c.usage_partial_runs||0}</td></tr>`;}).join(''); | |
| } | |
| const esc=v=>String(v??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); | |
| function badge(s){return `<span class="badge ${esc(s)}">${esc(statusLabels[s]||s)}</span>`}function counts(c,m){const totals=Object.entries(c||{}).map(([k,v])=>`${statusLabels[k]||k} ${v}`).join(' · ');const f=(data.failure_breakdown||{})[m];const history=data.cases.reduce((n,c)=>n+(c.models[m].previous_failed_attempts||0),0);return totals+(f?`<br><small>接口/环境失败 ${f.infrastructure} · 产物失败 ${f.artifact} · 已补跑的历史失败 ${history}</small>`:'')} | |
| function group(model,kind){const rows=data.cases.filter(x=>x.source_kind===kind),done=rows.filter(x=>x.models[model].status.startsWith('complete')).length,run=rows.filter(x=>x.models[model].status==='running').length,fail=rows.filter(x=>x.models[model].status==='failed').length;if(!rows.length)return '—';return `<b>${done} / ${rows.length}</b><div class="progress"><i style="width:${100*done/rows.length}%"></i></div><span class="small muted">${run} 运行 · ${fail} 失败</span>`} | |
| function render(){document.getElementById('subtitle').innerHTML=`Vision-Agent · PE · 1280×720 / 24 FPS · 快照 <time>${esc(data.updated_utc)}</time>`;const active=Object.values(data.models).reduce((n,m)=>n+(m.counts.running||0),0),failed=Object.values(data.models).reduce((n,m)=>n+(m.counts.failed||0),0),complete=Object.values(data.models).reduce((n,m)=>n+(m.counts.complete_valid||0),0);document.getElementById('cards').innerHTML=`<div class="card"><div class="num">${data.records}</div><span class="muted">冻结样本</span></div><div class="card"><div class="num">${data.prepared} / ${data.records}</div><span class="muted">输入已准备</span></div><div class="card"><div class="num">${active}</div><span class="muted">正在运行</span></div><div class="card"><div class="num">${complete} · ${failed}</div><span class="muted">格式通过 · 失败</span></div>`;document.getElementById('matrix').innerHTML=Object.keys(names).map(m=>`<tr><th>${names[m]}</th><td>${group(m,'real')}</td><td>${group(m,'synthetic_rule')}</td><td>${group(m,'synthetic_model')}</td><td>${counts(data.models[m].counts,m)}</td></tr>`).join('');renderScopeAndCost();renderCases();document.getElementById('sync').textContent=`页面每 60 秒读取最新公开快照 · prepare ${data.services.prepare_alive?'在线':'停止'} · dispatcher ${data.services.dispatcher_alive?'在线':'停止'}`} | |
| function age(s){const n=Math.max(0,Math.round(s||0));return n<60?`${n}秒`:n<3600?`${Math.floor(n/60)}分${n%60}秒`:`${Math.floor(n/3600)}小时${Math.floor(n%3600/60)}分`} | |
| function renderCases(){const q=document.getElementById('search').value.toLowerCase(),src=document.getElementById('source').value,st=document.getElementById('status').value;const rows=data.cases.filter(c=>(!q||(c.benchmark_id+' '+c.record_id).toLowerCase().includes(q))&&(!src||c.source_kind===src)&&(!st||Object.values(c.models).some(m=>m.status===st)));document.getElementById('casegrid').innerHTML=rows.map(c=>`<button class="case ${selected===c.case_id?'selected':''}" data-id="${esc(c.case_id)}"><b>${esc(c.benchmark_id)}</b><span class="small muted">${esc(labels[c.source_kind])} · ${esc(c.generator||c.source||'')}</span><div class="meta"><span>6.1 ${badge(c.models['gpt61-sol'].status)}${c.models['gpt61-sol'].elapsed_seconds?`<small> ${age(c.models['gpt61-sol'].elapsed_seconds)}</small>`:''}</span><span>6.2 ${badge(c.models['gpt62-sol'].status)}${c.models['gpt62-sol'].elapsed_seconds?`<small> ${age(c.models['gpt62-sol'].elapsed_seconds)}</small>`:''}</span></div></button>`).join('');document.querySelectorAll('.case').forEach(x=>x.onclick=()=>show(x.dataset.id))} | |
| function show(id,scroll=true){ | |
| selected=id;const c=data.cases.find(x=>x.case_id===id);if(!c)return;renderCases(); | |
| const states=Object.entries(c.models).map(([m,s])=>`<div class="modelstate"><b>${names[m]}</b><p>${badge(s.status)} · attempt ${s.attempt||1}</p>${s.previous_failed_attempts?`<p class="small muted">此前失败 ${s.previous_failed_attempts} 次,历史及用量保留</p>`:''}${s.failure_reason?`<p class="small muted">${esc(s.failure_reason)}</p>`:''}<span class="small muted">${s.elapsed_seconds?'已运行 '+age(s.elapsed_seconds):s.duration_seconds?Math.round(s.duration_seconds)+' 秒':''}<br>Input ${number(s.input_tokens)} · Cached ${number(s.cached_input_tokens)}<br>Output ${number(s.output_tokens)} · Reasoning ${number(s.reasoning_output_tokens)}<br><small>${esc(s.started_utc||'')} ${s.completed_utc?' → '+esc(s.completed_utc):''} · ${esc(s.usage_status||'missing')}</small></span></div>`).join(''); | |
| const outputs=Object.entries(c.models).map(([m,s])=>s.output_video_url? | |
| `<figure><video controls playsinline preload="metadata" poster="${esc(s.poster_url||'')}" src="${esc(s.output_video_url)}"></video><figcaption><b>${names[m]} · 修复后</b><p class="small muted">格式校验通过 · 物理修复效果待复核</p><a href="${esc(s.output_video_url)}" target="_blank" rel="noopener">打开 / 下载视频 ↗</a>${s.run_summary_url?` · <a href="${esc(s.run_summary_url)}" target="_blank" rel="noopener">运行记录 ↗</a>`:''}${s.inspection_url?` · <a href="${esc(s.inspection_url)}" target="_blank" rel="noopener">逐帧概览 ↗</a>`:''}</figcaption></figure>`: | |
| `<figure class="modelstate"><h3>${names[m]} · 修复后</h3>${badge(s.status)}<p class="small muted">${s.status==='complete_valid'?'正在发布可播放视频':'尚未交付修复视频'}</p></figure>`).join(''); | |
| const issues=(c.issues||[]).map((x,i)=>`${i+1}. ${x.start_seconds??''}–${x.end_seconds??''} 秒\n问题:${x.problem}\n预期:${x.expected}`).join('\n\n'); | |
| const d=document.getElementById('detail');d.hidden=false;d.innerHTML=`<h2>${esc(c.benchmark_id)}</h2><p class="muted">${esc(labels[c.source_kind])} · ${esc(c.source||'')} · ${esc(c.generator||'')}</p><div class="modelstates">${states}</div><p><button id="sync-play">从头同步播放原片与修复片</button></p><div class="media"><figure><video controls playsinline preload="metadata" src="${esc(c.input_video_url)}"></video><figcaption><b>原问题视频</b></figcaption></figure>${outputs}</div><details open><summary>问题卡与预期表现</summary><pre>${esc(issues)}</pre></details><details><summary>PE 修复提示词</summary><pre>${esc(c.prompt_zh)}</pre></details><details><summary>应保留内容</summary><pre>${esc(c.fix_keep)}</pre></details>`; | |
| document.getElementById('sync-play').onclick=()=>d.querySelectorAll('video').forEach(v=>{v.currentTime=0;v.play().catch(()=>{});}); | |
| const u=new URL(location.href);u.searchParams.set('scope',activeScope);u.searchParams.set('case',c.benchmark_id);history.replaceState(null,'',u); | |
| if(scroll)d.scrollIntoView({behavior:'smooth',block:'start'}); | |
| } | |
| for(const id of ['search','source','status'])document.getElementById(id).addEventListener('input',renderCases); | |
| async function load(){try{const r=await fetch((activeScope==='candidate'?'physfix-candidates-data.json':'physfix-data.json')+'?_='+Date.now(),{cache:'no-store'});if(!r.ok)throw Error(r.status);const initial=!data,old=data;data=await r.json();render();if(initial){const wanted=new URLSearchParams(location.search).get('case');const c=data.cases.find(x=>x.benchmark_id===wanted)||data.cases.find(x=>Object.values(x.models).some(s=>s.output_video_url));if(c)show(c.case_id,false);}else if(selected){const c=data.cases.find(x=>x.case_id===selected),prev=old.cases.find(x=>x.case_id===selected);if(JSON.stringify(Object.values(c.models).map(s=>s.output_video_url))!==JSON.stringify(Object.values(prev.models).map(s=>s.output_video_url)))show(selected,false);}}catch(e){document.getElementById('subtitle').textContent='公开快照暂不可用,正在重试…'}}load();setInterval(load,60000); | |
| </script></body></html> | |