Demo
#5
by JonnaMat - opened
Files changed (7)
- app.js+108-61
- config.json+64-1
- demo/demo.cssAdded+249
- demo/demo.jsAdded+448
- index.html+6
- palette.cssAdded+74
- style.css+111-133
103 unmodified lines104105106107108109110111112113114115147 unmodified lines2632642652662672682692702712722732742752762 unmodified lines2792802812822832849 unmodified lines29429529629729829930038 unmodified lines33934034134234334434534625 unmodified lines37237337437537637737837938038138238338444 unmodified lines4294304314324334344352 unmodified lines43843944044144244344429 unmodified lines47447547647747847926 unmodified lines506507508509510511512513514515516517518519520521161 unmodified lines68368468568668768868969069169269369469569669769869970070135 unmodified lines73773873974074174224 unmodified lines76776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280314 unmodified lines818819820821822823824825826827828829830103 unmodified linesreturn !model.startsWith(OPT_ORG + "/");}// ─── Derive unique values ─────────────────────────────────────────────────────let ALL_MODELS = [];// ─── Model Family Keys from config ────────────────────────────────────────────const ALL_FAMILY_KEYS = Object.keys(config.model_families || {});let MODEL_FAMILIES = {};147 unmodified linesreturn opts;}// Resolve display label for a filter valuefunction valueLabel(filterCfg, val) {if (filterCfg.value_labels && filterCfg.value_labels[val]) return filterCfg.value_labels[val];if (typeof val === "string") return val.charAt(0).toUpperCase() + val.slice(1);return String(val);}// Sort models: external (original) first, then optimizedfunction sortModels(models) {return [...models].sort((a, b) => {const aExt = isExternalModel(a) ? 0 : 1;2 unmodified lines});}// ─── Populate page from config ────────────────────────────────────────────────// Hero9 unmodified lineshtml += `<div class="sidebar-item${isActive ? " active" : ""}" data-base-family="${bf}">${bf}</div>`;if (isActive) {const variants = BASE_FAMILIES[bf].variants;const showVariants = variants.length > 1 || (variants.length === 1 && variants[0] !== bf);if (showVariants) {variants.forEach(v => {const isVariantActive = v === filters.variant;38 unmodified linesfiltersBar.appendChild(createFilterGroup(f.label, "filter-" + f.column));});// Metric filter (always last)filtersBar.appendChild(createFilterGroup("METRIC", "filter-metric"));function createFilterGroup(label, id) {const div = document.createElement("div");25 unmodified linesfunction populateFilters() {renderSidebar();// Metric buttonsconst metricEl = document.getElementById("filter-metric");renderBtnGroup(metricEl,config.metrics.map(m => ({ value: m.column, label: m.short || m.column })),filters.metric);metricEl.closest(".filter-group").style.display = (config.metrics.length <= 1 || filters[GROUP_BY] === "all") ? "none" : "";updateDependentFilters();}44 unmodified lines// ─── Event binding ────────────────────────────────────────────────────────────filtersBar.addEventListener("click", e => {const btn = e.target.closest(".btn");if (!btn) return;const group = btn.closest(".btn-group");2 unmodified linesconst key = group.id.replace("filter-", "");filters[key] = btn.dataset.value;render();});// ─── Chart ────────────────────────────��───────────────────────────────────────29 unmodified lines? scenarios: [{ label: "", match: {} }];scenarioList.forEach(scenario => {// Filter rows matching this scenarioconst matchRows = gRows.filter(r =>26 unmodified linesconst chartBlock = document.createElement("div");chartBlock.className = "chart-block";const heading = document.createElement("h3");heading.className = "chart-heading";heading.textContent = groupLabel;chartBlock.appendChild(heading);if (scenario.label) {const sub = document.createElement("p");sub.className = "chart-subtitle";sub.textContent = scenario.label;chartBlock.appendChild(sub);}const wrap = document.createElement("div");161 unmodified lineshtml += `<tr class="${rowClass}">`;colDefs.forEach((c, i) => {const val = r[c.key];const fmCls = i === firstMetricIdx ? ' class="first-metric metric-cell"' : ' class="metric-cell"';if (c.isModel) {const hfUrl = LINK_PREFIX + val;const modelColor = MODEL_COLORS[val]?.border || '#888';html += `<td class="model-cell"><span class="model-dot" style="background:${modelColor}"></span><a href="${hfUrl}" target="_blank" rel="noopener" style="color:${modelColor}">${val}</a></td>`;} else if (oom) {html += `<td${c.isMetric ? fmCls : ''}><span class="oom">OOM</span></td>`;} else if (c.isMetric) {const sg = groupRowKey(r);const isBest = val !== null && val !== undefined && val === bestByGroup[sg]?.[c.key];const display = val === null ? '<span class="oom">OOM</span>' : (typeof val === "number" ? val.toFixed(2) : (val ?? "—"));const modelColor = MODEL_COLORS[r[MODEL_COL]]?.border || '#888';html += `<td${fmCls}>${isBest ? '<strong style="color: white; opacity: 0.7">' + display + '</strong>' : display}</td>`;} else {html += `<td>${val || "—"}</td>`;}35 unmodified lines});}// ─── Accuracy Table ────────────────────────────────────────────────────��──────async function buildAccuracyTable() {24 unmodified linesif (vals.length) best[col] = Math.max(...vals);});// Fixed model columnlet fixedHtml = `<table><thead><tr><th>MODEL</th></tr></thead><tbody>`;rows.forEach(r => {const model = r[modelCol];const modelColor = MODEL_COLORS[model]?.border || '#888';fixedHtml += `<tr><td class="model-cell"><span class="model-dot" style="background:${modelColor}"></span><a href="${LINK_PREFIX}${model}" target="_blank" rel="noopener" style="color:${modelColor}">${model}</a></td></tr>`;});fixedHtml += `</tbody></table>`;// Scrollable metric columnslet scrollHtml = `<table><thead><tr>`;scrollHtml += metricCols.map(h => `<th class="metric-cell">${h}</th>`).join("");scrollHtml += `</tr></thead><tbody>`;rows.forEach(r => {scrollHtml += `<tr>`;metricCols.forEach(col => {const val = parseFloat(r[col]);const isBest = !isNaN(val) && val === best[col];const display = isNaN(val) ? (r[col] || "—") : val.toFixed(2);scrollHtml += `<td class="metric-cell">${isBest ? '<strong style="color: white; opacity: 0.7">' + display + '</strong>' : display}</td>`;});scrollHtml += `</tr>`;});scrollHtml += `</tbody></table>`;const accTitle = familyCfg.accuracy_title || config.accuracy_title || "Accuracy";const accUrl = familyCfg.accuracy_url;const titleHtml = accUrl? `<h3><a href="${accUrl}" target="_blank" rel="noopener" class="acc-title-link">${accTitle}</a></h3>`: `<h3>${accTitle}</h3>`;card.innerHTML = `${titleHtml}<div class="table-split"><div class="table-split-fixed">${fixedHtml}</div><div class="table-split-scroll">${scrollHtml}</div></div>`;section.appendChild(card);}14 unmodified linesbuildChart(filtered);const chartsShown = charts.length > 0;// Toggle metric selector visibilityconst metricEl = document.getElementById("filter-metric");if (metricEl) {metricEl.closest(".filter-group").style.display =(config.metrics.length <= 1 || !chartsShown) ? "none" : "";}buildTables(filtered, chartsShown);buildAccuracyTable();buildExperimentSetup();}103 unmodified lines104105106107108109110111112147 unmodified lines2602612622632642652662672682692702712 unmodified lines2742752762772782792802812822832842852862872882892902912922932942959 unmodified lines30530630730830931031138 unmodified lines35035135235335435535635725 unmodified lines38338438538638738838939039139239339444 unmodified lines4394404414424434444452 unmodified lines44844945045145245345445545645729 unmodified lines48748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052126 unmodified lines548549550551552553554555161 unmodified lines71771871972072172272372472572672772872935 unmodified lines76576676776876977077177277377477577677777877978078178278378478578678778878979079179279324 unmodified lines81881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485514 unmodified lines870871872873874875876877103 unmodified linesreturn !model.startsWith(OPT_ORG + "/");}// ─── Model families & variants ───────────────────────────────────────────────let ALL_MODELS = [];const ALL_FAMILY_KEYS = Object.keys(config.model_families || {});let MODEL_FAMILIES = {};147 unmodified linesreturn opts;}function valueLabel(filterCfg, val) {if (filterCfg.value_labels && filterCfg.value_labels[val]) return filterCfg.value_labels[val];if (typeof val === "string") return val.charAt(0).toUpperCase() + val.slice(1);return String(val);}function sortModels(models) {return [...models].sort((a, b) => {const aExt = isExternalModel(a) ? 0 : 1;2 unmodified lines});}// ─── Shared HTML builders ────────────────────────────────────────────────────function modelCellHtml(model) {const color = MODEL_COLORS[model]?.border || '#888';const url = LINK_PREFIX + model;return `<td class="model-cell"><span class="model-dot" style="background:${color}"></span><a href="${url}" target="_blank" rel="noopener" style="color:${color}">${model}</a></td>`;}function metricCellHtml(val, isBest, extraClass) {const cls = extraClass ? ` class="${extraClass}"` : ' class="metric-cell"';if (val === null || val === undefined) return `<td${cls}><span class="oom">OOM</span></td>`;const display = typeof val === "number" ? val.toFixed(2) : (val || "—");const content = isBest ? `<strong style="color: white; opacity: 0.7">${display}</strong>` : display;return `<td${cls}>${content}</td>`;}// ─── Populate page from config ────────────────────────────────────────────────// Hero9 unmodified lineshtml += `<div class="sidebar-item${isActive ? " active" : ""}" data-base-family="${bf}">${bf}</div>`;if (isActive) {const variants = BASE_FAMILIES[bf].variants;const showVariants = variants.length > 1;if (showVariants) {variants.forEach(v => {const isVariantActive = v === filters.variant;38 unmodified linesfiltersBar.appendChild(createFilterGroup(f.label, "filter-" + f.column));});// Metric filter — rendered inside chart section header, not in filters barconst metricGroup = createFilterGroup("METRIC", "filter-metric");function createFilterGroup(label, id) {const div = document.createElement("div");25 unmodified linesfunction populateFilters() {renderSidebar();// Metric buttons (rendered inside chart header)const metricEl = metricGroup.querySelector(".btn-group");renderBtnGroup(metricEl,config.metrics.map(m => ({ value: m.column, label: m.short || m.column })),filters.metric);updateDependentFilters();}44 unmodified lines// ─── Event binding ────────────────────────────────────────────────────────────function handleFilterClick(e) {const btn = e.target.closest(".btn");if (!btn) return;const group = btn.closest(".btn-group");2 unmodified linesconst key = group.id.replace("filter-", "");filters[key] = btn.dataset.value;render();}metricGroup.addEventListener("click", handleFilterClick);filtersBar.addEventListener("click", handleFilterClick);// ─── Chart ────────────────────────────��───────────────────────────────────────29 unmodified lines? scenarios: [{ label: "", match: {} }];// Insert metric selector into chart section headerconst chartHeader = document.createElement("div");chartHeader.className = "chart-header";const headerLeft = document.createElement("div");headerLeft.className = "chart-header-left";const headerTitle = document.createElement("h3");headerTitle.className = "chart-heading";headerTitle.textContent = groupLabel;headerLeft.appendChild(headerTitle);const headerSubtitle = document.createElement("p");headerSubtitle.className = "chart-subtitle";headerLeft.appendChild(headerSubtitle);chartHeader.appendChild(headerLeft);if (config.metrics.length > 1) {const metricEl = metricGroup.querySelector(".btn-group");renderBtnGroup(metricEl,config.metrics.map(m => ({ value: m.column, label: m.short || m.column })),filters.metric);chartHeader.appendChild(metricGroup);}section.appendChild(chartHeader);scenarioList.forEach(scenario => {// Filter rows matching this scenarioconst matchRows = gRows.filter(r =>26 unmodified linesconst chartBlock = document.createElement("div");chartBlock.className = "chart-block";if (scenario.label) {headerSubtitle.textContent = scenario.label;}const wrap = document.createElement("div");161 unmodified lineshtml += `<tr class="${rowClass}">`;colDefs.forEach((c, i) => {const val = r[c.key];if (c.isModel) {html += modelCellHtml(val);} else if (c.isMetric || oom) {const cls = i === firstMetricIdx ? "first-metric metric-cell" : "metric-cell";const sg = groupRowKey(r);const isBest = !oom && val !== null && val !== undefined && val === bestByGroup[sg]?.[c.key];html += metricCellHtml(oom ? null : val, isBest, cls);} else {html += `<td>${val || "—"}</td>`;}35 unmodified lines});}// ─── Demo Section ─────────────────────────────────────────────────────────────let currentDemoKey = null;async function buildDemo() {const section = document.getElementById("demo-section");const familyCfg = config.model_families?.[activeFamilyKey()] || {};const demoData = familyCfg.demo;const key = activeFamilyKey();if (!demoData) {section.innerHTML = "";currentDemoKey = null;return;}// Skip rebuild if demo is already rendered for this familyif (key === currentDemoKey) return;currentDemoKey = key;section.innerHTML = "";if (typeof renderDemo === "function") {await renderDemo(demoData, section, OPT_ORG, familyCfg.data_file, MODEL_COLORS);}}// ─── Accuracy Table ────────────────────────────────────────────────────��──────async function buildAccuracyTable() {24 unmodified linesif (vals.length) best[col] = Math.max(...vals);});// Build metric cells for a rowfunction accMetricCells(r) {return metricCols.map(col => {const val = parseFloat(r[col]);const isBest = !isNaN(val) && val === best[col];return metricCellHtml(isNaN(val) ? r[col] : val, isBest);}).join("");}const metricHeaders = metricCols.map(h => `<th class="metric-cell">${h}</th>`).join("");// Fixed model column (desktop)let fixedHtml = `<table><thead><tr><th>MODEL</th></tr></thead><tbody>`;rows.forEach(r => { fixedHtml += `<tr>${modelCellHtml(r[modelCol])}</tr>`; });fixedHtml += `</tbody></table>`;// Scrollable metric columns (desktop)let scrollHtml = `<table><thead><tr>${metricHeaders}</tr></thead><tbody>`;rows.forEach(r => { scrollHtml += `<tr>${accMetricCells(r)}</tr>`; });scrollHtml += `</tbody></table>`;// Combined single table (mobile — fully scrollable)let combinedHtml = `<table><thead><tr><th>MODEL</th>${metricHeaders}</tr></thead><tbody>`;rows.forEach(r => { combinedHtml += `<tr>${modelCellHtml(r[modelCol])}${accMetricCells(r)}</tr>`; });combinedHtml += `</tbody></table>`;const accTitle = familyCfg.accuracy_title || config.accuracy_title || "Accuracy";const accUrl = familyCfg.accuracy_url;const titleHtml = accUrl? `<h3><a href="${accUrl}" target="_blank" rel="noopener" class="acc-title-link">${accTitle}</a></h3>`: `<h3>${accTitle}</h3>`;card.innerHTML = `${titleHtml}<div class="table-split"><div class="table-split-fixed">${fixedHtml}</div><div class="table-split-scroll">${scrollHtml}</div></div><div class="table-scroll table-scroll-mobile">${combinedHtml}</div>`;section.appendChild(card);}14 unmodified linesbuildChart(filtered);const chartsShown = charts.length > 0;buildTables(filtered, chartsShown);buildDemo();buildAccuracyTable();buildExperimentSetup();}
140 unmodified lines141142143144145146147140 unmodified lines"default_device": "orin_nano","accuracy_file": "data/acc-Cosmos-Reason2.csv","accuracy_title": "Physical AI Bench (PAI-Bench)","accuracy_url": "https://huggingface.co/spaces/shi-labs/physical-ai-bench-leaderboard"},"Qwen3.5": {"data_file": "data/Qwen3.5.csv",140 unmodified lines141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210140 unmodified lines"default_device": "orin_nano","accuracy_file": "data/acc-Cosmos-Reason2.csv","accuracy_title": "Physical AI Bench (PAI-Bench)","accuracy_url": "https://huggingface.co/spaces/shi-labs/physical-ai-bench-leaderboard","demo": {"title": "Output Examples","benchmark_match": {"type": "video","batch": "1","res": "1280x720","fps": "4"},"clips": [{"video": "https://nvidia-cosmos.github.io/cosmos-cookbook/gallery/vs_assets/clip_1_short.mp4","label": "Automotive Description","prompt": "Describe this video in detail.","inference_setup": "1280x720 · 12 Frames","citation": "Video source: Wagwani, R., Matveiev, N., Bapst, J., & Gu, J. (2025). Autonomous Vehicle Domain Adaptation Gallery. In NVIDIA Cosmos Cookbook.","citation_url": "https://nvidia-cosmos.github.io/cosmos-cookbook/gallery/av_inference.html","outputs": [{"model": "nvidia/Cosmos-Reason2-2B","text": "The video captures a scenic highway winding through a rural landscape, with multiple lanes of traffic flowing smoothly. Vehicles of various colors and models are seen traveling in both directions along the road. On the left side of the highway, a white pickup truck is followed by a red sedan, while on the right side, a white sedan is seen driving away from the camera. Further down the road, additional cars can be observed, including a blue hatchback and a red SUV, all maintaining a steady pace. The highway curves gently to the right, bordered by patches of dry grass and sparse trees, suggesting it might be late autumn or early spring. The sky above is clear and bright, indicating favorable weather conditions. On the right side of the highway, there is a pedestrian crossing marked by a yellow and black striped barrier, ensuring safety for walkers. In the distance, a lone figure can be seen walking along the sidewalk parallel to the road, adding a sense of scale and tranquility to the scene. The overall atmosphere is calm and orderly, with no signs of congestion or accidents."},{"model": "embedl/Cosmos-Reason2-2B-W4A16-Edge2-FlashHead","text": "The video captures a dynamic scene of a multi-laned highway winding through a wooded area. The road is divided into two lanes in each direction, separated by a median strip. Several vehicles are traveling along the highway, including a white sedan in the rightmost lane, a red hatchback in the leftmost lane, and a white pickup truck further ahead in the same lane as the hatchback. Additional cars can be seen further down the road, moving in both directions. The surrounding landscape features bare trees and patches of grass, indicative of a winter or early spring season. The road markings are clearly visible, with dashed white lines marking the edges of the lanes and solid yellow lines delineating the lanes. On the right side of the road, there is a warning sign with black and yellow stripes, indicating caution for drivers. The sky is clear, suggesting favorable weather conditions for driving."}]},{"video": "https://nvidia-cosmos.github.io/cosmos-cookbook/gallery/assets/kitchen_oranges_input.mp4","label": "Instruction Understanding","prompt": "The robot in the video was given the instruction - store all fruit in the big bowl. Has it successfully completed the task specified in the instruction? Explain your answer in detail.","inference_setup": "1280x720 · 32 Frames","citation": "Video source: Wagwani, R., Matveiev, N., Bapst, J., & Gu, J. (2025). Autonomous Vehicle Domain Adaptation Gallery. In NVIDIA Cosmos Cookbook.","citation_url": "https://nvidia-cosmos.github.io/cosmos-cookbook/gallery/av_inference.html","outputs": [{"model": "nvidia/Cosmos-Reason2-2B","text": "No, the robot has not successfully completed the task. The instruction was to store all fruit in the big bowl, but the robot only moved one fruit into the bowl. There are still other fruits on the countertop that have not been moved into the bowl. Additionally, the robot's actions appear somewhat clumsy and inefficient."},{"model": "embedl/Cosmos-Reason2-2B-W4A16-Edge2-FlashHead","text": "No, the robot has not successfully completed the task. The instruction was to store all fruit in the big bowl, but the video shows that there are still other fruits on the plate and counter. Additionally, the robot's actions involve moving objects around rather than storing them in the bowl."}]},{"video": "https://huggingface.co/datasets/embedl/documentation-images/resolve/main/Edge-Inference-Benchmarks/aerial_drone_view.mp4","label": "Search and Rescue","prompt": "Mission: Inspect the drone video for any people or animals that clearly need rescue. Answer format: 1. Rescue needed: Y/N; 2. Description: Describe the scene in detail, explain why rescue is or is not needed.","inference_setup": "1280x720 · 24 Frames","outputs": [{"model": "nvidia/Cosmos-Reason2-2B","text": "1. Rescue needed: N 2. The scene shows a group of people gathered around a table on a grassy field near a road, with a vehicle parked nearby. Individuals appear to be engaged in an activity, possibly a meeting or briefing, with some standing and others seated. There are no visible signs of distress, emergencies, or animals requiring rescue. The environment is calm, and the group seems to be cooperating peacefully."},{"model": "embedl/Cosmos-Reason2-2B-W4A16-Edge2-FlashHead","text": "1. Rescue needed: N; 2. The video shows an aerial view of a serene landscape with a lake, green fields, and a road with a few vehicles and people. There are no visible emergencies, accidents, or animals in distress. The scene appears peaceful and undisturbed."}]}]}},"Qwen3.5": {"data_file": "data/Qwen3.5.csv",
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249/* ── Output Example Demo ──────────────────────────────── */.demo-section { margin: 0 0 var(--space-xl);}
/* ── Toggle button ───────────────────────────────────── */.demo-toggle { display: inline-flex; align-items: center; gap: var(--space-sm); background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-family: inherit; font-size: var(--text-md); font-weight: 500; padding: var(--space-sm) var(--space-md); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;}
.demo-toggle:hover { color: var(--text); background: var(--btn-hover-bg);}
.demo-toggle.active { color: var(--teal); border-color: var(--btn-active-border); background: var(--btn-active-bg);}
.demo-toggle-arrow { display: inline-block; transition: transform 0.2s; font-size: var(--text-sm);}
.demo-toggle.active .demo-toggle-arrow { transform: rotate(90deg);}
/* ── Collapsible content ─────────────────────────────── */.demo-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease;}
.demo-content.open { grid-template-rows: 1fr;}
.demo-content-inner { overflow: hidden;}
/* ── Card ────────────────────────────────────────────── */.demo-card { border-radius: 12px; border: 1px solid var(--border); padding: var(--space-lg); margin-top: var(--space-md); position: relative; overflow: hidden;}
/* ── Title row ──────────────────────────────────────── */.demo-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-sm);}
.demo-title-row h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: 0;}
.demo-title-left { display: flex; align-items: baseline; gap: var(--space-md);}
.demo-clip-setup { font-size: var(--text-md); font-weight: 400; color: var(--text-dim);}
/* ── Device selector ────────────────────────────────── */.demo-device-selector { display: flex; justify-content: center; margin-bottom: var(--space-md);}
/* ── Video with overlay arrows ───────────────────────── */.demo-video-wrap { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: var(--space-sm);}
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease;}
.demo-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); border: none; border-radius: 50%; color: rgba(255, 255, 255, 0.8); font-size: var(--text-sm); cursor: pointer; transition: background 0.15s, color 0.15s; font-family: inherit;}
.demo-arrow-left { left: var(--space-md);}
.demo-arrow-right { right: var(--space-md);}
.demo-arrow:hover:not(:disabled) { background: rgba(0, 0, 0, 0.6); color: #fff;}
.demo-arrow:disabled { opacity: 0.25; cursor: default;}
/* ── Card content ────────────────────────────────────── */.demo-prompt { font-size: var(--text-md); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-md);}
.demo-prompt strong { color: var(--text);}
.demo-citation { font-size: var(--text-sm); color: var(--text-dim); margin-top: var(--space-md); line-height: 1.5;}
.demo-citation a { color: var(--text-dim); text-decoration: underline;}
.demo-citation a:hover { color: var(--text-muted);}
/* ── Side-by-side outputs ────────────────────────────── */.demo-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);}
.demo-output { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: var(--space-md); line-height: 1.6; font-size: var(--text-md); color: var(--text);}
.demo-output-model { display: block; font-size: var(--text-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: var(--space-sm);}
.demo-output-tps { display: block; font-size: var(--text-md); font-weight: 700; color: var(--text-dim); margin-bottom: var(--space-sm);}
.demo-output-tps.oom { color: var(--red);}
.demo-output-text { color: var(--text-muted); font-size: var(--text-md);}
/* ── Responsive ──────────────────────────────────────── */@media (max-width: 768px) { .demo-outputs { grid-template-columns: 1fr; }
.demo-title-row { flex-direction: column; align-items: flex-start; }
.demo-arrow { width: 28px; height: 28px; font-size: var(--text-sm); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448// ── Output Example Demo renderer ─────────────────────────────────────────────// Supports multiple clips with left/right arrow navigation, device selector,// and streaming text effect at real TPS speed.
const DEMO_DEVICE_LABELS = { orin_nano_super: "Jetson Orin Nano Super", agx_orin: "Jetson AGX Orin", agx_thor: "Jetson AGX Thor",};
const DEMO_DEFAULT_DEVICE = "agx_orin";const DEMO_TOKENS_PER_WORD = 1.33;
// ── CSV parser (minimal, demo-only) ─────────────────────────────────────────
function demoParseCsv(text) { const lines = text.replace(/\r/g, "").trim().split("\n"); const headers = lines[0].split(","); return lines.slice(1).map(line => { const vals = line.split(","); const row = {}; headers.forEach((h, i) => { row[h] = (vals[i] || "").trim(); }); return row; });}
// ── Look up TPS from benchmark data ─────────────────────────────────────────
function demoLookupTps(csvRows, modelName, device, matchCriteria) { const row = csvRows.find(r => r.model === modelName && r.device === device && Object.entries(matchCriteria).every(([col, val]) => r[col] === val) ); if (row) { if (!row.tps || row.tps.toUpperCase() === "OOM") return { found: true, tps: null }; return { found: true, tps: parseFloat(row.tps) }; } const oomRow = csvRows.find(r => r.model === modelName && r.device === device && r.tps && r.tps.toUpperCase() === "OOM" ); if (oomRow) return { found: true, tps: null }; return { found: false, tps: null };}
// ── Determine available devices from benchmark data ─────────────────────────
function demoAvailableDevices(csvRows, models, matchCriteria) { const deviceSet = new Set(); csvRows.forEach(r => { if (!models.includes(r.model)) return; if (!Object.entries(matchCriteria).every(([col, val]) => r[col] === val)) return; if (r.tps && r.tps.toUpperCase() !== "OOM") deviceSet.add(r.device); }); return Object.keys(DEMO_DEVICE_LABELS).filter(d => deviceSet.has(d));}
// ── Streaming text animation ────────────────────────────────────────────────
function demoStreamText(element, fullText, tps) { const handle = { _tid: null, cancel() { clearTimeout(this._tid); } }; element.textContent = ""; if (!tps || tps <= 0) { element.textContent = fullText; return handle; } const words = fullText.split(/(\s+)/); const delayMs = 1000 / (tps / DEMO_TOKENS_PER_WORD); let idx = 0;
function tick() { if (idx < words.length) { element.textContent += words[idx]; idx++; handle._tid = setTimeout(tick, delayMs); } } tick(); return handle;}
// ── Pre-calculate height for an output box to prevent layout shift ──────────
function demoPreCalcHeight(box, textEl, fullText) { textEl.textContent = fullText; const h = box.offsetHeight; box.style.minHeight = h + "px"; textEl.textContent = "";}
// ── Main render function ────────────────────────────────────────────────────
async function renderDemo(data, container, optimizedOrg, dataFile, modelColors) { if (!data) return;
// Normalise: support both old single-clip format and new clips array let clips = data.clips; if (!clips) { clips = [{ video: data.video, label: data.title, prompt: data.prompt, inference_setup: data.inference_setup, citation: data.citation, citation_url: data.citation_url, outputs: data.outputs, }]; } if (!clips.length) return;
const matchCriteria = data.benchmark_match || {};
// Collect all model names across clips const allModelNames = [...new Set(clips.flatMap(c => (c.outputs || []).map(o => o.model)))];
// Load benchmark CSV let csvRows = []; if (dataFile) { try { const csvResp = await fetch(dataFile); if (csvResp.ok) csvRows = demoParseCsv(await csvResp.text()); } catch { /* proceed without */ } }
const devices = csvRows.length ? demoAvailableDevices(csvRows, allModelNames, matchCriteria) : [];
let selectedDevice = devices.includes(DEMO_DEFAULT_DEVICE) ? DEMO_DEFAULT_DEVICE : (devices[0] || DEMO_DEFAULT_DEVICE);
let currentClipIdx = 0; let activeStreams = [];
// ── Build DOM skeleton ──────────────────────────────────────────────
const section = document.createElement("div"); section.className = "demo-section";
// Toggle button const toggle = document.createElement("button"); toggle.className = "demo-toggle"; toggle.innerHTML = '<span class="demo-toggle-arrow">▶</span> Show Demo';
// Collapsible wrapper const content = document.createElement("div"); content.className = "demo-content"; const inner = document.createElement("div"); inner.className = "demo-content-inner";
const card = document.createElement("div"); card.className = "demo-card";
// Title row: h3 + device selector const titleRow = document.createElement("div"); titleRow.className = "demo-title-row";
const titleLeft = document.createElement("div"); titleLeft.className = "demo-title-left";
const h3 = document.createElement("h3"); titleLeft.appendChild(h3);
const clipSetup = document.createElement("span"); clipSetup.className = "demo-clip-setup"; titleLeft.appendChild(clipSetup);
titleRow.appendChild(titleLeft);
const deviceSelector = document.createElement("div"); deviceSelector.className = "demo-device-selector";
if (devices.length > 1) { const deviceGroup = document.createElement("div"); deviceGroup.className = "btn-group";
function renderDeviceButtons() { deviceGroup.innerHTML = ""; devices.forEach(dev => { const btn = document.createElement("button"); btn.className = "btn" + (dev === selectedDevice ? " active" : ""); btn.dataset.value = dev; btn.textContent = DEMO_DEVICE_LABELS[dev] || dev; deviceGroup.appendChild(btn); }); } renderDeviceButtons();
deviceGroup.addEventListener("click", e => { const btn = e.target.closest(".btn"); if (!btn) return; const newDevice = btn.dataset.value; if (newDevice === selectedDevice) return; selectedDevice = newDevice; renderDeviceButtons(); renderOutputs(); });
deviceSelector.appendChild(deviceGroup); }
card.appendChild(titleRow);
// Video with overlay arrows const videoWrap = document.createElement("div"); videoWrap.className = "demo-video-wrap";
function makeVideoEl() { const v = document.createElement("video"); v.loop = true; v.muted = true; v.playsInline = true; v.preload = "auto"; v.className = "demo-video"; return v; }
let videoA = makeVideoEl(); let videoB = makeVideoEl(); videoB.style.opacity = "0"; videoWrap.appendChild(videoA); videoWrap.appendChild(videoB);
const arrowLeft = document.createElement("button"); arrowLeft.className = "demo-arrow demo-arrow-left"; arrowLeft.innerHTML = "◀"; arrowLeft.setAttribute("aria-label", "Previous clip");
const arrowRight = document.createElement("button"); arrowRight.className = "demo-arrow demo-arrow-right"; arrowRight.innerHTML = "▶"; arrowRight.setAttribute("aria-label", "Next clip");
videoWrap.appendChild(arrowLeft); videoWrap.appendChild(arrowRight); card.appendChild(videoWrap);
let isFirstClip = true;
// Device selector (centered under video) card.appendChild(deviceSelector);
// Prompt (full width) const promptEl = document.createElement("div"); promptEl.className = "demo-prompt"; card.appendChild(promptEl);
// Outputs grid const grid = document.createElement("div"); grid.className = "demo-outputs"; card.appendChild(grid);
// Citation const citeEl = document.createElement("p"); citeEl.className = "demo-citation"; card.appendChild(citeEl);
// ── Arrow visibility ────────────────────────────────────────────────
function updateArrows() { const showArrows = clips.length > 1; arrowLeft.style.display = showArrows ? "" : "none"; arrowRight.style.display = showArrows ? "" : "none"; arrowLeft.disabled = false; arrowRight.disabled = false; }
arrowLeft.addEventListener("click", () => { currentClipIdx = (currentClipIdx - 1 + clips.length) % clips.length; renderClip(); }); arrowRight.addEventListener("click", () => { currentClipIdx = (currentClipIdx + 1) % clips.length; renderClip(); });
// ── Render current clip ───────────────────────────────────────────��─
function cancelStreams() { activeStreams.forEach(s => s.cancel()); activeStreams = []; }
function renderOutputs() { cancelStreams(); grid.innerHTML = ""; const clip = clips[currentClipIdx]; const outputs = clip.outputs || [];
outputs.forEach(out => { const color = modelColors && modelColors[out.model]; const borderColor = color ? color.border : null; const box = document.createElement("div"); box.className = "demo-output"; if (borderColor) box.style.borderColor = borderColor;
const modelEl = document.createElement("span"); modelEl.className = "demo-output-model"; modelEl.textContent = out.model; if (borderColor) modelEl.style.color = borderColor; box.appendChild(modelEl);
const tpsEl = document.createElement("span"); tpsEl.className = "demo-output-tps"; if (borderColor) tpsEl.style.color = borderColor; box.appendChild(tpsEl);
const textEl = document.createElement("span"); textEl.className = "demo-output-text"; box.appendChild(textEl);
grid.appendChild(box);
// Look up TPS let tps = null; if (csvRows.length) { const lookup = demoLookupTps(csvRows, out.model, selectedDevice, matchCriteria); tps = lookup.found ? lookup.tps : (out.tps || null); } else { tps = out.tps || null; }
if (tps != null) { tpsEl.textContent = tps.toFixed(2) + " Tokens / sec"; tpsEl.classList.remove("oom"); textEl.style.display = ""; demoPreCalcHeight(box, textEl, out.text); const handle = demoStreamText(textEl, out.text, tps); activeStreams.push(handle); } else { tpsEl.textContent = "OOM"; tpsEl.classList.add("oom"); tpsEl.style.color = ""; textEl.style.display = "none"; box.style.minHeight = ""; } }); }
function renderClip() { const clip = clips[currentClipIdx];
// Title: clip label + setup details h3.textContent = clip.label || data.title || "Output Examples"; clipSetup.textContent = clip.inference_setup || ""; clipSetup.style.display = clip.inference_setup ? "" : "none";
// Video — crossfade: keep old visible, load new behind, fade when frame ready if (clip.video) { videoWrap.style.display = ""; if (isFirstClip) { // First clip: just load directly into videoA videoA.src = clip.video; videoA.style.opacity = "1"; videoA.load(); videoA.addEventListener("loadeddata", () => videoA.play(), { once: true }); isFirstClip = false; } else { // Crossfade: videoA is the old (visible), videoB gets the new source videoB.src = clip.video; videoB.style.opacity = "0"; videoB.load();
videoB.addEventListener("loadeddata", function onLoaded() { videoB.removeEventListener("loadeddata", onLoaded); videoB.play();
// Wait for actual frame render before fading const startFade = () => { videoB.style.opacity = "1"; videoA.style.opacity = "0"; // After transition, pause old and swap roles setTimeout(() => { videoA.pause(); videoA.removeAttribute("src"); videoA.load(); // Swap roles const tmp = videoA; videoA = videoB; videoB = tmp; }, 300); };
if (videoB.requestVideoFrameCallback) { videoB.requestVideoFrameCallback(startFade); } else { startFade(); } }); } } else { videoWrap.style.display = "none"; }
// Prompt if (clip.prompt) { promptEl.innerHTML = "<strong>Prompt:</strong> " + clip.prompt.replace(/\n/g, "<br>"); promptEl.style.display = ""; } else { promptEl.style.display = "none"; }
// Citation if (clip.citation) { if (clip.citation_url) { citeEl.innerHTML = clip.citation.replace( /Autonomous Vehicle Domain Adaptation Gallery/, `<a href="${clip.citation_url}" target="_blank" rel="noopener">Autonomous Vehicle Domain Adaptation Gallery</a>` ); } else { citeEl.textContent = clip.citation; } citeEl.style.display = ""; } else { citeEl.style.display = "none"; }
// Outputs renderOutputs();
updateArrows(); }
// ── Toggle open/close ───────────────────────────────────────────────
toggle.addEventListener("click", () => { const isOpen = content.classList.toggle("open"); toggle.classList.toggle("active", isOpen); toggle.innerHTML = isOpen ? '<span class="demo-toggle-arrow">▶</span> Hide Demo' : '<span class="demo-toggle-arrow">▶</span> Show Demo';
if (isOpen) { renderClip(); } else { cancelStreams(); } });
inner.appendChild(card); content.appendChild(inner); section.appendChild(toggle); section.appendChild(content); container.appendChild(section);}3 unmodified lines4567891020 unmodified lines31323334353651 unmodified lines8889909192933 unmodified lines<meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Edge Inference Benchmarks — Embedl</title><link rel="stylesheet" href="style.css"/><script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script></head><body>20 unmodified lines<!-- Accuracy Table --><section id="accuracy-section"></section><!-- Filters --><section class="filters-bar" id="filters-bar"></section>51 unmodified lines</div></footer><script src="app.js"></script></body></html>3 unmodified lines45678910111220 unmodified lines33343536373839404151 unmodified lines939495969798993 unmodified lines<meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Edge Inference Benchmarks — Embedl</title><link rel="stylesheet" href="palette.css"/><link rel="stylesheet" href="style.css"/><link rel="stylesheet" href="demo/demo.css"/><script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script></head><body>20 unmodified lines<!-- Accuracy Table --><section id="accuracy-section"></section><!-- Demo Section --><section id="demo-section"></section><!-- Filters --><section class="filters-bar" id="filters-bar"></section>51 unmodified lines</div></footer><script src="demo/demo.js"></script><script src="app.js"></script></body></html>
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374/* ── Palette & Design Tokens ──────────────────────────── */:root { /* Colors */ --bg: #0B1527; --bg-opaque: rgba(11, 21, 39, 0.45); --teal: #58b1c3; --green: #6fcf97; --red: #ff4d6d; --pink: #ff6ec7; --purple: #9b5de5; --blue: #007F9E; --neutral: #98A6AF; --text: #e8e8e8; --text-muted: #8899aa; --text-dim: #5a6a7a; --border: rgba(255, 255, 255, 0.15); --btn-hover-bg: rgba(255, 255, 255, 0.03); --btn-active-bg: rgba(88, 177, 195, 0.12); --btn-active-border: rgba(88, 177, 195, 0.3); --row-hover-bg: rgba(255, 255, 255, 0.02); --row-border: rgba(255, 255, 255, 0.03); --code-bg: rgba(88, 177, 195, 0.1); --tooltip-bg: #2c3e50; --tooltip-text: #f1f1f1; --tooltip-body: #d9d9d9;
/* Typography scale */ --text-sm: 0.75rem; /* secondary text, small UI */ --text-md: 1rem; /* body text, subtitles, descriptions */ --text-lg: 1.25rem; /* section headings */
/* Spacing scale */ --space-xs: 0.25rem; /* tiny gaps: legend rows, label margins */ --space-sm: 0.5rem; /* small: icon gaps, dot gaps, table cell vertical */ --space-ms: 0.75rem; /* medium-small: table cell horizontal, sidebar padding */ --space-md: 1rem; /* standard: flex gaps, element margins */ --space-lg: 1.5rem; /* section internal spacing */ --space-xl: 2rem; /* major section padding */ --space-2xl: 3rem; /* large section breaks */}
/* ── Reset & Base Typography ─────────────────────────── */*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0;}
html { font-size: 20px; background: radial-gradient( 60rem 40rem at 50% -45px, rgba(0, 226, 213, 0.35), rgba(18, 208, 254, 0.25) 30%, transparent 70% ), var(--bg);}
body { font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative;}
code { background: var(--code-bg); color: var(--teal); padding: 0.15em 0.45em; border-radius: 4px; font-size: 0.95em;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263641 unmodified line666768697071722 unmodified lines757677787980812 unmodified lines848586878889903 unmodified lines94959697989910010113 unmodified lines11511611711811912012112217 unmodified lines1401411421431441451461471481491501511521531541 unmodified line1561571581591601611621631641651661671681691701712 unmodified lines1741751761771781791803 unmodified lines1841851861871881891901911 unmodified line1931941951961971981992002012022032042052062072082092102114 unmodified lines21621721821922022122222322425 unmodified lines2502512522532542552562572582592602612622632642652662672682692702 unmodified lines27327427527627727827928028128228328428528628724 unmodified lines31231331431531631731831932032132232332432532632732832933033133233315 unmodified lines34935035135235335435516 unmodified lines37237337437537637737826 unmodified lines4054064074084094104114124134144156 unmodified lines4224234244254264274284294304314324334344354363 unmodified lines4404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754763 unmodified lines4804814824834844854862 unmodified lines4894904914924934944954964974984995005017 unmodified lines5095105115125135145158 unmodified lines5245255265275285295305 unmodified lines5365375385395405415425435445455465475485495505515525535545554 unmodified lines5605615625635645655665671 unmodified line569570571572573574575576577578579580581582583584585586587/* ── Palette ──────────────────────────────────────────── */:root {--bg: #0B1527;--bg-opaque: rgba(11, 21, 39, 0.45);--bg-surface: #1a1a2e;--teal: #58b1c3;--green: #6fcf97;--red: #ff4d6d;--pink: #ff6ec7;--purple: #9b5de5;--blue: #007F9E;--neutral: #98A6AF;--text: #e8e8e8;--text-muted: #8899aa;--text-dim: #5a6a7a;--border: rgba(255, 255, 255, 0.15);--btn-hover-bg: rgba(255, 255, 255, 0.03);--btn-active-bg: rgba(88, 177, 195, 0.12);--btn-active-border: rgba(88, 177, 195, 0.3);--sidebar-active-bg: rgba(88, 177, 195, 0.04);--row-hover-bg: rgba(255, 255, 255, 0.02);--row-border: rgba(255, 255, 255, 0.03);--code-bg: rgba(88, 177, 195, 0.1);--tooltip-bg: #2c3e50;--tooltip-text: #f1f1f1;--tooltip-body: #d9d9d9;}/* ── Reset & Base ─────────────────────────────────────── */*, *::before, *::after {box-sizing: border-box;margin: 0;padding: 0;}html {font-size: 16px;background: radial-gradient(60rem 40rem at 50% -45px,rgba(0, 226, 213, 0.35),rgba(18, 208, 254, 0.25) 30%,transparent 70%), var(--bg);}body {font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;color: var(--text);line-height: 1.6;-webkit-font-smoothing: antialiased;position: relative;}code {background: var(--code-bg);color: var(--teal);padding: 0.15em 0.45em;border-radius: 4px;font-size: 0.95em;}/* ── Page Layout ─────────────────────────────────────── */.page {position: relative;1 unmodified linedisplay: flex;flex-direction: row;min-height: 100vh;max-width: 1440px;margin: 0 auto;}2 unmodified lineswidth: 280px;max-width: 300px;flex-shrink: 0;padding: 2rem 0;position: sticky;top: 0;height: 100vh;2 unmodified lines.sidebar-logo {display: block;padding: 0 1.25rem 3.25rem;}.sidebar-nav {3 unmodified lines.sidebar-item {display: block;padding: 0.5rem 1.25rem;font-size: 1.25rem;font-weight: 400;color: var(--text-dim);text-decoration: none;13 unmodified lines.sidebar-variant {display: block;padding: 0.35rem 1.25rem 0.35rem 2.25rem;font-size: 1.1rem;font-weight: 400;color: var(--text-dim);cursor: pointer;17 unmodified lines}.main-inner {max-width: 1100px;width: 100%;padding: 0 2rem 2rem;}/* ── Hero ────────────────────────────────────────────── */.hero {position: relative;padding: 2rem 0 2.5rem;}.hero-badge {1 unmodified linepadding: 1px;border-radius: 999px;background: linear-gradient(90deg, var(--teal), var(--blue));margin-bottom: 1rem;}.hero-badge span {display: inline-block;padding: 0.35rem 1rem;border-radius: 999px;background: var(--bg-opaque);color: var(--teal);font-size: 1rem;font-weight: 600;letter-spacing: 0.03em;text-transform: uppercase;2 unmodified lines.hero h1 {font-size: clamp(1.8rem, 3.5vw, 3.0rem);font-weight: 700;margin-bottom: 0.5rem;letter-spacing: -0.02em;}3 unmodified lines.hero-sub {color: var(--text-muted);font-size: 1.1rem;max-width: 620px;line-height: 1.6;}1 unmodified line.filters-bar {display: flex;flex-wrap: wrap;gap: 1.25rem;padding: 1rem 0;top: 0;z-index: 10;}.filter-group label {display: block;font-size: 0.8rem;font-weight: 600;letter-spacing: 0.08em;color: var(--text-dim);margin-bottom: 0.25rem;}.btn-group {4 unmodified linesbackground: transparent;border: 1px solid var(--border);color: var(--text-muted);font-size: 1rem;font-weight: 400;padding: 0.45rem 1rem;cursor: pointer;transition: all 0.15s;}25 unmodified lines}/* ── Chart ───────────────────────────────────────────── */.chart-block {margin: 1.5rem 0;}.chart-heading {font-size: 1.25rem;font-weight: 600;color: var(--text);margin-bottom: 0.25rem;}.chart-subtitle {font-size: 1rem;color: var(--text-muted);margin-bottom: 0.75rem;}.chart-wrap {2 unmodified lines/* ── Tables ──────────────────────────────────────────── */.table-card {margin: 1.5rem 0 2rem;}.table-card h3 {font-size: 1.15rem;font-weight: 600;color: var(--text);margin-bottom: 0.5rem;padding-bottom: 0.5rem;border-bottom: 1px solid var(--border);}24 unmodified linestable {width: 100%;border-collapse: collapse;font-size: 1rem;}thead th {text-align: left;font-weight: 600;font-size: 0.8rem;letter-spacing: 0.05em;color: var(--text-dim);padding: 0.5rem 0.75rem;border-bottom: 1px solid var(--border);white-space: nowrap;}tbody td {padding: 0.5rem 0.75rem;border-bottom: 1px solid var(--row-border);white-space: nowrap;color: var(--text-muted);15 unmodified lines.model-cell {display: flex;align-items: center;gap: 0.5rem;font-weight: 500;color: var(--text);}16 unmodified lines}th.first-metric, td.first-metric {padding-left: 2.5rem;}.oom {26 unmodified linesscrollbar-color: var(--text-dim) var(--border);scrollbar-width: thin;}#accuracy-section:empty {margin-bottom: 0;}#accuracy-section {margin-bottom: 2.5rem;}.acc-title-link {6 unmodified lines}.legend-section {margin: 2rem 0;padding-top: 1.5rem;}.legend-grid {display: grid;grid-template-columns: 1fr;gap: 0.25rem;font-size: 0.8rem;color: var(--text-dim);}3 unmodified lines}.experiment-setup {margin-top: 0.75rem;font-size: 0.95rem;color: var(--text-dim);font-style: italic;line-height: 1.6;}.experiment-setup p {margin-bottom: 0.25rem;}/* ── Footer ──────────────────────────────────────────── */.footer {padding: 2.5rem 0;margin-top: 2rem;}.footer-inner {max-width: 1440px;margin: 0 auto;padding: 0 2rem;}.footer-grid {display: flex;gap: 3rem;flex-wrap: wrap;}.footer-col {font-size: 1rem;color: var(--text-dim);line-height: 1.7;}3 unmodified lines}.footer-col-title {font-size: 0.85rem;font-weight: 600;text-transform: uppercase;letter-spacing: 0.08em;2 unmodified lines.footer-logo-img {display: block;margin-bottom: 0.5rem;}.footer-logo {font-size: 1rem;color: var(--text-muted);margin-bottom: 1.2rem;}.footer-logo a {7 unmodified lines.footer-social {display: flex;gap: 0.75rem;}.footer-social a {8 unmodified lines}/* ── Responsive ──────────────────────────────────────── */@media (max-width: 768px) {.page {flex-direction: column;}5 unmodified linesposition: static;border-right: none;border-bottom: 1px solid var(--border);padding: 0.75rem 0;}.sidebar-nav {flex-direction: row;flex-wrap: wrap;padding: 0 0.75rem;}.sidebar-item {border-left: none;border-bottom: 2px solid transparent;padding: 0.4rem 0.75rem;font-size: 0.9rem;}.sidebar-item.active {4 unmodified lines.sidebar-variant {border-left: none;border-bottom: 2px solid transparent;padding: 0.3rem 0.75rem;font-size: 0.8rem;}.sidebar-variant.active {1 unmodified line}.main-inner {padding: 0 1rem 2rem;}.filters-bar {gap: 0.75rem;}.btn {font-size: 0.85rem;padding: 0.35rem 0.7rem;}.chart-wrap {height: 260px;}}1231 unmodified line5678910112 unmodified lines141516171819202 unmodified lines232425262728293 unmodified lines333435363738394013 unmodified lines545556575859606117 unmodified lines79808182838485868788899091921 unmodified line9495969798991001011021031041051061071081092 unmodified lines1121131141151161171183 unmodified lines1221231241251261271281 unmodified line1301311321331341351361371381391401411421431441451461471484 unmodified lines15315415515615715815916016125 unmodified lines1871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482 unmodified lines25125225325425525625725825926026126226326426524 unmodified lines29029129229329429529629729829930030130230330430530630730830931031115 unmodified lines32732832933033133233316 unmodified lines35035135235335435535626 unmodified lines3833843853863873883893903913923933943953963976 unmodified lines4044054064074084094104114124134144154164174183 unmodified lines4224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574583 unmodified lines4624634644654664674682 unmodified lines4714724734744754764774784794804814824837 unmodified lines4914924934944954964978 unmodified lines5065075085095105115125 unmodified lines5185195205215225235245255265275285295305315325335345355365374 unmodified lines5425435445455465475485491 unmodified line551552553554555556557558559560561562563564565/* ── Page Layout ─────────────────────────────────────── */.page {position: relative;1 unmodified linedisplay: flex;flex-direction: row;min-height: 100vh;max-width: 1640px;margin: 0 auto;}2 unmodified lineswidth: 280px;max-width: 300px;flex-shrink: 0;padding: var(--space-xl) 0;position: sticky;top: 0;height: 100vh;2 unmodified lines.sidebar-logo {display: block;padding: 0 var(--space-md) var(--space-2xl);}.sidebar-nav {3 unmodified lines.sidebar-item {display: block;padding: var(--space-sm) var(--space-md);font-size: var(--text-lg);font-weight: 400;color: var(--text-dim);text-decoration: none;13 unmodified lines.sidebar-variant {display: block;padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-xl);font-size: var(--text-md);font-weight: 400;color: var(--text-dim);cursor: pointer;17 unmodified lines}.main-inner {width: 100%;padding: 0 var(--space-xl) var(--space-xl);}/* ── Hero ────────────────────────────────────────────── */.hero {position: relative;padding: var(--space-xl) 0;}.hero-badge {1 unmodified linepadding: 1px;border-radius: 999px;background: linear-gradient(90deg, var(--teal), var(--blue));margin-bottom: var(--space-md);}.hero-badge span {display: inline-block;padding: var(--space-sm) var(--space-md);border-radius: 999px;background: var(--bg-opaque);color: var(--teal);font-size: var(--text-md);font-weight: 600;letter-spacing: 0.03em;text-transform: uppercase;2 unmodified lines.hero h1 {font-size: clamp(1.8rem, 3.5vw, 3.0rem);font-weight: 700;margin-bottom: var(--space-sm);letter-spacing: -0.02em;}3 unmodified lines.hero-sub {color: var(--text-muted);font-size: var(--text-md);line-height: 1.6;}1 unmodified line.filters-bar {display: flex;flex-wrap: wrap;gap: var(--space-md);padding: var(--space-md) 0 var(--space-2xl);top: 0;z-index: 10;}.filter-group label {display: block;font-size: var(--text-sm);font-weight: 600;letter-spacing: 0.08em;color: var(--text-dim);margin-bottom: var(--space-xs);}.btn-group {4 unmodified linesbackground: transparent;border: 1px solid var(--border);color: var(--text-muted);font-size: var(--text-md);font-weight: 400;padding: var(--space-sm) var(--space-md);cursor: pointer;transition: all 0.15s;}25 unmodified lines}/* ── Chart ───────────────────────────────────────────── */.chart-header {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: var(--space-sm) var(--space-md);margin-bottom: var(--space-xs);}.chart-header-left {display: flex;align-items: baseline;gap: var(--space-md);}.chart-header .filter-group {margin: 0;}.chart-header .filter-group label {display: none;}.chart-header .btn,.demo-device-selector .btn {border: 0;background: transparent;}.chart-header .btn:hover,.demo-device-selector .btn:hover {color: var(--text);background: transparent;}.chart-header .btn.active,.demo-device-selector .btn.active {background: transparent;border-color: var(--btn-active-border);}.chart-block {margin: var(--space-lg) 0;}.chart-heading {font-size: var(--text-lg);font-weight: 600;color: var(--text);margin-bottom: 0;}.chart-subtitle {font-size: var(--text-md);color: var(--text-muted);margin-bottom: 0;}.chart-wrap {2 unmodified lines/* ── Tables ──────────────────────────────────────────── */.table-card {margin: var(--space-lg) 0;}.table-card h3 {font-size: var(--text-md);font-weight: 600;color: var(--text);margin-bottom: var(--space-sm);padding-bottom: var(--space-sm);border-bottom: 1px solid var(--border);}24 unmodified linestable {width: 100%;border-collapse: collapse;font-size: var(--text-md);}thead th {text-align: left;font-weight: 600;font-size: var(--text-sm);letter-spacing: 0.05em;color: var(--text-dim);padding: var(--space-sm) var(--space-ms);border-bottom: 1px solid var(--border);white-space: nowrap;}tbody td {padding: var(--space-sm) var(--space-ms);border-bottom: 1px solid var(--row-border);white-space: nowrap;color: var(--text-muted);15 unmodified lines.model-cell {display: flex;align-items: center;gap: var(--space-sm);font-weight: 500;color: var(--text);}16 unmodified lines}th.first-metric, td.first-metric {padding-left: var(--space-xl);}.oom {26 unmodified linesscrollbar-color: var(--text-dim) var(--border);scrollbar-width: thin;}.table-scroll-mobile {display: none;}#accuracy-section:empty {margin-bottom: 0;}#accuracy-section {margin-bottom: var(--space-xl);}.acc-title-link {6 unmodified lines}.legend-section {margin: var(--space-xl) 0;padding-top: var(--space-lg);}.legend-grid {display: grid;grid-template-columns: 1fr;gap: var(--space-xs);font-size: var(--text-sm);color: var(--text-dim);}3 unmodified lines}.experiment-setup {margin-top: var(--space-md);font-size: var(--text-md);color: var(--text-dim);font-style: italic;line-height: 1.6;}.experiment-setup p {margin-bottom: var(--space-xs);}/* ── Footer ──────────────────────────────────────────── */.footer {padding: var(--space-xl) 0;margin-top: var(--space-xl);}.footer-inner {max-width: 1640px;margin: 0 auto;padding: 0 var(--space-xl);}.footer-grid {display: flex;gap: var(--space-2xl);flex-wrap: wrap;}.footer-col {font-size: var(--text-md);color: var(--text-dim);line-height: 1.7;}3 unmodified lines}.footer-col-title {font-size: var(--text-sm);font-weight: 600;text-transform: uppercase;letter-spacing: 0.08em;2 unmodified lines.footer-logo-img {display: block;margin-bottom: var(--space-sm);}.footer-logo {font-size: var(--text-md);color: var(--text-muted);margin-bottom: var(--space-md);}.footer-logo a {7 unmodified lines.footer-social {display: flex;gap: var(--space-md);}.footer-social a {8 unmodified lines}/* ── Responsive ──────────────────────────────────────── */@media (max-width: 900px) {.page {flex-direction: column;}5 unmodified linesposition: static;border-right: none;border-bottom: 1px solid var(--border);padding: var(--space-sm) 0;}.sidebar-nav {flex-direction: row;flex-wrap: wrap;align-items: center;padding: 0 var(--space-sm);}.sidebar-item {border-left: none;border-bottom: 2px solid transparent;padding: var(--space-sm) var(--space-md);}.sidebar-item.active {4 unmodified lines.sidebar-variant {border-left: none;border-bottom: 2px solid transparent;padding: var(--space-sm) var(--space-md);font-size: var(--text-sm);}.sidebar-variant.active {1 unmodified line}.main-inner {padding: 0 var(--space-md) var(--space-xl);}.table-split {display: none;}.table-scroll-mobile {display: block;}}
app.js+108-61
config.json+64-1
demo/demo.cssAdded+249
demo/demo.jsAdded+448
index.html+6
palette.cssAdded+74
style.css+111-133