Spaces:
Sleeping
Sleeping
feat: add MobileNetV3 diagram and update styles
Browse files- Introduced a new component `MobileNetV3Diagram` to visualize the architecture of the MobileNetV3 model.
- Updated `Hero` component text to reflect the new model details.
- Added CSS styles for the new diagram, including animations and responsive design.
- Enhanced existing styles for tabs and layout in the research page for better usability and aesthetics.
- frontend/public/static/images/25_augmentations.png +3 -0
- frontend/public/static/images/25_preprocessing.png +3 -0
- frontend/public/static/images/aggregate_summary.png +3 -0
- frontend/public/static/images/alpha_0_training_curves_seed_121_92dae2d3_best..png +3 -0
- frontend/public/static/images/alpha_0_training_curves_seed_25_e118bbde_best.png +3 -0
- frontend/public/static/images/alpha_0_training_curves_seed_7_8c7a778f_best.png +3 -0
- frontend/public/static/images/training_curves_seed_121_78d07e98_best.png +3 -0
- frontend/public/static/images/training_curves_seed_25_618453de_best.png +3 -0
- frontend/public/static/images/training_curves_seed_7_564cc178_best.png +3 -0
- frontend/src/app/research/page.js +0 -0
- frontend/src/app/research/page.module.css +130 -0
- frontend/src/components/Hero.js +1 -1
- frontend/src/components/MobileNetV3Diagram.js +144 -0
- frontend/src/components/MobileNetV3Diagram.module.css +296 -0
frontend/public/static/images/25_augmentations.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/25_preprocessing.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/aggregate_summary.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/alpha_0_training_curves_seed_121_92dae2d3_best..png
ADDED
|
Git LFS Details
|
frontend/public/static/images/alpha_0_training_curves_seed_25_e118bbde_best.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/alpha_0_training_curves_seed_7_8c7a778f_best.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/training_curves_seed_121_78d07e98_best.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/training_curves_seed_25_618453de_best.png
ADDED
|
Git LFS Details
|
frontend/public/static/images/training_curves_seed_7_564cc178_best.png
ADDED
|
Git LFS Details
|
frontend/src/app/research/page.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/src/app/research/page.module.css
CHANGED
|
@@ -374,6 +374,133 @@
|
|
| 374 |
margin-top: 2px;
|
| 375 |
}
|
| 376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
@media (max-width: 768px) {
|
| 378 |
.oodContainer {
|
| 379 |
flex-direction: column;
|
|
@@ -382,6 +509,9 @@
|
|
| 382 |
.oodImageSmall, .oodImageLarge {
|
| 383 |
width: 100% !important;
|
| 384 |
}
|
|
|
|
|
|
|
|
|
|
| 385 |
}
|
| 386 |
|
| 387 |
/* Tablets (landscape & portrait) */
|
|
|
|
| 374 |
margin-top: 2px;
|
| 375 |
}
|
| 376 |
|
| 377 |
+
.tabBar {
|
| 378 |
+
display: flex;
|
| 379 |
+
gap: 0.75rem;
|
| 380 |
+
margin: 0 auto 3rem;
|
| 381 |
+
max-width: 560px;
|
| 382 |
+
width: 100%;
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
.tab {
|
| 386 |
+
flex: 1;
|
| 387 |
+
display: flex;
|
| 388 |
+
flex-direction: column;
|
| 389 |
+
align-items: center;
|
| 390 |
+
gap: 0.35rem;
|
| 391 |
+
padding: 1rem 0.75rem;
|
| 392 |
+
background: rgba(255, 255, 255, 0.03);
|
| 393 |
+
border: 1px solid var(--border-glass);
|
| 394 |
+
border-radius: 14px;
|
| 395 |
+
cursor: pointer;
|
| 396 |
+
transition: all 0.3s ease;
|
| 397 |
+
font-family: inherit;
|
| 398 |
+
position: relative;
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
.tab:hover {
|
| 402 |
+
background: rgba(255, 255, 255, 0.06);
|
| 403 |
+
border-color: rgba(255, 255, 255, 0.12);
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
.tabActive {
|
| 407 |
+
background: rgba(255, 255, 255, 0.06);
|
| 408 |
+
border-color: var(--accent-primary);
|
| 409 |
+
box-shadow: 0 0 20px rgba(192, 132, 252, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
.tab:first-child.tabActive {
|
| 413 |
+
border-color: var(--accent-primary);
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
.tab:last-child.tabActive {
|
| 417 |
+
border-color: #34d399;
|
| 418 |
+
box-shadow: 0 0 20px rgba(52, 211, 153, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
|
| 419 |
+
}
|
| 420 |
+
|
| 421 |
+
.tabLabel {
|
| 422 |
+
font-family: var(--font-head);
|
| 423 |
+
font-size: 1.05rem;
|
| 424 |
+
font-weight: 800;
|
| 425 |
+
color: var(--text-primary);
|
| 426 |
+
letter-spacing: 2px;
|
| 427 |
+
text-transform: uppercase;
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
.tabSub {
|
| 431 |
+
font-family: var(--font-body);
|
| 432 |
+
font-size: 0.78rem;
|
| 433 |
+
color: var(--text-secondary);
|
| 434 |
+
opacity: 0.7;
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.tabActive .tabSub {
|
| 438 |
+
opacity: 1;
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
.tab:first-child.tabActive .tabLabel {
|
| 442 |
+
color: var(--accent-primary);
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
.tab:last-child.tabActive .tabLabel {
|
| 446 |
+
color: #34d399;
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
.phaseDivider {
|
| 450 |
+
display: flex;
|
| 451 |
+
align-items: center;
|
| 452 |
+
gap: 1rem;
|
| 453 |
+
margin: 1.5rem 0 2.5rem;
|
| 454 |
+
width: 100%;
|
| 455 |
+
}
|
| 456 |
+
|
| 457 |
+
.phaseDot {
|
| 458 |
+
width: 14px;
|
| 459 |
+
height: 14px;
|
| 460 |
+
min-width: 14px;
|
| 461 |
+
border-radius: 50%;
|
| 462 |
+
background: var(--accent-primary);
|
| 463 |
+
box-shadow: 0 0 18px var(--accent-primary);
|
| 464 |
+
animation: pulse 2s ease-in-out infinite;
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
.phaseDotTwo {
|
| 468 |
+
background: #34d399;
|
| 469 |
+
box-shadow: 0 0 18px rgba(52, 211, 153, 0.6);
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
.phaseLabel {
|
| 473 |
+
font-family: var(--font-head);
|
| 474 |
+
font-size: 1.25rem;
|
| 475 |
+
font-weight: 800;
|
| 476 |
+
color: var(--accent-primary);
|
| 477 |
+
text-transform: uppercase;
|
| 478 |
+
letter-spacing: 3px;
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
.phaseLabelTwo {
|
| 482 |
+
color: #34d399;
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
.phaseLine {
|
| 486 |
+
flex: 1;
|
| 487 |
+
height: 1px;
|
| 488 |
+
background: linear-gradient(90deg, var(--border-glass), transparent);
|
| 489 |
+
}
|
| 490 |
+
|
| 491 |
+
.twoColGrid {
|
| 492 |
+
display: grid;
|
| 493 |
+
grid-template-columns: 1fr 1fr;
|
| 494 |
+
max-width: 850px;
|
| 495 |
+
margin: 2rem auto;
|
| 496 |
+
gap: 2rem;
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
@keyframes pulse {
|
| 500 |
+
0%, 100% { opacity: 1; transform: scale(1); }
|
| 501 |
+
50% { opacity: 0.6; transform: scale(1.3); }
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
@media (max-width: 768px) {
|
| 505 |
.oodContainer {
|
| 506 |
flex-direction: column;
|
|
|
|
| 509 |
.oodImageSmall, .oodImageLarge {
|
| 510 |
width: 100% !important;
|
| 511 |
}
|
| 512 |
+
.twoColGrid {
|
| 513 |
+
grid-template-columns: 1fr;
|
| 514 |
+
}
|
| 515 |
}
|
| 516 |
|
| 517 |
/* Tablets (landscape & portrait) */
|
frontend/src/components/Hero.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useEffect, useState } from 'react';
|
|
| 5 |
import Link from 'next/link';
|
| 6 |
|
| 7 |
export default function Hero() {
|
| 8 |
-
const fullText = "Powered by
|
| 9 |
const [typedText, setTypedText] = useState("");
|
| 10 |
|
| 11 |
useEffect(() => {
|
|
|
|
| 5 |
import Link from 'next/link';
|
| 6 |
|
| 7 |
export default function Hero() {
|
| 8 |
+
const fullText = "Powered by MobileNetV3 · 1025 Pokémon · 55k+ training images";
|
| 9 |
const [typedText, setTypedText] = useState("");
|
| 10 |
|
| 11 |
useEffect(() => {
|
frontend/src/components/MobileNetV3Diagram.js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 |
+
<div className={styles.card}>
|
| 9 |
+
<div className={styles.cardScanline}></div>
|
| 10 |
+
|
| 11 |
+
<header className={styles.header}>
|
| 12 |
+
<div className={styles.title}>MobileNetV3-Large Student</div>
|
| 13 |
+
<div className={styles.subtitle}>
|
| 14 |
+
Destilado dos 5 Professores ResNet-18 · 66.6 MB FP32 · 1026 classes
|
| 15 |
+
</div>
|
| 16 |
+
</header>
|
| 17 |
+
<div className={styles.divider}></div>
|
| 18 |
+
|
| 19 |
+
<div className={styles.pipeline}>
|
| 20 |
+
|
| 21 |
+
<div className={`${styles.layer} ${styles.lInput}`} style={{ animationDelay: '0.04s' }}>
|
| 22 |
+
<div className={styles.layerName}>Input Tensor</div>
|
| 23 |
+
<div className={styles.layerDim}>128 × 128 × 1 — grayscale silhouette</div>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<div className={styles.conn}>
|
| 27 |
+
<div className={styles.connLine}></div>
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<div className={`${styles.layer} ${styles.lConv}`} style={{ animationDelay: '0.08s' }}>
|
| 31 |
+
<div className={styles.layerName}>Conv2d Adaptado</div>
|
| 32 |
+
<div className={styles.layerDim}>in=1 | 16 filtros | 3×3 | stride 2</div>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div className={styles.conn}>
|
| 36 |
+
<div className={styles.connLine}></div>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<div className={styles.stageGroup} style={{ animationDelay: '0.14s' }}>
|
| 40 |
+
<div className={styles.stageLabel}>Blocos Inverted Residual + SE</div>
|
| 41 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.15s' }}>
|
| 42 |
+
<div className={styles.layerName}>Bottleneck ×3 — expansão 16→64</div>
|
| 43 |
+
<div className={styles.layerDim}>DWConv 3×3 | SE squeeze 4→16 | stride 2 | h-swish</div>
|
| 44 |
+
</div>
|
| 45 |
+
<div className={`${styles.conn} ${styles.connSm}`}>
|
| 46 |
+
<div className={styles.connLine}></div>
|
| 47 |
+
</div>
|
| 48 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.18s' }}>
|
| 49 |
+
<div className={styles.layerName}>Bottleneck ×3 — expansão 24→88</div>
|
| 50 |
+
<div className={styles.layerDim}>DWConv 3×3 | SE squeeze 4→24 | stride 2 | ReLU</div>
|
| 51 |
+
</div>
|
| 52 |
+
<div className={`${styles.conn} ${styles.connSm}`}>
|
| 53 |
+
<div className={styles.connLine}></div>
|
| 54 |
+
</div>
|
| 55 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.21s' }}>
|
| 56 |
+
<div className={styles.layerName}>Bottleneck ×6 — expansão 40→240</div>
|
| 57 |
+
<div className={styles.layerDim}>DWConv 5×5 | SE squeeze 8→40 | h-swish | stride 2</div>
|
| 58 |
+
</div>
|
| 59 |
+
<div className={`${styles.conn} ${styles.connSm}`}>
|
| 60 |
+
<div className={styles.connLine}></div>
|
| 61 |
+
</div>
|
| 62 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.24s' }}>
|
| 63 |
+
<div className={styles.layerName}>Bottleneck ×4 — expansão 80→400</div>
|
| 64 |
+
<div className={styles.layerDim}>DWConv 3×3 | SE squeeze 16→80 | h-swish | stride 1</div>
|
| 65 |
+
</div>
|
| 66 |
+
<div className={`${styles.conn} ${styles.connSm}`}>
|
| 67 |
+
<div className={styles.connLine}></div>
|
| 68 |
+
</div>
|
| 69 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.27s' }}>
|
| 70 |
+
<div className={styles.layerName}>Bottleneck ×2 — expansão 112→672</div>
|
| 71 |
+
<div className={styles.layerDim}>DWConv 5×5 | SE squeeze 24→112 | h-swish | stride 1</div>
|
| 72 |
+
</div>
|
| 73 |
+
<div className={`${styles.conn} ${styles.connSm}`}>
|
| 74 |
+
<div className={styles.connLine}></div>
|
| 75 |
+
</div>
|
| 76 |
+
<div className={`${styles.layer} ${styles.lBlock}`} style={{ width: '100%', animationDelay: '0.30s' }}>
|
| 77 |
+
<div className={styles.layerName}>Bottleneck ×3 — expansão 160→960</div>
|
| 78 |
+
<div className={styles.layerDim}>DWConv 5×5 | SE squeeze 32→160 | h-swish | stride 2</div>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<div className={styles.conn}>
|
| 83 |
+
<div className={styles.connLine}></div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div className={`${styles.layer} ${styles.lConv}`} style={{ animationDelay: '0.33s' }}>
|
| 87 |
+
<div className={styles.layerName}>Conv2d 1×1</div>
|
| 88 |
+
<div className={styles.layerDim}>960 → 1280 | h-swish</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<div className={styles.conn}>
|
| 92 |
+
<div className={styles.connLine}></div>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<div className={`${styles.layer} ${styles.lPool}`} style={{ animationDelay: '0.35s' }}>
|
| 96 |
+
<div className={styles.layerName}>Global Average Pool</div>
|
| 97 |
+
<div className={styles.layerDim}>AvgPool 7×7 → 1 × 1 × 1280</div>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div className={styles.conn}>
|
| 101 |
+
<div className={styles.connLine}></div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<div className={`${styles.layer} ${styles.lFlatten}`} style={{ animationDelay: '0.38s' }}>
|
| 105 |
+
<div className={styles.layerName}>Flatten + Dropout</div>
|
| 106 |
+
<div className={styles.layerDim}>1280-dim | p=0.2</div>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div className={styles.conn}>
|
| 110 |
+
<div className={styles.connLine}></div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<div className={`${styles.layer} ${styles.lOutput}`} style={{ animationDelay: '0.41s' }}>
|
| 114 |
+
<div className={styles.layerName}>FC — Classifier Head</div>
|
| 115 |
+
<div className={styles.layerDim}>Linear(1280 → 1026) | 1025 target species + 1 OOD rejection sink</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
<div className={styles.kdBadge}>
|
| 121 |
+
<div className={styles.kdBadgeIcon}>↓</div>
|
| 122 |
+
<div className={styles.kdBadgeText}>
|
| 123 |
+
Destilado de 5 Professores ResNet-18 (230 MB) via L<sub>total</sub> = (1−α)L<sub>hard</sub> + αL<sub>soft</sub> + γL<sub>OOD</sub>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<div className={styles.legend}>
|
| 128 |
+
<div className={styles.legendItem}>
|
| 129 |
+
<div className={`${styles.legDot} ${styles.legCyan}`}></div>I/O
|
| 130 |
+
</div>
|
| 131 |
+
<div className={styles.legendItem}>
|
| 132 |
+
<div className={`${styles.legDot} ${styles.legGreen}`}></div>Convolucional
|
| 133 |
+
</div>
|
| 134 |
+
<div className={styles.legendItem}>
|
| 135 |
+
<div className={`${styles.legDot} ${styles.legPurple}`}></div>Bottleneck + SE
|
| 136 |
+
</div>
|
| 137 |
+
<div className={styles.legendItem}>
|
| 138 |
+
<div className={`${styles.legDot} ${styles.legAmber}`}></div>Pooling / Flatten
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
</div>
|
| 143 |
+
);
|
| 144 |
+
}
|
frontend/src/components/MobileNetV3Diagram.module.css
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.card {
|
| 2 |
+
--surface: rgba(10, 10, 26, 0.45);
|
| 3 |
+
--cyan: #00f2fe;
|
| 4 |
+
--cyan-dim: rgba(0, 242, 254, 0.08);
|
| 5 |
+
--cyan-glow: rgba(0, 242, 254, 0.35);
|
| 6 |
+
--green: #34d399;
|
| 7 |
+
--green-dim: rgba(52, 211, 153, 0.08);
|
| 8 |
+
--green-glow: rgba(52, 211, 153, 0.35);
|
| 9 |
+
--purple: #c084fc;
|
| 10 |
+
--purple-dim: rgba(192, 132, 252, 0.08);
|
| 11 |
+
--purple-glow: rgba(192, 132, 252, 0.35);
|
| 12 |
+
--amber: #fbbf24;
|
| 13 |
+
--amber-dim: rgba(251, 191, 36, 0.06);
|
| 14 |
+
--gray-dim: rgba(255, 255, 255, 0.02);
|
| 15 |
+
--border-faint: var(--border-glass);
|
| 16 |
+
--text: var(--text-primary);
|
| 17 |
+
--text-muted: var(--text-secondary);
|
| 18 |
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
| 19 |
+
--font-head: inherit;
|
| 20 |
+
|
| 21 |
+
position: relative;
|
| 22 |
+
z-index: 1;
|
| 23 |
+
width: 100%;
|
| 24 |
+
max-width: 670px;
|
| 25 |
+
background: var(--surface);
|
| 26 |
+
border: 1px solid var(--border-faint);
|
| 27 |
+
border-radius: 24px;
|
| 28 |
+
padding: 40px 40px 44px;
|
| 29 |
+
backdrop-filter: blur(20px) saturate(160%);
|
| 30 |
+
-webkit-backdrop-filter: blur(20px) saturate(160%);
|
| 31 |
+
box-shadow:
|
| 32 |
+
0 0 0 1px rgba(52, 211, 153, 0.06),
|
| 33 |
+
0 24px 80px rgba(0, 0, 0, 0.45),
|
| 34 |
+
inset 0 1px 1px rgba(255, 255, 255, 0.08);
|
| 35 |
+
margin: 2.5rem auto;
|
| 36 |
+
transition: box-shadow 0.3s ease;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.card:hover {
|
| 40 |
+
box-shadow:
|
| 41 |
+
0 0 0 1px rgba(52, 211, 153, 0.1),
|
| 42 |
+
0 25px 90px rgba(0, 0, 0, 0.55),
|
| 43 |
+
inset 0 1px 1px rgba(255, 255, 255, 0.12);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.card::before, .card::after {
|
| 47 |
+
content: '';
|
| 48 |
+
position: absolute;
|
| 49 |
+
width: 24px; height: 24px;
|
| 50 |
+
border-color: var(--green);
|
| 51 |
+
border-style: solid;
|
| 52 |
+
}
|
| 53 |
+
.card::before { top:-1px; left:-1px; border-width:2px 0 0 2px; border-radius:24px 0 0 0; }
|
| 54 |
+
.card::after { bottom:-1px; right:-1px; border-width:0 2px 2px 0; border-radius:0 0 24px 0; }
|
| 55 |
+
|
| 56 |
+
@keyframes scanline {
|
| 57 |
+
0% { top: 0; opacity: 0.4; }
|
| 58 |
+
100% { top: 100%; opacity: 0; }
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.cardScanline {
|
| 62 |
+
position: absolute; inset: 0;
|
| 63 |
+
overflow: hidden; border-radius: 24px; pointer-events: none;
|
| 64 |
+
}
|
| 65 |
+
.cardScanline::after {
|
| 66 |
+
content: '';
|
| 67 |
+
position: absolute; left:0; right:0; height:80px;
|
| 68 |
+
background: linear-gradient(to bottom, transparent, rgba(52, 211, 153, 0.02), transparent);
|
| 69 |
+
animation: scanline 6s linear infinite;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.header { text-align: center; margin-bottom: 32px; }
|
| 73 |
+
|
| 74 |
+
.title {
|
| 75 |
+
font-family: var(--font-head);
|
| 76 |
+
font-size: 26px; font-weight: 800;
|
| 77 |
+
letter-spacing: 0.18em; text-transform: uppercase;
|
| 78 |
+
color: var(--green);
|
| 79 |
+
text-shadow: 0 0 15px var(--green-glow);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.subtitle {
|
| 83 |
+
font-family: var(--font-mono);
|
| 84 |
+
font-size: 11px; color: var(--text-muted);
|
| 85 |
+
letter-spacing: 0.12em; margin-top: 8px;
|
| 86 |
+
opacity: 0.8;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.divider {
|
| 90 |
+
width: 100%; height: 1px;
|
| 91 |
+
background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
|
| 92 |
+
margin-bottom: 28px;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
/* ── pipeline ── */
|
| 96 |
+
.pipeline {
|
| 97 |
+
display: flex;
|
| 98 |
+
flex-direction: column;
|
| 99 |
+
align-items: center;
|
| 100 |
+
gap: 0;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/* ── generic layer ── */
|
| 104 |
+
.layer {
|
| 105 |
+
width: 100%;
|
| 106 |
+
border-radius: 12px;
|
| 107 |
+
padding: 12px 18px;
|
| 108 |
+
border: 1px solid transparent;
|
| 109 |
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
| 110 |
+
position: relative;
|
| 111 |
+
}
|
| 112 |
+
.layer:hover { transform: scale(1.012) translateX(-2px); }
|
| 113 |
+
|
| 114 |
+
.layerName {
|
| 115 |
+
font-family: var(--font-head);
|
| 116 |
+
font-weight: 700; font-size: 14px;
|
| 117 |
+
letter-spacing: 0.08em; text-transform: uppercase;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.layerDim {
|
| 121 |
+
font-family: var(--font-mono);
|
| 122 |
+
font-size: 10px; margin-top: 4px; letter-spacing: 0.04em;
|
| 123 |
+
opacity: 0.85;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/* input */
|
| 127 |
+
.lInput {
|
| 128 |
+
background: var(--cyan-dim);
|
| 129 |
+
border-color: rgba(0, 242, 254, 0.3);
|
| 130 |
+
box-shadow: 0 0 12px rgba(0, 242, 254, 0.05);
|
| 131 |
+
}
|
| 132 |
+
.lInput .layerName { color: var(--cyan); text-shadow: 0 0 10px var(--cyan-glow); }
|
| 133 |
+
.lInput .layerDim { color: rgba(0, 242, 254, 0.7); }
|
| 134 |
+
.lInput:hover { box-shadow: 0 0 20px rgba(0, 242, 254, 0.15); }
|
| 135 |
+
|
| 136 |
+
/* convolutional */
|
| 137 |
+
.lConv {
|
| 138 |
+
background: var(--green-dim);
|
| 139 |
+
border-color: rgba(52, 211, 153, 0.3);
|
| 140 |
+
border-left: 3px solid var(--green);
|
| 141 |
+
border-radius: 0 12px 12px 0;
|
| 142 |
+
box-shadow: 0 0 12px rgba(52, 211, 153, 0.05);
|
| 143 |
+
}
|
| 144 |
+
.lConv .layerName { color: var(--green); text-shadow: 0 0 10px var(--green-glow); }
|
| 145 |
+
.lConv .layerDim { color: rgba(52, 211, 153, 0.7); }
|
| 146 |
+
.lConv:hover { box-shadow: -2px 0 16px rgba(52, 211, 153, 0.15); }
|
| 147 |
+
|
| 148 |
+
/* stage group header */
|
| 149 |
+
.stageGroup {
|
| 150 |
+
width: 100%;
|
| 151 |
+
position: relative;
|
| 152 |
+
display: flex;
|
| 153 |
+
flex-direction: column;
|
| 154 |
+
align-items: center;
|
| 155 |
+
margin-top: 8px;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
.stageLabel {
|
| 159 |
+
font-family: var(--font-mono);
|
| 160 |
+
font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
|
| 161 |
+
color: var(--green);
|
| 162 |
+
opacity: 0.7;
|
| 163 |
+
margin-bottom: 10px;
|
| 164 |
+
align-self: flex-start;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/* individual bottleneck block */
|
| 168 |
+
.lBlock {
|
| 169 |
+
background: var(--purple-dim);
|
| 170 |
+
border-color: rgba(192, 132, 252, 0.25);
|
| 171 |
+
box-shadow: 0 0 8px rgba(192, 132, 252, 0.03);
|
| 172 |
+
}
|
| 173 |
+
.lBlock .layerName { color: var(--purple); text-shadow: 0 0 8px var(--purple-glow); }
|
| 174 |
+
.lBlock .layerDim { color: rgba(192, 132, 252, 0.7); }
|
| 175 |
+
.lBlock:hover { box-shadow: 0 0 16px rgba(192, 132, 252, 0.15); }
|
| 176 |
+
|
| 177 |
+
/* pooling / flatten */
|
| 178 |
+
.lPool {
|
| 179 |
+
background: var(--gray-dim);
|
| 180 |
+
border-color: rgba(255, 255, 255, 0.08);
|
| 181 |
+
border-left: 3px solid var(--green);
|
| 182 |
+
border-radius: 0 12px 12px 0;
|
| 183 |
+
}
|
| 184 |
+
.lPool .layerName { color: var(--text); }
|
| 185 |
+
.lPool .layerDim { color: var(--text-muted); }
|
| 186 |
+
.lPool:hover { box-shadow: -2px 0 12px rgba(52, 211, 153, 0.12); }
|
| 187 |
+
|
| 188 |
+
.lFlatten {
|
| 189 |
+
background: var(--amber-dim);
|
| 190 |
+
border-color: rgba(251, 191, 36, 0.25);
|
| 191 |
+
border-left: 3px solid var(--amber);
|
| 192 |
+
border-radius: 0 12px 12px 0;
|
| 193 |
+
}
|
| 194 |
+
.lFlatten .layerName { color: var(--amber); }
|
| 195 |
+
.lFlatten .layerDim { color: rgba(251, 191, 36, 0.7); }
|
| 196 |
+
|
| 197 |
+
/* output */
|
| 198 |
+
.lOutput {
|
| 199 |
+
background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(52, 211, 153, 0.06));
|
| 200 |
+
border-color: rgba(192, 132, 252, 0.4);
|
| 201 |
+
box-shadow: 0 0 16px rgba(192, 132, 252, 0.1), inset 0 1px 0 rgba(192, 132, 252, 0.1);
|
| 202 |
+
}
|
| 203 |
+
.lOutput .layerName { color: var(--purple); text-shadow: 0 0 12px var(--purple-glow); }
|
| 204 |
+
.lOutput .layerDim { color: rgba(192, 132, 252, 0.75); }
|
| 205 |
+
.lOutput:hover { box-shadow: 0 0 24px rgba(192, 132, 252, 0.2); }
|
| 206 |
+
|
| 207 |
+
/* ── connector (main flow arrow) ── */
|
| 208 |
+
.conn {
|
| 209 |
+
display: flex; align-items: center; justify-content: center;
|
| 210 |
+
height: 24px; width: 100%; position: relative;
|
| 211 |
+
}
|
| 212 |
+
.connLine {
|
| 213 |
+
width: 1.5px; height: 100%;
|
| 214 |
+
background: linear-gradient(to bottom, var(--green), var(--purple));
|
| 215 |
+
position: relative;
|
| 216 |
+
}
|
| 217 |
+
.connLine::after {
|
| 218 |
+
content: '';
|
| 219 |
+
position: absolute; bottom: -1px; left: 50%;
|
| 220 |
+
transform: translateX(-50%);
|
| 221 |
+
border-left: 4px solid transparent;
|
| 222 |
+
border-right: 4px solid transparent;
|
| 223 |
+
border-top: 6px solid var(--purple);
|
| 224 |
+
filter: drop-shadow(0 0 2px var(--purple-glow));
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
.connSm { height: 16px; }
|
| 228 |
+
|
| 229 |
+
/* ── KD badge ── */
|
| 230 |
+
.kdBadge {
|
| 231 |
+
display: flex;
|
| 232 |
+
align-items: center;
|
| 233 |
+
gap: 12px;
|
| 234 |
+
margin-top: 24px;
|
| 235 |
+
padding: 12px 20px;
|
| 236 |
+
background: linear-gradient(135deg, rgba(0, 242, 254, 0.06), rgba(52, 211, 153, 0.04));
|
| 237 |
+
border: 1px solid rgba(0, 242, 254, 0.2);
|
| 238 |
+
border-radius: 12px;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.kdBadgeIcon {
|
| 242 |
+
font-size: 20px;
|
| 243 |
+
color: var(--cyan);
|
| 244 |
+
flex-shrink: 0;
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
.kdBadgeText {
|
| 248 |
+
font-family: var(--font-mono);
|
| 249 |
+
font-size: 10.5px;
|
| 250 |
+
color: var(--text-muted);
|
| 251 |
+
line-height: 1.5;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
/* ── legend ── */
|
| 255 |
+
.legend {
|
| 256 |
+
display: flex; gap: 20px;
|
| 257 |
+
justify-content: center;
|
| 258 |
+
margin-top: 28px;
|
| 259 |
+
flex-wrap: wrap;
|
| 260 |
+
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
| 261 |
+
padding-top: 20px;
|
| 262 |
+
}
|
| 263 |
+
.legendItem {
|
| 264 |
+
display: flex; align-items: center; gap: 8px;
|
| 265 |
+
font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
|
| 266 |
+
}
|
| 267 |
+
.legDot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
|
| 268 |
+
.legCyan { background:var(--cyan); box-shadow:0 0 6px var(--cyan-glow); }
|
| 269 |
+
.legGreen { background:var(--green); box-shadow:0 0 6px var(--green-glow); }
|
| 270 |
+
.legPurple { background:var(--purple); box-shadow:0 0 6px var(--purple-glow); }
|
| 271 |
+
.legAmber { background:var(--amber); box-shadow:0 0 6px rgba(251, 191, 36, 0.3); }
|
| 272 |
+
|
| 273 |
+
/* ── entrance animations ── */
|
| 274 |
+
@keyframes fadeUp {
|
| 275 |
+
from { opacity:0; transform:translateY(10px); }
|
| 276 |
+
to { opacity:1; transform:translateY(0); }
|
| 277 |
+
}
|
| 278 |
+
.layer, .stageGroup { animation: fadeUp 0.4s ease both; }
|
| 279 |
+
|
| 280 |
+
@media (max-width: 600px) {
|
| 281 |
+
.card {
|
| 282 |
+
padding: 28px 24px;
|
| 283 |
+
border-radius: 16px;
|
| 284 |
+
}
|
| 285 |
+
.card::before { border-radius: 16px 0 0 0; }
|
| 286 |
+
.card::after { border-radius: 0 0 16px 0; }
|
| 287 |
+
.title {
|
| 288 |
+
font-size: 20px;
|
| 289 |
+
}
|
| 290 |
+
.layerName {
|
| 291 |
+
font-size: 12px;
|
| 292 |
+
}
|
| 293 |
+
.layerDim {
|
| 294 |
+
font-size: 9px;
|
| 295 |
+
}
|
| 296 |
+
}
|