ba4be087d5
Create PR to main with cherry-pick from release / cherry-pick (push) Failing after 0s
CICD NeMo / pre-flight (push) Failing after 0s
CICD NeMo / configure (push) Has been skipped
Build, validate, and release Neural Modules / pre-flight (push) Failing after 1s
CICD NeMo / code-linting (push) Has been skipped
Build, validate, and release Neural Modules / release (push) Has been skipped
Build, validate, and release Neural Modules / release-summary (push) Has been cancelled
CICD NeMo / cicd-test-container-build (push) Has been cancelled
CICD NeMo / cicd-import-tests (push) Has been cancelled
CICD NeMo / L0_Setup_Test_Data_And_Models (push) Has been cancelled
CICD NeMo / cicd-main-unit-tests (push) Has been cancelled
CICD NeMo / cicd-main-speech (push) Has been cancelled
CICD NeMo / Nemo_CICD_Test (push) Has been cancelled
CICD NeMo / Coverage (e2e) (push) Has been cancelled
CICD NeMo / Coverage (unit-test) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
CICD NeMo / cicd-wait-in-queue (push) Has been cancelled
370 lines
8.0 KiB
Django/Jinja
370 lines
8.0 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Audio Comparison Report</title>
|
|
<style>
|
|
:root {
|
|
--bg: #f7f8fa;
|
|
--card: #fafafa;
|
|
--card-shadow: 0 1px 8px rgba(0, 0, 0, 0.045);
|
|
--audio-pair-card: #ffffff;
|
|
--audio-pair-card-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
|
|
--audio-pair-card-hover: #cfd6dd;
|
|
--active-audio-pair-border: rgba(115, 147, 179, 0.5);
|
|
--active-audio-pair-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
|
|
--text: #36454F;
|
|
--highlighted: #7393B3;
|
|
--border: #e5e7eb;
|
|
--header: #111827;
|
|
--sub-header: #36454F;
|
|
--accent: #708090;
|
|
--expiration-comment: #CD5C5C;
|
|
--link-decoration: rgba(115, 147, 179, 0.45);
|
|
--radius: 8px;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
margin: 0;
|
|
padding: 32px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: 200px minmax(0, 1050px) 200px;
|
|
column-gap: 40px;
|
|
align-items: start;
|
|
}
|
|
|
|
.main-content {
|
|
grid-column: 2;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 32px;
|
|
align-self: start;
|
|
margin-top: 145px;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.sidebar-left {
|
|
grid-column: 1;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.sidebar-right {
|
|
grid-column: 3;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
@media (max-width: 1500px) {
|
|
.layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.main-content {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.sidebar h2 {
|
|
display: inline-block;
|
|
font-size: 1rem;
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 2px solid var(--border);
|
|
padding-right: 40px;
|
|
padding-bottom: 0.35rem;
|
|
color: var(--sub-header);
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.sidebar li {
|
|
margin-bottom: 8px;
|
|
color: var(--accent);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.sidebar ul ul {
|
|
margin-top: 8px;
|
|
margin-left: 14px;
|
|
padding-left: 12px;
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
color: var(--sub-header);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar a.active {
|
|
color: var(--sub-header);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--sub-header);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.link-comment {
|
|
color: var(--highlighted);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.link-comment a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--link-decoration);
|
|
}
|
|
|
|
.link-comment a:hover {
|
|
color: var(--sub-header);
|
|
text-decoration-color: var(--sub-header);
|
|
}
|
|
|
|
.card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--card-shadow);
|
|
padding: 20px 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.model-header-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 14px;
|
|
padding: 0 18px;
|
|
}
|
|
|
|
.model-header {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
.audio-pair-card {
|
|
background: var(--audio-pair-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--audio-pair-card-shadow);
|
|
padding: 16px 18px;
|
|
margin-bottom: 24px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.audio-pair-card:hover {
|
|
border-color: var(--audio-pair-card-hover);
|
|
}
|
|
|
|
.audio-pair-card.active-audio {
|
|
border-color: var(--active-audio-pair-border);
|
|
box-shadow: var(--active-audio-pair-shadow);
|
|
}
|
|
|
|
.audio-pair-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.audio-cell {
|
|
min-width: 0;
|
|
}
|
|
|
|
audio {
|
|
width: 100%;
|
|
}
|
|
|
|
.pair-comment {
|
|
color: var(--accent);
|
|
font-style: italic;
|
|
margin-top: 12px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
h1 {
|
|
color: var(--header);
|
|
margin-top: 0;
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
h2, h3, h4 {
|
|
color: var(--sub-header);
|
|
margin-top: 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 2px solid var(--border);
|
|
padding-bottom: 0.35rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
p {
|
|
margin: 0.5rem 0 1rem 0;
|
|
}
|
|
|
|
p.expiration_comment {
|
|
color: var(--expiration-comment);
|
|
font-style: italic;
|
|
margin-top: 30px;
|
|
margin-bottom: 25px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="layout">
|
|
|
|
<aside class="sidebar sidebar-left">
|
|
<h2>Content</h2>
|
|
<ul>
|
|
{% for section_id, section_name in benchmark_section_info %}
|
|
<li><a href="#{{ section_id }}">{{ section_name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</aside>
|
|
|
|
<main class="main-content">
|
|
{{ header_block|safe }}
|
|
|
|
{% for block in benchmark_blocks %}
|
|
{{ block|safe }}
|
|
{% endfor %}
|
|
</main>
|
|
|
|
<aside class="sidebar sidebar-right">
|
|
<h2>Links ↗</h2>
|
|
<ul>
|
|
<li class="link-comment">
|
|
<a href="{{ jira_url }}" target="_blank" rel="noopener noreferrer">Jira {{ jira_id }}</a>
|
|
</li>
|
|
</ul>
|
|
</aside>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
document.addEventListener("play", function(event) {
|
|
const audios = document.querySelectorAll("audio");
|
|
const cards = document.querySelectorAll(".audio-pair-card");
|
|
|
|
audios.forEach(audio => {
|
|
if (audio !== event.target) {
|
|
audio.pause();
|
|
}
|
|
});
|
|
|
|
cards.forEach(card => card.classList.remove("active-audio"));
|
|
|
|
const card = event.target.closest(".audio-pair-card");
|
|
if (card) {
|
|
card.classList.add("active-audio");
|
|
}
|
|
}, true);
|
|
|
|
document.addEventListener("pause", function(event) {
|
|
const card = event.target.closest(".audio-pair-card");
|
|
if (!card) return;
|
|
|
|
const anyPlaying = [...document.querySelectorAll("audio")].some(audio => !audio.paused);
|
|
if (!anyPlaying) {
|
|
card.classList.remove("active-audio");
|
|
}
|
|
}, true);
|
|
</script>
|
|
|
|
<script>
|
|
const ACTIVE_SECTION_OFFSET = 140;
|
|
const BOTTOM_THRESHOLD = 20;
|
|
|
|
const sections = [...document.querySelectorAll("h2[id], h3[id]")];
|
|
const navLinks = [...document.querySelectorAll('.sidebar-left a[href^="#"]')];
|
|
|
|
const linkMap = new Map();
|
|
navLinks.forEach(link => {
|
|
const href = link.getAttribute("href");
|
|
linkMap.set(href.slice(1), link);
|
|
|
|
link.addEventListener("click", () => {
|
|
navLinks.forEach(l => l.classList.remove("active"));
|
|
link.classList.add("active");
|
|
});
|
|
});
|
|
|
|
function updateActiveLink() {
|
|
let currentSection = null;
|
|
|
|
for (const section of sections) {
|
|
const rect = section.getBoundingClientRect();
|
|
if (rect.top <= ACTIVE_SECTION_OFFSET) {
|
|
currentSection = section.id;
|
|
}
|
|
}
|
|
|
|
const nearBottom = window.innerHeight + window.scrollY >= document.body.offsetHeight - BOTTOM_THRESHOLD;
|
|
|
|
if (nearBottom && sections.length > 0) {
|
|
currentSection = sections[sections.length - 1].id;
|
|
}
|
|
|
|
if (currentSection) {
|
|
navLinks.forEach(link => link.classList.remove("active"));
|
|
const activeLink = linkMap.get(currentSection);
|
|
if (activeLink) {
|
|
activeLink.classList.add("active");
|
|
}
|
|
}
|
|
}
|
|
|
|
window.addEventListener("scroll", updateActiveLink, { passive: true });
|
|
window.addEventListener("load", updateActiveLink);
|
|
</script>
|
|
|
|
</body>
|
|
</html> |