`;
});
const notes = [];
const ours = seq.clouds.ours;
if (scored) {
notes.push('F, precision and recall at 5 cm and the median accuracy are read from each cloud\'s score report'
+ (d.in_paper === false ? '; this dataset is not in the paper.' : ': the paper\'s numbers.')
+ (modesOf(d).includes('error') ? ' The colours are each shown point\'s distance to the scan, for display only.'
: ' Each cloud is shown in its own colours, from the images; the reference\'s map is the one the scores measure against.'));
if (ours.ate_final_m != null) notes.push(`Accord's trajectory: ${fmt.cm(ours.ate_final_m)} from the reference after a rigid fit.`);
} else {
notes.push(d.note ? `${d.note[0].toUpperCase()}${d.note.slice(1)}.` : '');
}
notes.push(`Points shown: the cloud thinned to one point per ${(d.voxel_m * 100).toFixed(1)} cm, at most 500,000.`);
for (const k of keys) if (seq.clouds[k] && systems[k].note) notes.push(`${systems[k].label}: ${systems[k].note}.`);
if (keys.some(k => seq.clouds[k] && !seq.clouds[k].color)) notes.push('Clouds stored without colours show in their pipeline\'s colour under Image.');
$('scores').innerHTML = `
`;
}).join('');
}
renderResults();
// the scoreboard: per test set, each dense pipeline's mean map score as the paper's tables give it (build_site.py
// reads them; nothing is computed here but the bars' lengths and who is first). Each panel has its own scale.
function renderScoreboard() {
const sets = catalog.scoreboard || [];
$('scoreboard').hidden = !sets.length;
if (!sets.length) return;
let lead = 0;
$('board').innerHTML = sets.map(set => {
const rows = set.entries.map(e => ({ ...e, value: e.failed ? -1 : parseFloat(e.text) })).sort((x, y) => y.value - x.value);
const top = rows[0].value, ours = rows.find(r => r.system === 'ours');
const first = ours.value === top && rows.filter(r => r.value === top).length === 1;
const rank = rows.filter(r => r.value > ours.value).length + 1;
if (first) lead += 1;
const bars = rows.map(r => `
`;
}).join('');
$('scoreClaim').innerHTML = `The best mean map score on ${lead} of ${sets.length} test sets.`;
const marks = Object.entries(systems).filter(([k, v]) => v.note && sets.some(set => set.entries.some(e => e.system === k)) && k !== 'base')
.map(([, v]) => `${v.label}: ${v.note}.`).join(' ');
$('boardNote').innerHTML = 'Each panel has its own scale, from 0 to its best score. Failed: every sequence failed (no output, or a '
+ `trajectory more than 10 m off). A pipeline that was not run on a test set is not listed there. ${marks} `
+ 'The numbers are those of the paper\'s tables: Results in full.';
// the bars grow when their panel comes into view; a pipeline under the pointer is picked out in every panel
const grow = new IntersectionObserver(entries => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
for (const fill of entry.target.querySelectorAll('.fill')) fill.style.width = `${fill.dataset.width}%`;
grow.unobserve(entry.target);
}
}, { threshold: 0.3 });
for (const panel of $('board').children) grow.observe(panel);
const hot = key => {
if (key) $('board').dataset.hot = key; else delete $('board').dataset.hot;
for (const row of $('board').querySelectorAll('.bar-row')) row.classList.toggle('hot', row.dataset.system === key);
};
$('board').addEventListener('pointerover', e => hot(e.target.closest('.bar-row')?.dataset.system));
$('board').addEventListener('pointerleave', () => hot(null));
}
renderScoreboard();
// ------------------------------------------------------------------------------------------- the phone rig dataset
// what the release's sequences.csv says (build_site.py dataset): the walks, their totals, the video of all of them
function renderDataset() {
const d = catalog.dataset;
if (!d) return;
const t = d.totals, group = videoGroup(d.video), item = group?.items[0];
const min = s => { if (s == null) return '—'; const r = Math.round(s); return `${Math.floor(r / 60)}:${String(r % 60).padStart(2, '0')}`; };
$('dataset').hidden = false;
$('datasetLead').textContent = `${t.walks} walks, ${t.indoor} indoors and ${t.walks - t.indoor} outdoors, ${t.night} of them at night, `
+ 'recorded by a Samsung Galaxy Note 9 and an iPhone carried together, with a second iPhone, its LiDAR running RTAB-Map, '
+ 'alongside as the reference. Every frame is as released: people, faces and number plates blurred.';
if (item) {
const video = $('datasetVideo');
let inView = false;
const show = it => {
video.poster = it.poster;
video.src = it.src;
$('datasetCaption').textContent = `${it.note || group.note}.`;
if (inView) video.play().catch(() => {});
};
show(item);
// more than one clip: a tab each (every walk at once, both phones with the depth, the reference)
if (group.items.length > 1) {
tabs($('datasetClips'), group.items.map((it, i) => ({ id: String(i), label: it.label })), '0', id => show(group.items[Number(id)]));
$('datasetClips').hidden = false;
}
new IntersectionObserver(([entry]) => {
inView = entry.isIntersecting;
if (inView) video.play().catch(() => {}); else video.pause();
}, { threshold: 0.3 }).observe(video);
}
const stat = (what, value, unit) => `
${what}
${value}
${unit}
`;
$('datasetStats').innerHTML = stat('Walks', t.walks, `${t.night} at night`)
+ stat('Walking', Math.round(t.walk_s / 60), 'minutes, by the reference')
+ stat('Distance', (t.path_m / 1000).toFixed(1), 'km, by the reference')
+ stat('Frames', `${Math.round(t.frames / 1000)}k`, `both phones, ${Math.round(t.android_s / 60)} + ${Math.round(t.iphone_s / 60)} min`);
const rows = d.walks.map(w => `
`;
$('datasetFoot').textContent = `From the release's ${d.source.split('/').pop()}. ${d.foot}${d.status ? ` ${d.status}` : ''}`;
// where it is published, and what its card says of it: the card's own rows and commands
const r = d.release;
if (r) {
$('datasetLinks').append(linkTo('chip-link primary', r.hub, 'Dataset on Hugging Face', 'data'),
linkTo('chip-link', r.licence_url, `Licence: ${r.licence}`, 'licence'),
Object.assign(document.createElement('span'), { className: 'chip-link plain', textContent: `${(r.bytes / 1e9).toFixed(1)} GB` }));
$('datasetFacts').replaceChildren(...r.facts.map(([what, value]) => {
const row = document.createElement('div');
row.append(Object.assign(document.createElement('dt'), { textContent: what }),
Object.assign(document.createElement('dd'), { textContent: value }));
return row;
}));
// a line per command, so a long one can wrap in a narrow column and still read as one command
// (an option such as --local-dir stays in one piece: a line may otherwise break after its hyphens)
$('datasetGet').replaceChildren(...r.get.map(line => {
const cmd = Object.assign(document.createElement('span'), { className: 'cmd' });
line.split(' ').forEach((word, i) => cmd.append(i ? ' ' : '', word.startsWith('-')
? Object.assign(document.createElement('span'), { className: 'opt', textContent: word }) : word));
return cmd;
}));
$('datasetGetNote').textContent = r.get_note || '';
$('copyDatasetGet').addEventListener('click', async () => {
try { await navigator.clipboard.writeText(r.get.join('\n')); $('copyDatasetGet').textContent = 'Copied'; }
catch { $('copyDatasetGet').textContent = 'Select and copy'; }
setTimeout(() => { $('copyDatasetGet').textContent = 'Copy'; }, 1600);
});
$('datasetRelease').hidden = false;
}
$('datasetMapsLink').addEventListener('click', () => {
if (datasets.some(x => x.id === 'phones')) pickDataset('phones');
});
}
renderDataset();
// the paper's figures of the results, as build_site.py rendered them
$('resultFigures').innerHTML = Object.entries(catalog.figures || {}).filter(([, f]) => f.section === 'results')
.map(([, f]) => ``
+ `${f.caption || ''}`).join('');
// --------------------------------------------------------------------------------------------------- the page itself
// what comes into view fades in once
const reveal = new IntersectionObserver(entries => {
for (const entry of entries) if (entry.isIntersecting) { entry.target.classList.add('in'); reveal.unobserve(entry.target); }
}, { threshold: 0.08 });
document.documentElement.classList.add('reveal-ready');
for (const el of document.querySelectorAll('.reveal')) reveal.observe(el);
// One list is the way through the page: the sections that are shown, in order, under the names they give themselves
// (data-nav, data-tour in index.html). From it come the bar on top, the tour under the film, each section's number, the
// link to the next one that ends it, the rail at the side and the footer's list; a section that has nothing to show
// (hidden) is in none of them.
const stops = [...document.querySelectorAll('main > section[data-nav]')].filter(s => !s.hidden);
const two = i => String(i + 1).padStart(2, '0');
const svg = d => ``;
const RIGHT = 'M5 11h11.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H5v-2Z';
const DOWN = 'M11 5v11.2l-4.6-4.6L5 13l7 7 7-7-1.4-1.4-4.6 4.6V5h-2Z';
const UP = 'M11 19V7.8l-4.6 4.6L5 11l7-7 7 7-1.4 1.4L13 7.8V19h-2Z';
const anchor = (href, className, html) => Object.assign(document.createElement('a'), { href, className, innerHTML: html });
$('navLinks').replaceChildren(...stops.map(s => anchor(`#${s.id}`, '', s.dataset.nav)));
$('tour').replaceChildren(...stops.map((s, i) => anchor(`#${s.id}`, '',
`${two(i)}${s.dataset.nav}${svg(RIGHT)}${s.dataset.tour}`)));
$('rail').replaceChildren(...stops.map(s => anchor(`#${s.id}`, '', `${s.dataset.nav}`)));
$('footNav').replaceChildren(...stops.map((s, i) => anchor(`#${s.id}`, '', `${two(i)}${s.dataset.nav}`)));
stops.forEach((s, i) => {
const eyebrow = s.querySelector('.eyebrow');
if (eyebrow) eyebrow.dataset.n = two(i);
const next = stops[i + 1], wraps = s.querySelectorAll(':scope > .wrap');
wraps[wraps.length - 1].append(next
? anchor(`#${next.id}`, 'next', `Next${two(i + 1)}${next.dataset.nav}`
+ `${next.dataset.tour}${svg(DOWN)}`)
: anchor('#top', 'next up', `The endBack to the top${svg(UP)}`));
});
// a glow follows the pointer over the tour's cards
$('tour').addEventListener('pointermove', e => {
const card = e.target.closest('a');
if (!card) return;
const box = card.getBoundingClientRect();
card.style.setProperty('--mx', `${e.clientX - box.left}px`);
card.style.setProperty('--my', `${e.clientY - box.top}px`);
});
// the bar and the rail mark the section being read; where the bar scrolls sideways its mark stays in sight
const marks = stops.map(s => [s, [...document.querySelectorAll(`#navLinks a[href="#${s.id}"], #rail a[href="#${s.id}"]`)]]);
const seen = new Map();
const spy = new IntersectionObserver(entries => {
for (const entry of entries) seen.set(entry.target, entry.isIntersecting);
const current = stops.find(s => seen.get(s));
for (const [s, links] of marks) for (const a of links) a.setAttribute('aria-current', String(s === current));
const bar = $('navLinks'), a = current && bar.querySelector(`a[href="#${current.id}"]`);
if (a && bar.scrollWidth > bar.clientWidth) bar.scrollTo({ left: a.offsetLeft - (bar.clientWidth - a.offsetWidth) / 2, behavior: 'smooth' });
}, { rootMargin: '-45% 0px -50% 0px' });
for (const s of stops) spy.observe(s);
// how far down the page: the line under the bar; past the opening, the rail and the way back up appear
let queued = false;
const onScroll = () => {
queued = false;
const room = document.documentElement.scrollHeight - innerHeight;
$('progress').style.transform = `scaleX(${room > 0 ? Math.min(1, scrollY / room) : 0})`;
const past = scrollY > innerHeight * 0.9;
$('toTop').classList.toggle('on', past);
$('rail').classList.toggle('on', past);
};
addEventListener('scroll', () => { if (!queued) { queued = true; requestAnimationFrame(onScroll); } }, { passive: true });
addEventListener('resize', onScroll);
onScroll();
// the footer: where the paper, the code and the dataset are, and under which licences
$('footLinks').replaceChildren(...[[paperHref, identity.arxiv ? 'Paper (arXiv)' : 'Paper (PDF)', 'paper'], [identity.code, 'Code', 'code'],
[release?.hub, 'Dataset', 'data']].filter(([href]) => href).map(([href, label, icon]) => linkTo('button', href, label, icon)));
if (release) $('footLicence').textContent = `Accord is GPL-3.0; the phone rig dataset is ${release.licence}.`;