Viviannnyang commited on
Commit
ef93ddb
·
verified ·
1 Parent(s): 1695dec

Publish GPT-6 Luna on same 20 videos with identical prompt and image inputs

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +24 -6
  2. app.js +115 -0
  3. assets/v_1dM62Xpm9Ns____3/00.jpg +0 -0
  4. assets/v_1dM62Xpm9Ns____3/01.jpg +0 -0
  5. assets/v_1dM62Xpm9Ns____3/02.jpg +0 -0
  6. assets/v_1dM62Xpm9Ns____3/03.jpg +0 -0
  7. assets/v_1dM62Xpm9Ns____3/04.jpg +0 -0
  8. assets/v_1dM62Xpm9Ns____3/05.jpg +0 -0
  9. assets/v_1dM62Xpm9Ns____3/06.jpg +0 -0
  10. assets/v_1dM62Xpm9Ns____3/07.jpg +0 -0
  11. assets/v_1dM62Xpm9Ns____3/08.jpg +0 -0
  12. assets/v_1dM62Xpm9Ns____3/09.jpg +0 -0
  13. assets/v_1dM62Xpm9Ns____3/all_overlay.jpg +0 -0
  14. assets/v_1dM62Xpm9Ns____3/binary_mask_sheet.png +0 -0
  15. assets/v_1dM62Xpm9Ns____3/identity_sheet.jpg +0 -0
  16. assets/v_1dM62Xpm9Ns____3/m0_mask.png +0 -0
  17. assets/v_1dM62Xpm9Ns____3/m0_overlay.jpg +0 -0
  18. assets/v_1dM62Xpm9Ns____3/mask_overlay.jpg +0 -0
  19. assets/v_1dM62Xpm9Ns____3/model_annotation.json +87 -0
  20. assets/v_1dM62Xpm9Ns____3/original_annotation.json +62 -0
  21. assets/v_BxzOUJbq28s____1/00.jpg +0 -0
  22. assets/v_BxzOUJbq28s____1/01.jpg +0 -0
  23. assets/v_BxzOUJbq28s____1/02.jpg +0 -0
  24. assets/v_BxzOUJbq28s____1/03.jpg +0 -0
  25. assets/v_BxzOUJbq28s____1/04.jpg +0 -0
  26. assets/v_BxzOUJbq28s____1/05.jpg +0 -0
  27. assets/v_BxzOUJbq28s____1/06.jpg +0 -0
  28. assets/v_BxzOUJbq28s____1/07.jpg +0 -0
  29. assets/v_BxzOUJbq28s____1/08.jpg +0 -0
  30. assets/v_BxzOUJbq28s____1/09.jpg +0 -0
  31. assets/v_BxzOUJbq28s____1/all_overlay.jpg +0 -0
  32. assets/v_BxzOUJbq28s____1/binary_mask_sheet.png +0 -0
  33. assets/v_BxzOUJbq28s____1/identity_sheet.jpg +0 -0
  34. assets/v_BxzOUJbq28s____1/m0_mask.png +0 -0
  35. assets/v_BxzOUJbq28s____1/m0_overlay.jpg +0 -0
  36. assets/v_BxzOUJbq28s____1/mask_overlay.jpg +0 -0
  37. assets/v_BxzOUJbq28s____1/model_annotation.json +108 -0
  38. assets/v_BxzOUJbq28s____1/original_annotation.json +64 -0
  39. assets/v_DPw74KWZzGY____1/00.jpg +0 -0
  40. assets/v_DPw74KWZzGY____1/01.jpg +0 -0
  41. assets/v_DPw74KWZzGY____1/02.jpg +0 -0
  42. assets/v_DPw74KWZzGY____1/03.jpg +0 -0
  43. assets/v_DPw74KWZzGY____1/04.jpg +0 -0
  44. assets/v_DPw74KWZzGY____1/05.jpg +0 -0
  45. assets/v_DPw74KWZzGY____1/06.jpg +0 -0
  46. assets/v_DPw74KWZzGY____1/07.jpg +0 -0
  47. assets/v_DPw74KWZzGY____1/08.jpg +0 -0
  48. assets/v_DPw74KWZzGY____1/09.jpg +0 -0
  49. assets/v_DPw74KWZzGY____1/all_overlay.jpg +0 -0
  50. assets/v_DPw74KWZzGY____1/binary_mask_sheet.png +0 -0
README.md CHANGED
@@ -1,10 +1,28 @@
1
  ---
2
- title: VideoGLaMM ActivityNet Object Luna20
3
- emoji: 👁
4
- colorFrom: pink
5
- colorTo: yellow
6
  sdk: static
7
- pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: VideoGLaMM ActivityNet Object Review - GPT-6 Luna
3
+ emoji: 🌙
4
+ colorFrom: indigo
5
+ colorTo: blue
6
  sdk: static
7
+ app_file: index.html
8
  ---
9
 
