-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
753 lines (659 loc) · 24.7 KB
/
index.html
File metadata and controls
753 lines (659 loc) · 24.7 KB
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SmartSplat Image Viewer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="image_gaussians/icon.png" />
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8/normalize.css" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.main-content {
margin: 0 2em;
padding: 2em 0;
}
h1 {
text-align: center;
margin-bottom: 1em;
color: black;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
font-size: 2.2em;
font-weight: 300;
}
h2 {
margin: 3em 0 2em 0;
padding: 1em 0 0.5em 0;
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
text-align: center;
color: white;
font-size: 1.8em;
font-weight: 400;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
background: rgba(255, 255, 255, 0.1);
border-radius: 15px 15px 0 0;
}
.header {
text-align: center;
margin-bottom: 3em;
padding: 2em;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.icon {
width: 100px;
height: auto;
/* margin-bottom: 1.5em; */
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 25px;
font-size: 1em;
font-weight: 500;
text-decoration: none;
transition: all 0.3s ease;
margin: 0.5em;
display: inline-block;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
}
.button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.button:hover::before {
left: 100%;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 24px;
max-width: 1400px;
margin: 0 auto;
padding: 2em;
}
.card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
padding: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
overflow: hidden;
position: relative;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.card .image {
width: 100%;
height: 160px;
background-size: cover;
background-position: center;
border-radius: 15px;
margin-bottom: 15px;
transition: transform 0.3s ease;
cursor: pointer;
}
.card:hover .image {
transform: scale(1.05);
}
.card .name {
font-weight: 600;
margin-bottom: 12px;
word-break: break-word;
text-align: center;
font-size: 1.1em;
color: #333;
}
.card .info {
color: #666;
font-size: 0.9em;
line-height: 1.6;
background: rgba(0, 0, 0, 0.02);
padding: 12px;
border-radius: 10px;
}
/* Optimized right-side menu */
.floating-nav {
position: fixed;
top: 50%;
right: 1px;
transform: translateY(-50%);
z-index: 1000;
width: 100px;
}
.nav-toggle {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px;
border-radius: 50px 0 0 50px;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: all 0.3s ease;
z-index: 1001;
}
.nav-toggle:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
transform: translateY(-50%) translateX(-5px);
}
.nav-toggle svg {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}
.nav-toggle.active svg {
transform: rotate(180deg);
}
.nav-panel {
position: absolute;
top: 50%;
right: 30px;
transform: translateY(-50%) translateX(100%);
width: 140px;
max-height: 60vh;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 15px;
box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
opacity: 0;
visibility: hidden;
}
.nav-panel.open {
transform: translateY(-50%) translateX(0);
opacity: 1;
visibility: visible;
}
.nav-panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.nav-panel-header {
padding: 15px;
text-align: center;
font-weight: 600;
font-size: 14px;
color: #333;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(255, 255, 255, 0.5);
}
.nav-panel-content {
max-height: calc(60vh - 60px);
overflow-y: auto;
padding: 8px 0;
}
.nav-panel-content::-webkit-scrollbar {
width: 6px;
}
.nav-panel-content::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 3px;
}
.nav-panel-content::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 3px;
}
.nav-panel ul {
list-style: none;
padding: 0;
margin: 0;
}
.nav-panel li {
margin: 0;
}
.nav-panel a {
display: block;
padding: 10px 15px;
color: #333;
font-weight: 500;
text-decoration: none;
font-size: 13px;
transition: all 0.3s ease;
border-left: 3px solid transparent;
}
.nav-panel a:hover {
background: rgba(102, 126, 234, 0.1);
border-left-color: #667eea;
transform: translateX(3px);
}
.nav-panel a.active {
background: rgba(102, 126, 234, 0.2);
border-left-color: #667eea;
color: #667eea;
font-weight: 600;
}
/* Disclaimer styles optimization */
.disclaimer {
max-width: 900px;
margin: 2em auto;
padding: 2em;
background: rgba(255, 248, 225, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 236, 179, 0.5);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
font-size: 0.95em;
color: #5d4037;
line-height: 1.6;
}
.disclaimer-icon {
font-size: 2em;
margin-right: 15px;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.disclaimer-title {
font-size: 1.4em;
font-weight: 700;
margin-bottom: 1em;
color: #4a2c2a;
}
.disclaimer ul {
margin: 1em 0;
padding-left: 1.5em;
}
.disclaimer li {
margin-bottom: 1em;
}
/* Responsive design */
@media (max-width: 768px) {
.main-content {
margin: 0 1em;
}
.floating-nav {
width: 160px;
right: 10px;
}
.nav-panel {
width: 140px;
right: 40px;
}
.container {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 16px;
padding: 1em;
}
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.4em;
}
}
/* Scroll trigger animation */
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.card {
animation: slideInUp 0.6s ease forwards;
}
/* Loading animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes colorFade {
0%,
100% {
color: #2e8b57;
}
50% {
color: #ff6347;
}
}
.fancy-text {
font-family: cursive;
font-size: 28px;
font-style: italic;
font-weight: bold;
text-align: center;
animation: colorFade 3s infinite ease-in-out;
}
</style>
</head>
<body>
<div id="top"></div>
<div class="floating-nav">
<button class="nav-toggle" aria-label="Toggle Menu" id="navToggle">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<div class="nav-panel" id="navPanel">
<div class="nav-panel-header">
<div>📋 Menu</div>
</div>
<div class="nav-panel-content">
<ul id="navList">
<li><a href="#top">🔝 Back to Top</a></li>
</ul>
</div>
</div>
</div>
<div class="main-content" id="mainContent">
<div class="header">
<img src="image_gaussians/icon.png" alt="SmartSplat Icon" class="icon" />
<h1 style="margin: 0; font-weight: bold; text-align: center;">
SmartSplat: Feature-Smart Gaussians for Scalable Compression of<br>
Ultra-High-Resolution Images
</h1>
<br>
<h3 align="center">
<a href="https://github.com/lif314"><strong>Linfei Li<sup>1</sup></strong></a>
·
<a href="https://scholar.google.com/citations?user=8VOk_S4AAAAJ&hl=en">
<strong>Lin Zhang<sup>1*</sup></strong>
</a>
·
<a href="https://scholar.google.com/citations?user=rrkp_usAAAAJ&hl=en">
<strong>Zhong Wang<sup>2</sup></strong>
</a>
·
<a href="https://scholar.google.com/citations?user=A0N_mS0AAAAJ&hl=en">
<strong>Ying Shen<sup>1</sup></strong>
</a>
</h3>
<br>
<h3 align="center" style="font-size: 0.95em;">
<sup>1</sup>School of Computer Science and Technology, Tongji University<br>
<sup>2</sup>Department of Automation, Shanghai Jiao Tong University
</h3>
<div style="display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin: 1.5em 0;">
<a class="button" href="https://github.com/lif314/SmartSplat" target="_blank">
🔗 Code
</a>
<a class="button" href="https://arxiv.org/abs/2512.20377" target="_blank">
📄 Paper (ArXiv)
</a>
</div>
<div style="margin-top: 2em;">
<p class="fancy-text">Smarter Gaussians, Smaller Images!</p>
<img src="image_gaussians/teaser.gif" alt="Teaser Animation"
style="width: 100%; max-width: 900px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);" />
<p style="margin-top: 0.8em; font-size: 14px; color: #666; font-weight: 500;">
Raw PNG: <strong>10848 × 16320</strong>, 189 MB
</p>
</div>
<div class="disclaimer">
<div style="display: flex; align-items: flex-start; gap: 15px;">
<div class="disclaimer-icon">⚠️</div>
<div style="flex: 1;">
<div class="disclaimer-title">Disclaimer</div>
<ul>
<li>Below, we demonstrate the advantages of SmartSplat in storing and transmitting
ultra-high-resolution images, where it can compress images from hundreds of megabytes to
just a few megabytes while maintaining high visual quality.</li>
<li>Similar to JPEG, SmartSplat can provide varying compression ratios and qualities
depending on the scenario.</li>
<li>To achieve efficient rendering of Image Gaussians on WebGPU, the visualization NPZ files
simplify the data by converting float32 attributes to float16 precision, thereby
enhancing rendering speed and reducing file size; however, this results in discrepancies
between the data format and the quantization strategy described in the original paper.
</li>
<li><strong>You can click on the image cards to view the Image Gaussians. Due to network
conditions (such as VPN), loading may be slow—please be patient!</strong></li>
</ul>
</div>
</div>
</div>
</div>
<div id="mainContainer"></div>
</div>
<script>
const navPanel = document.getElementById('navPanel');
const navToggle = document.getElementById('navToggle');
const mainContent = document.getElementById('mainContent');
let scrollTimeout;
// Scroll wheel event listener - auto expand menu
let isScrolling = false;
window.addEventListener('wheel', (e) => {
if (!isScrolling) {
navPanel.classList.add('open');
navToggle.classList.add('active');
isScrolling = true;
}
clearTimeout(scrollTimeout);
scrollTimeout = setTimeout(() => {
if (!navPanel.matches(':hover') && !navToggle.matches(':hover')) {
navPanel.classList.remove('open');
navToggle.classList.remove('active');
}
isScrolling = false;
}, 2000);
});
// Manual menu toggle
navToggle.addEventListener('click', () => {
const isOpen = navPanel.classList.contains('open');
if (isOpen) {
navPanel.classList.remove('open');
navToggle.classList.remove('active');
} else {
navPanel.classList.add('open');
navToggle.classList.add('active');
}
});
// Keep menu open when hovering
navPanel.addEventListener('mouseenter', () => {
clearTimeout(scrollTimeout);
});
navPanel.addEventListener('mouseleave', () => {
if (!isScrolling) {
scrollTimeout = setTimeout(() => {
navPanel.classList.remove('open');
navToggle.classList.remove('active');
}, 1000);
}
});
// Close menu when clicking outside
document.addEventListener('click', (e) => {
if (!navPanel.contains(e.target) && !navToggle.contains(e.target)) {
navPanel.classList.remove('open');
navToggle.classList.remove('active');
}
});
// Main content loading
document.addEventListener("DOMContentLoaded", async () => {
const datasetFolders = [
'DIV16K100_CR500',
'DIV16K_CR3000',
'DIV16K_CR500',
'DIV16K_CR200',
'DIV8K_CR1000',
'DIV8K_CR500',
'DIV8K_CR200',
'DIV8K_CR100',
'DIV8K_CR50',
'DIV8K_CR20',
];
const navList = document.getElementById("navList");
datasetFolders.forEach(folder => {
const li = document.createElement("li");
const link = document.createElement("a");
link.href = `#${folder}`;
link.textContent = folder.replace(/_/g, " ");
li.appendChild(link);
navList.appendChild(li);
});
const mainContainer = document.getElementById("mainContainer");
function formatBytes(kb) {
if (!kb) return "N/A";
const mb = kb / 1024;
return mb >= 1 ? mb.toFixed(2) + " MB" : kb.toFixed(1) + " KB";
}
// Add loading indicator
const loadingDiv = document.createElement("div");
loadingDiv.style.textAlign = "center";
loadingDiv.style.padding = "2em";
loadingDiv.style.color = "white";
loadingDiv.innerHTML = '<div class="loading"></div><p style="margin-top: 1em;">Loading datasets...</p>';
mainContainer.appendChild(loadingDiv);
for (const dataset of datasetFolders) {
const jsonUrl = `image_gaussians/${dataset}/filelist.json`;
try {
const res = await fetch(jsonUrl);
if (!res.ok) throw new Error(`Failed to fetch ${jsonUrl}`);
const files = await res.json();
const section = document.createElement("section");
section.id = dataset;
section.style.marginBottom = "3em";
const title = document.createElement("h2");
title.textContent = dataset.replace(/_/g, " ");
section.appendChild(title);
const container = document.createElement("div");
container.className = "container";
section.appendChild(container);
mainContainer.appendChild(section);
for (const item of files) {
let imageUrl, npzUrl;
if (dataset.includes("DIV16K100_CR500")) {
const namePart = item.name.split("_")[0];
npzUrl = `image_gaussians/${dataset}/${namePart}.npz`;
imageUrl = `image_gaussians/card_imgs/DIV16K_100/${item.name}.jpg`;
} else if (dataset.includes("DIV16K")) {
const namePart = item.name.split("_")[0];
npzUrl = `image_gaussians/${dataset}/${namePart}.npz`;
imageUrl = `image_gaussians/card_imgs/DIV16K/${item.name}.jpg`;
} else {
npzUrl = `image_gaussians/${dataset}/${item.name}.npz`;
imageUrl = `image_gaussians/card_imgs/DIV8K/${item.name}.jpg`;
}
const card = document.createElement("div");
card.className = "card";
card.innerHTML = `
<p class="name">${item.name}</p>
<a href="viewer.html?file=${encodeURIComponent(npzUrl)}" target="_blank" rel="noopener noreferrer">
<div class="image" style="background-image: url('${imageUrl}')"></div>
</a>
<p class="info">
Resolution: ${item.resolution?.[0] ?? "?"} × ${item.resolution?.[1] ?? "?"}<br>
Raw PNG: ${formatBytes(item.png_size)}<br>
SmartSplat (NPZ): ${formatBytes(item.npz_size)}<br>
#Gaussians: ${item.num_gaussians ?? "?"}
</p>
`;
container.appendChild(card);
}
} catch (err) {
console.warn(`Error loading ${dataset}:`, err);
const error = document.createElement("div");
error.style.color = "white";
error.style.textAlign = "center";
error.style.padding = "2em";
error.style.background = "rgba(255,0,0,0.1)";
error.style.borderRadius = "15px";
error.style.margin = "2em";
error.innerHTML = `<p>⚠️ Failed to load dataset: ${dataset}</p>`;
mainContainer.appendChild(error);
}
}
// Remove loading indicator
loadingDiv.remove();
// Add smooth scroll behavior for navigation links
document.querySelectorAll('#navList a').forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const targetId = link.getAttribute('href').substring(1);
const targetElement = document.getElementById(targetId);
if (targetElement) {
targetElement.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Highlight active section in navigation
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const id = entry.target.id;
document.querySelectorAll('#navList a').forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === `#${id}`) {
link.classList.add('active');
}
});
}
});
}, {
rootMargin: '-20% 0px -70% 0px'
});
// Observe all sections
document.querySelectorAll('section[id]').forEach(section => {
observer.observe(section);
});
});
</script>
</body>
</html>