Spaces:
Sleeping
Sleeping
File size: 29,973 Bytes
ebf06f9 ce71232 267e81e ce71232 7636b66 ce71232 7636b66 ce71232 7636b66 ce71232 7636b66 ce71232 ebf06f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Strands Robots data loop</title>
<style>
html, body { margin: 0; padding: 0; background: #FFFFFF; }
body { padding: 4px 10px 10px; }
.sr-wrap { max-width: 760px; margin: 0 auto; }
</style>
</head>
<body>
<div class="sr-wrap">
<div class="sr-loop"></div>
<style>
/* Animated build of arch_dataloop.svg. Same 1000x640 canvas, same four cards,
same palette. Orange is data in motion, exactly as it is in the static figure
where the return arrow is the only orange line. */
.sr-loop {
--navy: #1A3B5C;
--orange: #FF6B35;
--grey: #5A6470;
--body: #42505E;
--bg: #FAFAFA;
--hair: #C7D0DA;
--accent: var(--navy);
position: relative;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.sr-loop svg { display: block; width: 100%; height: auto; }
.sr-loop text { user-select: none; }
/* each stage owns the hue its card is stroked with in the static figure */
.sr-loop[data-active="record"] { --accent: #1A3B5C; }
.sr-loop[data-active="store"] { --accent: #FFAD03; }
.sr-loop[data-active="train"] { --accent: #6CAE3E; }
.sr-loop[data-active="deploy"] { --accent: #7A4F91; }
/* ---- cards: resting state is the static figure, unchanged ---- */
.sr-loop .card { cursor: pointer; }
.sr-loop .card-box {
transition: stroke-width .3s ease, filter .3s ease;
}
.sr-loop .card:hover .card-box { stroke-width: 2.6; }
.sr-loop .card:focus { outline: none; }
.sr-loop .card:focus-visible .card-box { stroke-width: 3; stroke-dasharray: 5 3; }
/* the active card is the only one at full strength; the rest recede */
.sr-loop .card { transition: opacity .35s ease; }
.sr-loop[data-active] .card { opacity: .5; }
.sr-loop[data-active] .card.is-active { opacity: 1; }
.sr-loop .card.is-active .card-box { stroke-width: 3; }
/* metric badge, revealed on the active card only */
.sr-loop .badge { opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.sr-loop .badge-pill { fill: var(--accent); }
.sr-loop .badge-text { fill: #FFFFFF; font-size: 12.5px; font-weight: 700; }
.sr-loop .card.is-active .badge { opacity: 1; }
/* ---- arrows: grey at rest, the traversed one carries the accent ---- */
.sr-loop .hop { stroke: var(--navy); transition: stroke .35s ease, opacity .35s ease; }
.sr-loop[data-active] .hop { opacity: .28; }
.sr-loop .hop.is-live { opacity: 1; stroke: var(--accent); }
/* the return arrow keeps the orange its label carries, live or not */
.sr-loop .hop.hop-return { stroke: var(--orange); }
/* the bytes in flight */
.sr-loop .mover { fill: var(--orange); opacity: 0; }
.sr-loop .mover-trail { stroke: var(--orange); fill: none; opacity: 0; }
/* ---- hub: the shared backend, always lit ---- */
.sr-loop .spoke { stroke: var(--hair); transition: stroke .35s ease, opacity .35s ease; }
.sr-loop .spoke.is-live { stroke: var(--accent); opacity: 1; }
.sr-loop .hub-ring { transition: stroke .35s ease; }
.sr-loop .hub-pulse {
fill: none; stroke: var(--accent); opacity: 0;
transform-box: fill-box; transform-origin: 50% 50%;
}
.sr-loop .hub-pulse.beat { animation: srPulse 1.05s ease-out; }
@keyframes srPulse {
from { opacity: .55; transform: scale(1); }
to { opacity: 0; transform: scale(1.34); }
}
/* ---- caption strip: HTML, below the canvas, so it keeps its own type size.
Inside the SVG it would scale with the viewBox and read at ~9px in a blog
column. ---- */
.sr-loop .cap {
border-top: 1px solid var(--hair);
margin-top: 14px;
padding-top: 13px;
}
.sr-loop .cap-eyebrow {
color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .07em;
transition: color .35s ease;
}
/* each text slot holds the tallest stage's line count, so the hint below it
never jumps when a caption wraps one line further */
.sr-loop .cap-line {
color: var(--body); font-size: 15px; line-height: 1.5; margin: 7px 0 0;
max-width: 68ch; min-height: 45px;
}
.sr-loop .cap-src {
color: var(--grey); font-size: 13px; line-height: 1.45; margin: 7px 0 0;
max-width: 78ch; min-height: 38px;
}
.sr-loop .cap-hint {
color: var(--grey); font-size: 12.5px; margin: 12px 0 0;
}
.sr-loop .cap-hint b { color: var(--accent); font-weight: 700; transition: color .35s ease; }
.sr-loop .swap { animation: srSwap .34s ease; }
@keyframes srSwap {
from { opacity: 0; }
to { opacity: 1; }
}
/* progress ticks under the title */
.sr-loop .tick { transition: fill .3s ease; }
/* narrow columns wrap the captions further, so the slots grow to match.
Declared after the base rules so it wins on equal specificity. */
@media (max-width: 559px) {
.sr-loop .cap-line { min-height: 90px; }
.sr-loop .cap-src { min-height: 57px; }
}
@media (prefers-reduced-motion: reduce) {
.sr-loop .card, .sr-loop .hop, .sr-loop .spoke, .sr-loop .badge,
.sr-loop .cap-eyebrow, .sr-loop .card-box, .sr-loop .tick { transition: none; }
.sr-loop .swap, .sr-loop .hub-pulse.beat { animation: none; }
.sr-loop .mover, .sr-loop .mover-trail { display: none; }
}
</style>
<script type="text/x-template" id="sr-loop-svg">
</script>
<script>
(() => {
const ROOT = 'sr-loop';
const bootstrap = () => {
const s = document.currentScript;
let c = s ? s.previousElementSibling : null;
while (c && !(c.classList && c.classList.contains(ROOT))) c = c.previousElementSibling;
if (!c) {
const cand = Array.from(document.querySelectorAll('.' + ROOT))
.filter((e) => e.dataset.mounted !== 'true');
c = cand[cand.length - 1] || null;
}
if (!c || c.dataset.mounted === 'true') return;
c.dataset.mounted = 'true';
const tpl = document.getElementById('sr-loop-svg');
c.innerHTML = tpl.textContent || tpl.innerHTML;
const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
// Each caption states what the stage moves. The two figures come from
// measurements reported in the post; stages 1 and 4 make format and API
// claims, so they carry no number.
const STAGES = [
{
key: 'record',
eyebrow: 'STAGE 1 OF 4 路 RECORD',
line: 'One prompt sets the scene, adds cameras, runs the episode, and writes Parquet shards for state and action plus one MP4 per camera.',
src: 'The layout is exactly what LeRobot writes, so the dataset needs no conversion at any later stage.',
// the hop that delivered the data into this stage, and the spoke it shares
hop: 0,
},
{
key: 'store',
eyebrow: 'STAGE 2 OF 4 路 STORE',
line: 'The bucket is the working layer between recording and training, and Xet deduplicates each sync at the byte level.',
src: "Hugging Face bucket benchmarks: changing 1% of a 500 MB file moved 5.5 MB, not 500 MB.",
hop: 1,
},
{
key: 'train',
eyebrow: 'STAGE 3 OF 4 路 TRAIN',
line: 'Training reads frames over the Hub instead of downloading the dataset first, decoding camera video on the fly from the MP4 shards.',
src: 'After a full read of a pick-and-place dataset, local disk held three meta files, one episode-index parquet, and the README.',
hop: 2,
},
{
key: 'deploy',
eyebrow: 'STAGE 4 OF 4 路 DEPLOY',
line: 'The checkpoint runs on the physical arm through the same Robot() that recorded the data, and the demos it records return to the same bucket.',
src: 'One keyword argument separates the simulated rollout from the hardware one. Nothing else in the loop changes.',
hop: 3,
},
];
const cards = new Map(
Array.from(c.querySelectorAll('.card')).map((el) => [el.getAttribute('data-card'), el])
);
const hops = Array.from(c.querySelectorAll('.hop'));
const spokes = new Map(
Array.from(c.querySelectorAll('.spoke')).map((el) => [el.getAttribute('data-spoke'), el])
);
const ticks = Array.from(c.querySelectorAll('.tick'));
const pulse = c.querySelector('.hub-pulse');
const mover = c.querySelector('#srMover');
const trail = c.querySelector('#srTrail');
const capEyebrow = c.querySelector('#srCapEyebrow');
const capLine = c.querySelector('#srCapLine');
const capSrc = c.querySelector('#srCapSrc');
const seen = new Set();
let current = -1;
let auto = null;
let userTookOver = false;
let raf = null;
// The bytes travel the hop that feeds the selected stage.
const runMover = (hopIdx) => {
if (reduce) return;
const h = hops.find((x) => Number(x.getAttribute('data-hop')) === hopIdx);
if (!h) return;
if (raf) cancelAnimationFrame(raf);
const x1 = +h.getAttribute('x1'), y1 = +h.getAttribute('y1');
const x2 = +h.getAttribute('x2'), y2 = +h.getAttribute('y2');
const DUR = 900;
let t0 = null;
const step = (ts) => {
if (t0 === null) t0 = ts;
const k = Math.min(1, (ts - t0) / DUR);
const e = k < 0.5 ? 2 * k * k : 1 - Math.pow(-2 * k + 2, 2) / 2; // ease-in-out
const x = x1 + (x2 - x1) * e, y = y1 + (y2 - y1) * e;
const bx = x1 + (x2 - x1) * Math.max(0, e - 0.14);
const by = y1 + (y2 - y1) * Math.max(0, e - 0.14);
mover.setAttribute('cx', x.toFixed(1));
mover.setAttribute('cy', y.toFixed(1));
trail.setAttribute('x1', bx.toFixed(1)); trail.setAttribute('y1', by.toFixed(1));
trail.setAttribute('x2', x.toFixed(1)); trail.setAttribute('y2', y.toFixed(1));
const op = k > 0.88 ? (1 - k) / 0.12 : 1;
mover.setAttribute('opacity', op.toFixed(2));
trail.setAttribute('opacity', (op * 0.55).toFixed(2));
if (k < 1) raf = requestAnimationFrame(step);
else {
mover.setAttribute('opacity', '0');
trail.setAttribute('opacity', '0');
raf = null;
pulse.classList.remove('beat');
void pulse.getBoundingClientRect();
pulse.classList.add('beat');
}
};
raf = requestAnimationFrame(step);
};
const select = (i) => {
if (i === current) return;
current = i;
const st = STAGES[i];
seen.add(i);
c.setAttribute('data-active', st.key);
cards.forEach((el, k) => {
const on = k === st.key;
el.classList.toggle('is-active', on);
el.setAttribute('aria-pressed', on ? 'true' : 'false');
});
hops.forEach((h) => {
h.classList.toggle('is-live', Number(h.getAttribute('data-hop')) === st.hop);
});
spokes.forEach((el, k) => el.classList.toggle('is-live', k === st.key));
ticks.forEach((t, k) => {
t.setAttribute('fill', k === i ? 'var(--accent)'
: seen.has(k) ? 'color-mix(in srgb, var(--accent) 45%, #C7D0DA)' : '#C7D0DA');
});
capEyebrow.textContent = st.eyebrow;
capLine.textContent = st.line;
capSrc.textContent = st.src;
if (!reduce) {
[capEyebrow, capLine, capSrc].forEach((el) => {
el.classList.remove('swap');
void el.getBoundingClientRect();
el.classList.add('swap');
});
}
runMover(st.hop);
};
const startAuto = () => {
if (auto || reduce || userTookOver) return;
auto = setInterval(() => {
if (userTookOver) { clearInterval(auto); auto = null; return; }
select((current + 1) % STAGES.length);
}, 3400);
};
const stopAuto = () => { if (auto) { clearInterval(auto); auto = null; } };
const takeOver = () => { userTookOver = true; stopAuto(); };
STAGES.forEach((st, i) => {
const el = cards.get(st.key);
if (!el) return;
el.addEventListener('click', () => { takeOver(); select(i); });
el.addEventListener('mouseenter', () => { if (!userTookOver) { stopAuto(); select(i); } });
el.addEventListener('focus', () => { takeOver(); select(i); });
el.addEventListener('keydown', (e) => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); takeOver(); select(i); return; }
let n = null;
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') n = (i + 1) % STAGES.length;
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') n = (i - 1 + STAGES.length) % STAGES.length;
else if (e.key === 'Home') n = 0;
else if (e.key === 'End') n = STAGES.length - 1;
if (n !== null) { e.preventDefault(); takeOver(); cards.get(STAGES[n].key).focus(); }
});
});
select(0);
startAuto();
c.addEventListener('mouseleave', startAuto);
};
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', bootstrap, { once: true });
else bootstrap();
})();
</script>
</div>
</body>
</html>
|