10
+ # VideoGLaMM ActivityNet object text — same 20 samples, GPT-6 Luna
11
+
12
+ A new independent Space for `gpt-6-luna`. The [previous GPT-6.1 Sol Space](https://huggingface.co/spaces/Viviannnyang/VideoGLaMM_ActivityNet_Object_Review20) and the original VIPOSeg Space are unchanged.
13
+
14
+ All 20 requests are deep-equal to the previous submitted requests except `body.model`, which is changed from `gpt-6.1-sol` to `gpt-6-luna`. Exact same local custom IDs, 20 samples in the same order, refined captions, complete prompt, 260 image input blocks in the same order, JSON schema, medium reasoning, and 16000 output token cap. Each request contains 10 clean RGB frames plus the source ID overlay, identity sheet, and actual binary-mask sheet. Each direct HTTP body equals the prepared Luna request body, and raw API responses and request audits are retained locally. The earlier waiting Batch was cancellation-requested at the user's instruction; its input verification and cancellation receipt are retained separately. See `data/request_audit.json`, `data/direct_api_receipt.json`, and `data/batch_cancel_receipt.json`.
15
+
16
+ Prompt SHA256: `f4f2c370eab558f31c5e195fe1953a6232ee5bab77e1c89e5fed96768dd56213`. The user annotation rule is unchanged, with the full original text preserved in `data/TEXT_ANNOTATION.original.md` and embedded verbatim in `data/annotation_prompt.txt`.
17
+
18
+ 20/20 direct Responses API outputs returned; 17 passed structural checks. 109 entity groups, 187 mentions, 23 model mask-match candidates and 86 other pending groups; 0 complete correspondence candidates. All statuses and any validation errors are displayed. Human reviewed: 0. Differences from the previous run are model outputs, not measured accuracy differences. See `data/model_comparison.json`.
19
+
20
+ Original supplied media: ten sampled frames per caption segment, not a full source video. 32 original masks across the 20 samples; masks and sparse bboxes exist on a single reference frame per sample, not on the other nine. No new masks or tracks generated. Time labels are estimates from the source sampling procedure. Playback is an inspection slideshow at two images per second, not original video FPS (unknown).
21
+
22
+ All text groups are retained, including entities without masks, body parts and collective references. Missing spatial supervision is not a background negative. Model claims about visibility, caption hallucinations and mask quality still require human review. Original JSON and unmodified GPT outputs are downloadable per sample, separately from deterministic postprocessing adjustments and span validation.
23
+
24
+ Review status and notes are browser-local only, isolated from the Sol Space with storage key `videoglamm-activitynet-object20-luna-review-v1`. Export/import JSON to save or aggregate reviews; exports bind to the Luna dataset hash. Marking a sample reviewed does not supply its missing masks.
25
+
26
+ Direct Responses API run `gcg-object20-luna-direct-27164e5005fc45de97fc9bf2296f9f74`. Actual API usage: 326855 input tokens, 52595 output tokens. No bill estimate is presented as an invoice.
27
+
28
+ Source: [VideoGLaMM Dataset.md](https://github.com/mbzuai-oryx/VideoGLaMM/blob/main/Dataset.md), ActivityNet Entities GCG. Media rights remain with original data owners. Research annotation preview. Layout based on the prior review Space.
app.js ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+ const $=id=>document.getElementById(id);
3
+ const COLORS=['#2563eb','#db2777','#16a34a','#ea580c','#7c3aed','#0891b2','#ca8a04','#dc2626'];
4
+ const LABELS={matched:'模型对应候选',missing_mask:'缺 mask · 待补',not_visible_in_reference:'参考帧未能定位',mask_quality_issue:'mask 质量待审',ambiguous:'身份对应含糊',requires_mask_union:'多 mask 分组待审'};
5
+ const REVIEW={unreviewed:'尚未审核',reviewed:'已审核并记录',needs_review:'需修改',reject:'不采用'};
6
+ const KEY='videoglamm-activitynet-object20-luna-review-v1';
7
+ const DATA_SHA='b3a7d7b4aeee343cc61a7a463abe83a5cab20efb590f6f3fda67e26f22714cfc';
8
+ const state={rows:[],filtered:[],cur:null,group:null,mask:null,frame:0,reviews:{},timer:null};
9
+ const esc=s=>String(s??'').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
10
+ const src=file=>`${state.cur.asset_dir}/${file}`;
11
+ const currentGroup=()=>state.cur.groups.find(g=>g.group_id===state.group);
12
+ const groupColor=g=>state.cur.source_masks.find(o=>o.mask_id===g.mask_id)?.color||'#a16207';
13
+ function stop(){if(state.timer)clearInterval(state.timer);state.timer=null;$('play').textContent='播放采样帧';}
14
+ function reviewOf(id){return state.reviews[id]||{status:'unreviewed',note:''};}
15
+ function filterRows(keep=true){
16
+ const q=$('search').value.trim().toLowerCase(),f=$('filter').value,id=keep?state.cur?.sample_id:null;
17
+ state.filtered=state.rows.filter(r=>(f==='all'||reviewOf(r.sample_id).status===f)&&(!q||`${r.sample_id} ${r.caption} ${r.groups.map(g=>g.entity_label).join(' ')}`.toLowerCase().includes(q)));
18
+ $('list-count').textContent=`${state.filtered.length} / ${state.rows.length} samples`;
19
+ $('review-count').textContent=`本浏览器:${Object.values(state.reviews).filter(r=>r.status!=='unreviewed').length} / 20 已记录`;
20
+ renderList();
21
+ if(!state.filtered.length){stop();state.cur=null;$('entry').hidden=true;$('loading').hidden=false;$('loading').textContent='没有符合筛选的样本。';$('prev').disabled=$('next').disabled=true;return;}
22
+ if(!id||!state.filtered.some(r=>r.sample_id===id))load(state.filtered[0].sample_id);else renderList();
23
+ }
24
+ function renderList(){
25
+ $('entry-list').innerHTML=state.filtered.map(r=>`<button class="entry-item ${state.cur?.sample_id===r.sample_id?'active':''}" data-id="${r.sample_id}" aria-label="样本 ${r.selection_index} ${r.video_id}"><strong>${String(r.selection_index).padStart(2,'0')} · ${esc(r.video_id)}</strong><small>${r.source_masks.length} masks · ${r.groups.length} 实体 · ${REVIEW[reviewOf(r.sample_id).status]}</small></button>`).join('');
26
+ $('entry-list').querySelectorAll('button').forEach(b=>b.onclick=()=>load(b.dataset.id));
27
+ const i=state.filtered.indexOf(state.cur);$('prev').disabled=i<=0;$('next').disabled=i<0||i>=state.filtered.length-1;
28
+ }
29
+ function load(id){
30
+ stop();state.cur=state.rows.find(r=>r.sample_id===id);const r=state.cur;state.group=null;state.frame=r.reference_frame_id;state.mask=r.source_masks[0]?.mask_id||null;
31
+ $('mode').value='all';$('group-filter').value='all';$('loading').hidden=true;$('entry').hidden=false;
32
+ $('title').textContent=`${String(r.selection_index).padStart(2,'0')} · ${r.sample_id}`;
33
+ $('meta').textContent=`10 张采样 RGB · ${r.source_masks.length} 个源 mask · ${r.groups.length} 个实体组 · 片段 ${r.source_timestamps.map(t=>t.toFixed(2)).join('–')} s`;
34
+ $('badges').innerHTML=`<span class="badge ${r.validation.structurally_valid?'':'warn'}">${r.validation.structurally_valid?'字符 span 校验通过':'结构校验未通过 · 待修正'}</span><span class="badge warn">${r.validation.complete_correspondence_candidate?'完整对应候选 · 待人工审':'部分对应 · 待人工审'}</span>`;
35
+ $('mask').innerHTML=r.source_masks.map(o=>`<option value="${o.mask_id}">${o.mask_id} · ${esc(o.source_classes.join(' / '))}</option>`).join('');
36
+ $('objects').innerHTML=r.source_masks.map((o,i)=>`<button class="obj-button" style="--c:${o.color}" data-mask="${o.mask_id}"><strong>${o.mask_id} · ${esc(o.source_classes.join(' / '))}</strong><small>${o.source_seg_token} · 仅帧 ${String(r.reference_frame_id).padStart(2,'0')} · ${o.mask_foreground_pixels.toLocaleString()} pixels<br>源 bbox [${o.source_bbox.join(', ')}]</small></button>`).join('');
37
+ $('objects').querySelectorAll('button').forEach(b=>b.onclick=()=>inspectMask(b.dataset.mask));
38
+ $('frames').innerHTML=Array.from({length:10},(_,i)=>`<button class="frame-thumb ${i===r.reference_frame_id?'reference':''}" data-frame="${i}" aria-label="采样帧 ${i}${i===r.reference_frame_id?' mask 参考帧':''}"><img src="${src(String(i).padStart(2,'0')+'.jpg')}" alt="采样帧 ${i}"><span>${String(i).padStart(2,'0')} ${i===r.reference_frame_id?'· mask':'· RGB'}</span></button>`).join('');
39
+ $('frames').querySelectorAll('button').forEach(b=>b.onclick=()=>{stop();state.frame=Number(b.dataset.frame);renderMedia();});
40
+ const duration=r.source_timestamps[1]-r.source_timestamps[0];$('timing').textContent=`按源采样公式推算:间隔约 ${(duration/10).toFixed(3)} s(约 ${(10/duration).toFixed(3)} 张/秒);时间标签是估计值。`;
41
+ $('issues').innerHTML=[...r.validation.errors.map(e=>`<p><strong>结构校验错误</strong> ${esc(e)}</p>`),...r.issues.map(i=>`<p><strong>${esc(i.type)}</strong>${i.text?' · '+esc(i.text):''}<br>${esc(i.description)}</p>`),...r.model_review_reasons.map(t=>`<p>${esc(t)}</p>`),...r.validation.warnings.map(t=>`<p>本地检查:${esc(typeof t==='string'?t:JSON.stringify(t))}</p>`),...r.local_adjustments.map(t=>`<p>确定性整理(原模型输出保留):${esc(JSON.stringify(t))}</p>`)].join('')||'<p>没有额外问题记录;仍需人工复核实体完整性及对应。</p>';
42
+ const rev=reviewOf(id);$('review-status').value=rev.status;$('note').value=rev.note;$('saved').textContent=rev.updated_at?'本浏览器保存于 '+new Date(rev.updated_at).toLocaleString():'';
43
+ $('original-refined').textContent=r.refined_caption_original;$('original-new').textContent=r.new_caption_original||'原字段不存在';
44
+ $('raw-json').textContent=JSON.stringify(r,null,2);
45
+ $('links').innerHTML=`<a href="${src('original_annotation.json')}" target="_blank">源完整 JSON</a><a href="${src('model_annotation.json')}" target="_blank">未改动的 GPT 输出</a>`;
46
+ $('gpt-overlay').src=src('mask_overlay.jpg');$('gpt-identities').src=src('identity_sheet.jpg');$('gpt-binary').src=src('binary_mask_sheet.png');
47
+ renderList();renderCaption();renderGroups();renderDetail();renderMedia();window.scrollTo(0,0);
48
+ }
49
+ function renderCaption(){
50
+ const r=state.cur,chars=Array.from(r.caption),spans=[];
51
+ r.groups.forEach((g,gi)=>g.mentions.forEach(m=>{if(m.span)spans.push({s:m.span[0],e:m.span[1],g,gi});}));
52
+ const pts=[...new Set([0,chars.length,...spans.flatMap(m=>[m.s,m.e])])].sort((a,b)=>a-b);$('caption').replaceChildren();
53
+ for(let i=0;i<pts.length-1;i++){
54
+ const s=pts[i],e=pts[i+1],active=spans.filter(m=>m.s<=s&&e<=m.e),t=chars.slice(s,e).join('');
55
+ if(!active.length){$('caption').append(document.createTextNode(t));continue;}
56
+ const selected=active.find(m=>m.g.group_id===state.group),a=selected||active[0],wrap=document.createElement('span');
57
+ wrap.className='mention'+(selected?' selected':'');wrap.style.setProperty('--c',groupColor(a.g));wrap.title=active.map(m=>`${m.g.group_id} · ${m.g.entity_label} · ${LABELS[m.g.grounding_status]}`).join('\n');
58
+ wrap.append(document.createTextNode(t));const sup=document.createElement('sup');sup.textContent=[...new Set(active.map(m=>m.g.group_id))].join(',');wrap.append(sup);
59
+ wrap.onclick=()=>{const ids=[...new Set(active.map(m=>m.g.group_id))];selectGroup(ids[(ids.indexOf(state.group)+1)%ids.length]);};$('caption').append(wrap);
60
+ }
61
+ const g=currentGroup();$('selected-summary').textContent=g?`选中 ${g.group_id} · ${g.entity_label} · ${LABELS[g.grounding_status]};高亮包括该组全部提及。共享 / 重叠 span 可反复点击切换,或在下方直接选择组。`:'候选对应的文字与源 mask 同色;棕色为待补 / 待审。跨组 span 允许重叠,角标列出全部组。';
62
+ }
63
+ function selectGroup(id){
64
+ stop();state.group=id;const g=currentGroup();state.frame=state.cur.reference_frame_id;state.mask=g.mask_id||null;$('mode').value=g.mask_id?'selected':'rgb';
65
+ renderCaption();renderGroups();renderDetail();renderMedia();
66
+ }
67
+ function renderGroups(){
68
+ const filter=$('group-filter').value;
69
+ $('groups').innerHTML=state.cur.groups.map((g,i)=>({g,i})).filter(({g})=>filter==='all'||(filter==='matched'?g.grounding_status==='matched':g.grounding_status!=='matched')).map(({g,i})=>`<button class="group ${state.group===g.group_id?'active':''}" style="--c:${groupColor(g)}" data-group="${g.group_id}"><div class="group-title">${g.group_id} · ${esc(g.entity_label)}</div><span class="status ${g.grounding_status}">${LABELS[g.grounding_status]}</span><span class="group-objects"> ${esc(g.entity_kind)}${g.mask_id?' · '+g.mask_id:''}</span>${g.mentions.map(m=>`<div class="group-mention"><code>${esc(m.text)}</code> [${m.span?m.span.join(', '):'待确定'})</div>`).join('')}<div class="group-objects">${g.candidate_mask_ids.length?'待审 mask:'+g.candidate_mask_ids.join(', '):g.mask_id?'候选对应,未经人工确认':'没有已对应的源 mask'}</div></button>`).join('');
70
+ $('groups').querySelectorAll('button').forEach(b=>b.onclick=()=>selectGroup(b.dataset.group));
71
+ }
72
+ function renderDetail(){
73
+ const g=currentGroup();if(!g){$('group-detail').innerHTML='<p>点击 caption 或下方实体组查看对应。原始 mask 清单包含全部源 mask,可逐个检查。</p>';$('mask-preview').replaceChildren();return;}
74
+ $('group-detail').innerHTML=`<strong>${esc(g.group_id+' · '+g.entity_label)}</strong><p><span class="status ${g.grounding_status}">${LABELS[g.grounding_status]}</span> · ${esc(g.visibility)} · 模型信心 ${esc(g.confidence)}</p><p>${esc(g.reason)}</p>${g.mentions.map(m=>`<div><code>${esc(m.text)}</code> · [${m.span?m.span.join(', '):'待确定'})</div>`).join('')}`;
75
+ $('mask-preview').innerHTML=g.mask_id?`<div>该组的模型候选对应:${g.mask_id}(非人工认证)</div><img src="${src(g.mask_id+'_mask.png')}" alt="实体组 ${g.group_id} 的候选源 mask ${g.mask_id}">`:`<div class="pending-box">此实体没有已对应的源 mask。text 已保留,待补 / 待审。${g.candidate_mask_ids.length?' 候选 ID:'+g.candidate_mask_ids.join(', ')+';可在上方原始 mask 清单中独立检查。':''}</div>`;
76
+ }
77
+ function inspectMask(id){stop();state.mask=id;state.frame=state.cur.reference_frame_id;$('mode').value='selected';renderMedia();}
78
+ function renderMedia(){
79
+ const r=state.cur,ref=state.frame===r.reference_frame_id,mode=$('mode').value,mid=state.mask;
80
+ let file=String(state.frame).padStart(2,'0')+'.jpg',message='原始 RGB';
81
+ if(ref&&mode==='all'){file='all_overlay.jpg';message=`全部 ${r.source_masks.length} 个源 mask 叠加(颜色见清单)`;}
82
+ if(ref&&mode==='selected'){if(mid){file=mid+'_overlay.jpg';message=`独立检查源 mask ${mid} · 叠加显示`;}else message='当前实体无对应 mask · 显示参考 RGB';}
83
+ if(ref&&mode==='binary'){if(mid){file=mid+'_mask.png';message=`独立检查源 mask ${mid} · 二值图`;}else message='当前实体无对应 mask · 显示参考 RGB';}
84
+ if(!ref)message='此采样帧无源 mask / bbox · 仅显示 RGB';
85
+ $('big-image').src=src(file);$('big-image').alt=`${r.sample_id} 帧 ${state.frame} · ${message}`;
86
+ $('frame-state').textContent=`帧 ${String(state.frame).padStart(2,'0')} / 09 · 估计 ${r.estimated_frame_times_s[state.frame].toFixed(3)} s · ${ref?'MASK 参考帧 · ':''}${message}`;
87
+ $('mask').value=mid||'';
88
+ $('frames').querySelectorAll('button').forEach(b=>{b.classList.toggle('active',Number(b.dataset.frame)===state.frame);b.setAttribute('aria-pressed',String(Number(b.dataset.frame)===state.frame));});
89
+ $('objects').querySelectorAll('button').forEach(b=>b.classList.toggle('active',ref&&mode!=='all'&&mode!=='rgb'&&mid===b.dataset.mask));
90
+ }
91
+ function persistReview(){
92
+ if(!state.cur)return;state.reviews[state.cur.sample_id]={status:$('review-status').value,note:$('note').value,updated_at:new Date().toISOString()};
93
+ try{localStorage.setItem(KEY,JSON.stringify({dataset_sha256:DATA_SHA,reviews:state.reviews}));$('saved').textContent='已保存在当前浏览器。请导出备份或汇总。';}catch(e){$('saved').textContent='浏览器保存失败;请立即导出审核备份。';}
94
+ renderList();$('review-count').textContent=`本浏览器:${Object.values(state.reviews).filter(r=>r.status!=='unreviewed').length} / 20 已记录`;
95
+ }
96
+ $('search').oninput=()=>filterRows();$('filter').onchange=()=>filterRows();
97
+ $('prev').onclick=()=>load(state.filtered[Math.max(0,state.filtered.indexOf(state.cur)-1)].sample_id);
98
+ $('next').onclick=()=>load(state.filtered[Math.min(state.filtered.length-1,state.filtered.indexOf(state.cur)+1)].sample_id);
99
+ $('all-groups').onclick=()=>{state.group=null;renderCaption();renderGroups();renderDetail();};
100
+ $('group-filter').onchange=renderGroups;
101
+ $('reference').onclick=()=>{stop();state.frame=state.cur.reference_frame_id;renderMedia();};
102
+ $('mode').onchange=()=>{stop();if($('mode').value!=='rgb')state.frame=state.cur.reference_frame_id;renderMedia();};
103
+ $('mask').onchange=()=>inspectMask($('mask').value);
104
+ $('play').onclick=()=>{if(state.timer){stop();return;}state.frame=0;$('mode').value='rgb';renderMedia();$('play').textContent='暂停播放';state.timer=setInterval(()=>{if(state.frame>=9){stop();return;}state.frame++;renderMedia();},500);};
105
+ $('review-status').onchange=persistReview;$('note').oninput=persistReview;
106
+ $('export').onclick=()=>{const x={schema:'videoglamm-activitynet-object20-luna-review-v1',dataset_sha256:DATA_SHA,exported_at:new Date().toISOString(),storage:'browser-local',source_annotations_unchanged:true,reviews:state.reviews};const u=URL.createObjectURL(new Blob([JSON.stringify(x,null,2)],{type:'application/json'})),a=document.createElement('a');a.href=u;a.download='videoglamm-activitynet-object20-luna-review.json';a.click();setTimeout(()=>URL.revokeObjectURL(u),2000);};
107
+ $('import').onclick=()=>$('import-file').click();
108
+ $('import-file').onchange=async()=>{try{const f=$('import-file').files[0];if(!f)return;const x=JSON.parse(await f.text());if(x.dataset_sha256!==DATA_SHA||!x.reviews||typeof x.reviews!=='object')throw new Error('数据版本或文件格式不匹配');const accepted={};for(const [id,r]of Object.entries(x.reviews)){if(!state.rows.some(a=>a.sample_id===id)||!r||!Object.hasOwn(REVIEW,r.status)||typeof r.note!=='string')throw new Error('存在无效样本或审核字段');accepted[id]={status:r.status,note:r.note,updated_at:r.updated_at||new Date().toISOString()};}for(const [id,r]of Object.entries(accepted)){const old=state.reviews[id];if(!old||Date.parse(r.updated_at)>=Date.parse(old.updated_at))state.reviews[id]=r;}localStorage.setItem(KEY,JSON.stringify({dataset_sha256:DATA_SHA,reviews:state.reviews}));filterRows();if(state.cur)load(state.cur.sample_id);alert('已合并审核记录;相同样本保留更新时间较新的记录。');}catch(e){alert('导入失败:'+e.message);}finally{$('import-file').value='';}};
109
+ async function init(){
110
+ const r=await fetch('data/annotations.json');if(!r.ok)throw new Error(`标注载入失败:${r.status}`);state.rows=await r.json();
111
+ try{const saved=JSON.parse(localStorage.getItem(KEY)||'null');if(saved?.dataset_sha256===DATA_SHA)state.reviews=Object.fromEntries(Object.entries(saved.reviews||{}).filter(([id,v])=>state.rows.some(r=>r.sample_id===id)&&v&&Object.hasOwn(REVIEW,v.status)&&typeof v.note==='string'));}catch(e){$('processing').textContent='浏览器存储不可用,请导出审核。';}
112
+ filterRows(false);
113
+ const receipt=await fetch('data/processing_receipt.json').then(r=>r.json());$('processing').textContent=`处理状态:${receipt.status} · ${receipt.request_counts.completed}/20 完成 · ${receipt.request_counts.failed} 失败。`;
114
+ }
115
+ init().catch(e=>{$('loading').hidden=false;$('loading').textContent=e.message;});
assets/v_1dM62Xpm9Ns____3/00.jpg ADDED
assets/v_1dM62Xpm9Ns____3/01.jpg ADDED
assets/v_1dM62Xpm9Ns____3/02.jpg ADDED
assets/v_1dM62Xpm9Ns____3/03.jpg ADDED
assets/v_1dM62Xpm9Ns____3/04.jpg ADDED
assets/v_1dM62Xpm9Ns____3/05.jpg ADDED
assets/v_1dM62Xpm9Ns____3/06.jpg ADDED
assets/v_1dM62Xpm9Ns____3/07.jpg ADDED
assets/v_1dM62Xpm9Ns____3/08.jpg ADDED
assets/v_1dM62Xpm9Ns____3/09.jpg ADDED
assets/v_1dM62Xpm9Ns____3/all_overlay.jpg ADDED
assets/v_1dM62Xpm9Ns____3/binary_mask_sheet.png ADDED
assets/v_1dM62Xpm9Ns____3/identity_sheet.jpg ADDED
assets/v_1dM62Xpm9Ns____3/m0_mask.png ADDED
assets/v_1dM62Xpm9Ns____3/m0_overlay.jpg ADDED
assets/v_1dM62Xpm9Ns____3/mask_overlay.jpg ADDED
assets/v_1dM62Xpm9Ns____3/model_annotation.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "v_1dM62Xpm9Ns____3",
3
+ "caption": "In the video, a man is seen speaking to the camera while holding a piece of food. He then proceeds to cut his onion and continues speaking.",
4
+ "groups": [
5
+ {
6
+ "group_id": "g1",
7
+ "entity_label": "man speaking",
8
+ "entity_kind": "thing",
9
+ "mentions": [
10
+ {
11
+ "text": "a man",
12
+ "occurrence": 1
13
+ },
14
+ {
15
+ "text": "He",
16
+ "occurrence": 1
17
+ },
18
+ {
19
+ "text": "his",
20
+ "occurrence": 1
21
+ }
22
+ ],
23
+ "mask_id": "m0",
24
+ "candidate_mask_ids": [],
25
+ "grounding_status": "matched",
26
+ "visibility": "reference_visible",
27
+ "confidence": "high",
28
+ "reason": "The man is clearly visible at the reference frame and matches mask m0; the pronoun and possessive refer to him."
29
+ },
30
+ {
31
+ "group_id": "g2",
32
+ "entity_label": "camera",
33
+ "entity_kind": "thing",
34
+ "mentions": [
35
+ {
36
+ "text": "the camera",
37
+ "occurrence": 1
38
+ }
39
+ ],
40
+ "mask_id": null,
41
+ "candidate_mask_ids": [],
42
+ "grounding_status": "not_visible_in_reference",
43
+ "visibility": "not_observed",
44
+ "confidence": "low",
45
+ "reason": "The camera is mentioned but is not verifiable in the supplied frames; no matching mask is supplied."
46
+ },
47
+ {
48
+ "group_id": "g3",
49
+ "entity_label": "piece of food",
50
+ "entity_kind": "thing",
51
+ "mentions": [
52
+ {
53
+ "text": "a piece of food",
54
+ "occurrence": 1
55
+ }
56
+ ],
57
+ "mask_id": null,
58
+ "candidate_mask_ids": [],
59
+ "grounding_status": "not_visible_in_reference",
60
+ "visibility": "context_only",
61
+ "confidence": "low",
62
+ "reason": "No food is visible in the reference frame. An onion appears in context frames, but the caption does not unambiguously identify it as this piece of food."
63
+ },
64
+ {
65
+ "group_id": "g4",
66
+ "entity_label": "onion",
67
+ "entity_kind": "thing",
68
+ "mentions": [
69
+ {
70
+ "text": "his onion",
71
+ "occurrence": 1
72
+ }
73
+ ],
74
+ "mask_id": null,
75
+ "candidate_mask_ids": [],
76
+ "grounding_status": "not_visible_in_reference",
77
+ "visibility": "context_only",
78
+ "confidence": "high",
79
+ "reason": "An onion is visible in later context frames, but not in the reference frame; no matching reference-frame mask is supplied."
80
+ }
81
+ ],
82
+ "issues": [],
83
+ "needs_review": true,
84
+ "review_reasons": [
85
+ "The camera and the food/onion entities have no matching masks at the reference frame."
86
+ ]
87
+ }
assets/v_1dM62Xpm9Ns____3/original_annotation.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "video_id": "v_1dM62Xpm9Ns",
3
+ "segment_id": "3",
4
+ "new_caption": "<p> He </p> [SEG:0] then continues cutting <p> his </p> [SEG:0] onion",
5
+ "refined_caption": "In the video, <p> a man </p> [SEG:0] is seen speaking to the camera while holding a piece of food. He then proceeds to cut <p> his </p> [SEG:0] onion and continues speaking.",
6
+ "ann": {
7
+ "process_clss": [
8
+ [
9
+ "he",
10
+ "he"
11
+ ]
12
+ ],
13
+ "tokens": [
14
+ "He",
15
+ "then",
16
+ "continues",
17
+ "cutting",
18
+ "his",
19
+ "onion"
20
+ ],
21
+ "frame_ind": [
22
+ 0
23
+ ],
24
+ "process_idx": [
25
+ [
26
+ 0,
27
+ 4
28
+ ]
29
+ ],
30
+ "timestamps": [
31
+ 156.27,
32
+ 187.15
33
+ ],
34
+ "process_bnd_box": [
35
+ [
36
+ 193,
37
+ 21,
38
+ 512,
39
+ 402
40
+ ]
41
+ ],
42
+ "crowds": [
43
+ 0
44
+ ]
45
+ },
46
+ "seg_token_to_obj": {
47
+ "[SEG:0]": {
48
+ "bbox": [
49
+ 193,
50
+ 21,
51
+ 512,
52
+ 402
53
+ ],
54
+ "frame_id": 0,
55
+ "process_idx": [
56
+ 0,
57
+ 4
58
+ ],
59
+ "crowds": 0
60
+ }
61
+ }
62
+ }
assets/v_BxzOUJbq28s____1/00.jpg ADDED
assets/v_BxzOUJbq28s____1/01.jpg ADDED
assets/v_BxzOUJbq28s____1/02.jpg ADDED
assets/v_BxzOUJbq28s____1/03.jpg ADDED
assets/v_BxzOUJbq28s____1/04.jpg ADDED
assets/v_BxzOUJbq28s____1/05.jpg ADDED
assets/v_BxzOUJbq28s____1/06.jpg ADDED
assets/v_BxzOUJbq28s____1/07.jpg ADDED
assets/v_BxzOUJbq28s____1/08.jpg ADDED
assets/v_BxzOUJbq28s____1/09.jpg ADDED
assets/v_BxzOUJbq28s____1/all_overlay.jpg ADDED
assets/v_BxzOUJbq28s____1/binary_mask_sheet.png ADDED
assets/v_BxzOUJbq28s____1/identity_sheet.jpg ADDED
assets/v_BxzOUJbq28s____1/m0_mask.png ADDED
assets/v_BxzOUJbq28s____1/m0_overlay.jpg ADDED
assets/v_BxzOUJbq28s____1/mask_overlay.jpg ADDED
assets/v_BxzOUJbq28s____1/model_annotation.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "v_BxzOUJbq28s____1",
3
+ "caption": "In the video, a man is playing the drums with his hands, focusing on incorporating a second drum into the mix. He is wearing headphones and is immersed in his performance.",
4
+ "groups": [
5
+ {
6
+ "group_id": "g1",
7
+ "entity_label": "the man playing the drums",
8
+ "entity_kind": "thing",
9
+ "mentions": [
10
+ {
11
+ "text": "a man",
12
+ "occurrence": 1
13
+ },
14
+ {
15
+ "text": "his",
16
+ "occurrence": 1
17
+ },
18
+ {
19
+ "text": "He",
20
+ "occurrence": 1
21
+ },
22
+ {
23
+ "text": "his",
24
+ "occurrence": 2
25
+ }
26
+ ],
27
+ "mask_id": "m0",
28
+ "candidate_mask_ids": [],
29
+ "grounding_status": "matched",
30
+ "visibility": "reference_visible",
31
+ "confidence": "high",
32
+ "reason": "The man is clearly visible in the reference frame and matches mask m0."
33
+ },
34
+ {
35
+ "group_id": "g2",
36
+ "entity_label": "the drum set",
37
+ "entity_kind": "collective",
38
+ "mentions": [
39
+ {
40
+ "text": "the drums",
41
+ "occurrence": 1
42
+ }
43
+ ],
44
+ "mask_id": null,
45
+ "candidate_mask_ids": [],
46
+ "grounding_status": "missing_mask",
47
+ "visibility": "reference_visible",
48
+ "confidence": "medium",
49
+ "reason": "Multiple drums are visible in the reference frame, but no drum mask is supplied."
50
+ },
51
+ {
52
+ "group_id": "g3",
53
+ "entity_label": "the man's hands",
54
+ "entity_kind": "body_part",
55
+ "mentions": [
56
+ {
57
+ "text": "his hands",
58
+ "occurrence": 1
59
+ }
60
+ ],
61
+ "mask_id": null,
62
+ "candidate_mask_ids": [],
63
+ "grounding_status": "missing_mask",
64
+ "visibility": "reference_visible",
65
+ "confidence": "high",
66
+ "reason": "The hands are visible, but no separate hand mask is supplied; the person mask is not a hand mask."
67
+ },
68
+ {
69
+ "group_id": "g4",
70
+ "entity_label": "the second drum",
71
+ "entity_kind": "thing",
72
+ "mentions": [
73
+ {
74
+ "text": "a second drum",
75
+ "occurrence": 1
76
+ }
77
+ ],
78
+ "mask_id": null,
79
+ "candidate_mask_ids": [],
80
+ "grounding_status": "missing_mask",
81
+ "visibility": "reference_visible",
82
+ "confidence": "medium",
83
+ "reason": "A drum is visible in the reference frame, but no separate drum mask is supplied."
84
+ },
85
+ {
86
+ "group_id": "g5",
87
+ "entity_label": "headphones",
88
+ "entity_kind": "thing",
89
+ "mentions": [
90
+ {
91
+ "text": "headphones",
92
+ "occurrence": 1
93
+ }
94
+ ],
95
+ "mask_id": null,
96
+ "candidate_mask_ids": [],
97
+ "grounding_status": "missing_mask",
98
+ "visibility": "reference_visible",
99
+ "confidence": "medium",
100
+ "reason": "Headphones are visible on the man's head, but no headphones mask is supplied."
101
+ }
102
+ ],
103
+ "issues": [],
104
+ "needs_review": true,
105
+ "review_reasons": [
106
+ "The drums, hands, second drum, and headphones are visible but have no matching supplied masks."
107
+ ]
108
+ }
assets/v_BxzOUJbq28s____1/original_annotation.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "video_id": "v_BxzOUJbq28s",
3
+ "segment_id": "1",
4
+ "new_caption": "The <p> man </p> [SEG:0] starts adding in a second drum to the mix",
5
+ "refined_caption": "In the video, <p> a man </p> [SEG:0] is playing the drums with his hands, focusing on incorporating a second drum into the mix. He is wearing headphones and is immersed in his performance.",
6
+ "ann": {
7
+ "process_clss": [
8
+ [
9
+ "man"
10
+ ]
11
+ ],
12
+ "tokens": [
13
+ "The",
14
+ "man",
15
+ "starts",
16
+ "adding",
17
+ "in",
18
+ "a",
19
+ "second",
20
+ "drum",
21
+ "to",
22
+ "the",
23
+ "mix"
24
+ ],
25
+ "frame_ind": [
26
+ 4
27
+ ],
28
+ "process_idx": [
29
+ [
30
+ 1
31
+ ]
32
+ ],
33
+ "timestamps": [
34
+ 49.59,
35
+ 181.46
36
+ ],
37
+ "process_bnd_box": [
38
+ [
39
+ 181,
40
+ 22,
41
+ 555,
42
+ 537
43
+ ]
44
+ ],
45
+ "crowds": [
46
+ 0
47
+ ]
48
+ },
49
+ "seg_token_to_obj": {
50
+ "[SEG:0]": {
51
+ "bbox": [
52
+ 181,
53
+ 22,
54
+ 555,
55
+ 537
56
+ ],
57
+ "frame_id": 4,
58
+ "process_idx": [
59
+ 1
60
+ ],
61
+ "crowds": 0
62
+ }
63
+ }
64
+ }
assets/v_DPw74KWZzGY____1/00.jpg ADDED
assets/v_DPw74KWZzGY____1/01.jpg ADDED
assets/v_DPw74KWZzGY____1/02.jpg ADDED
assets/v_DPw74KWZzGY____1/03.jpg ADDED
assets/v_DPw74KWZzGY____1/04.jpg ADDED
assets/v_DPw74KWZzGY____1/05.jpg ADDED
assets/v_DPw74KWZzGY____1/06.jpg ADDED
assets/v_DPw74KWZzGY____1/07.jpg ADDED
assets/v_DPw74KWZzGY____1/08.jpg ADDED
assets/v_DPw74KWZzGY____1/09.jpg ADDED
assets/v_DPw74KWZzGY____1/all_overlay.jpg ADDED
assets/v_DPw74KWZzGY____1/binary_mask_sheet.png ADDED