Spaces:
Running
Running
adaptive images
Browse files- index.html +2 -2
- static/css/custom.css +0 -43
- static/images/{ada_c10_e2.png β adaptive/0.png} +0 -0
- static/images/{ada_c10_e4.png β adaptive/1.png} +0 -0
- static/images/{ada_c10_e8.png β adaptive/2.png} +0 -0
- static/images/{ada_c10_e16.png β adaptive/3.png} +0 -0
- static/images/{ada_c10_e32.png β adaptive/4.png} +0 -0
- static/images/{ada_c10_e64.png β adaptive/5.png} +0 -0
- static/images/{ada_c10_e128.png β adaptive/6.png} +0 -0
- static/images/{ada_imgnet_e128.png β adaptive/ada_imgnet_e128.png} +0 -0
- static/images/{ada_imgnet_e16.png β adaptive/ada_imgnet_e16.png} +0 -0
- static/images/{ada_imgnet_e2.png β adaptive/ada_imgnet_e2.png} +0 -0
- static/images/{ada_imgnet_e32.png β adaptive/ada_imgnet_e32.png} +0 -0
- static/images/{ada_imgnet_e4.png β adaptive/ada_imgnet_e4.png} +0 -0
- static/images/{ada_imgnet_e64.png β adaptive/ada_imgnet_e64.png} +0 -0
- static/images/{ada_imgnet_e8.png β adaptive/ada_imgnet_e8.png} +0 -0
- static/js/index.js +3 -3
index.html
CHANGED
@@ -518,7 +518,7 @@
|
|
518 |
|
519 |
<footer class="footer">
|
520 |
<div class="container">
|
521 |
-
<div class="content has-text-centered">
|
522 |
<a class="icon-link" target="_blank"
|
523 |
href="./static/videos/nerfies_paper.pdf">
|
524 |
<i class="fas fa-file-pdf"></i>
|
@@ -526,7 +526,7 @@
|
|
526 |
<a class="icon-link" href="https://github.com/keunhong" target="_blank" class="external-link" disabled>
|
527 |
<i class="fab fa-github"></i>
|
528 |
</a>
|
529 |
-
</div>
|
530 |
<div class="columns is-centered">
|
531 |
<div class="column is-8">
|
532 |
<div class="content">
|
|
|
518 |
|
519 |
<footer class="footer">
|
520 |
<div class="container">
|
521 |
+
<!-- <div class="content has-text-centered">
|
522 |
<a class="icon-link" target="_blank"
|
523 |
href="./static/videos/nerfies_paper.pdf">
|
524 |
<i class="fas fa-file-pdf"></i>
|
|
|
526 |
<a class="icon-link" href="https://github.com/keunhong" target="_blank" class="external-link" disabled>
|
527 |
<i class="fab fa-github"></i>
|
528 |
</a>
|
529 |
+
</div> -->
|
530 |
<div class="columns is-centered">
|
531 |
<div class="column is-8">
|
532 |
<div class="content">
|
static/css/custom.css
CHANGED
@@ -5,46 +5,3 @@
|
|
5 |
#adaptive-loss-formula .formula-list a { display: inline-block; width: 250px; margin: 0 20px; padding: 8px 10px; text-align: center; background: #DDD; cursor: pointer; text-decoration: none; color: #333; border-radius: 10px; user-select: none; transition-duration: 0.3s; }
|
6 |
|
7 |
#adaptive-loss-formula .formula-list a:hover, #adaptive-demo #defense-methods .defense:hover { background: #555; color: #FFF; }
|
8 |
-
|
9 |
-
|
10 |
-
#adaptive-demo #defense-methods .options:checked ~ .defense { color: #FFF; background: #555; }
|
11 |
-
|
12 |
-
#adaptive-demo #defense-methods .defense { display: inline-block; width: 60%; margin: 2% auto 8%; padding: 8px 10px; text-align: center; background: #DDD; cursor: pointer; text-decoration: none; color: #333; border-radius: 10px; user-select: none; transition-duration: 0.3s; }
|
13 |
-
|
14 |
-
#adaptive-demo .legend { text-align: center; width: 70%; margin: 0 auto; }
|
15 |
-
|
16 |
-
#adaptive-demo .figure-option { text-align: center; width: 70%; margin: 4% auto 0; /* Customize the label (the container) */ /* Hide the browser's default checkbox */ /* Create a custom checkbox */ /* On mouse-over, add a grey background color */ /* When the checkbox is checked, add a blue background */ /* Create the checkmark/indicator (hidden when not checked) */ /* Show the checkmark when checked */ /* Style the checkmark/indicator */ }
|
17 |
-
#adaptive-demo .figure-option .container { display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 22px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
|
18 |
-
#adaptive-demo .figure-option .container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
|
19 |
-
#adaptive-demo .figure-option .checkmark { position: absolute; top: 4px; left: 8px; height: 25px; width: 25px; background-color: #eee; }
|
20 |
-
#adaptive-demo .figure-option .container:hover input ~ .checkmark { background-color: #ccc; }
|
21 |
-
#adaptive-demo .figure-option .container input:checked ~ .checkmark { background-color: #9b9bff; }
|
22 |
-
#adaptive-demo .figure-option .checkmark:after { content: ""; position: absolute; display: none; }
|
23 |
-
#adaptive-demo .figure-option .container input:checked ~ .checkmark:after { display: block; }
|
24 |
-
#adaptive-demo .figure-option .container .checkmark:after { left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
|
25 |
-
|
26 |
-
#adaptive-demo .figure { margin: 0 auto; display: block; }
|
27 |
-
|
28 |
-
#adaptive-demo .figure #original { display: none; }
|
29 |
-
|
30 |
-
#adaptive-demo .figure img { user-drag: none; -webkit-user-drag: none; user-select: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; pointer-events: none; position: relative; left: 35px; }
|
31 |
-
|
32 |
-
#adaptive-demo .figure-caption { width: 240px; text-align: center; display: block; margin: 0 auto; padding: 10px 0 0; font-size: .8em; }
|
33 |
-
|
34 |
-
#adaptive-demo .figure-caption ul { padding-left: 0; }
|
35 |
-
|
36 |
-
#adaptive-demo .figure-caption ul li { list-style: none; }
|
37 |
-
|
38 |
-
#adaptive-demo .figure-caption .model-prediction { font-weight: bold; }
|
39 |
-
|
40 |
-
#adaptive-demo .figure-caption .correct { color: #009926; }
|
41 |
-
|
42 |
-
#adaptive-demo .figure-caption .wrong { color: #e31327; }
|
43 |
-
|
44 |
-
#adaptive-demo .attack-success-rate { display: inline-block; width: 60%; margin: 2% auto 8%; padding: 8px 10px; text-align: center; text-decoration: none; background: #DDD; color: #333; border-radius: 10px; user-select: none; }
|
45 |
-
#adaptive-demo .attack-success-rate .jailbreak-metric { font-size: 0.75em; display: block; }
|
46 |
-
#adaptive-demo .attack-success-rate .attack-success-rate-value { font-size: 1.5em; font-family: "sans-serif"; color: #820000; }
|
47 |
-
|
48 |
-
#adaptive-demo .benign-refusal-rate { display: inline-block; width: 60%; margin: 2% auto 8%; padding: 8px 10px; text-align: center; text-decoration: none; background: #DDD; color: #333; border-radius: 10px; user-select: none; }
|
49 |
-
#adaptive-demo .benign-refusal-rate .jailbreak-metric { font-size: 0.75em; display: block; }
|
50 |
-
#adaptive-demo .benign-refusal-rate .benign-refusal-rate-value { font-size: 1.5em; font-family: "sans-serif"; color: #820000; }
|
|
|
5 |
#adaptive-loss-formula .formula-list a { display: inline-block; width: 250px; margin: 0 20px; padding: 8px 10px; text-align: center; background: #DDD; cursor: pointer; text-decoration: none; color: #333; border-radius: 10px; user-select: none; transition-duration: 0.3s; }
|
6 |
|
7 |
#adaptive-loss-formula .formula-list a:hover, #adaptive-demo #defense-methods .defense:hover { background: #555; color: #FFF; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static/images/{ada_c10_e2.png β adaptive/0.png}
RENAMED
File without changes
|
static/images/{ada_c10_e4.png β adaptive/1.png}
RENAMED
File without changes
|
static/images/{ada_c10_e8.png β adaptive/2.png}
RENAMED
File without changes
|
static/images/{ada_c10_e16.png β adaptive/3.png}
RENAMED
File without changes
|
static/images/{ada_c10_e32.png β adaptive/4.png}
RENAMED
File without changes
|
static/images/{ada_c10_e64.png β adaptive/5.png}
RENAMED
File without changes
|
static/images/{ada_c10_e128.png β adaptive/6.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e128.png β adaptive/ada_imgnet_e128.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e16.png β adaptive/ada_imgnet_e16.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e2.png β adaptive/ada_imgnet_e2.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e32.png β adaptive/ada_imgnet_e32.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e4.png β adaptive/ada_imgnet_e4.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e64.png β adaptive/ada_imgnet_e64.png}
RENAMED
File without changes
|
static/images/{ada_imgnet_e8.png β adaptive/ada_imgnet_e8.png}
RENAMED
File without changes
|
static/js/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
window.HELP_IMPROVE_VIDEOJS = false;
|
2 |
|
3 |
-
var INTERP_BASE = "./static/
|
4 |
-
var NUM_INTERP_FRAMES =
|
5 |
|
6 |
var interp_images = [];
|
7 |
function preloadInterpolationImages() {
|
8 |
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
|
9 |
-
var path = INTERP_BASE + '/' + String(i).padStart(
|
10 |
interp_images[i] = new Image();
|
11 |
interp_images[i].src = path;
|
12 |
}
|
|
|
1 |
window.HELP_IMPROVE_VIDEOJS = false;
|
2 |
|
3 |
+
var INTERP_BASE = "./static/images/adaptive";
|
4 |
+
var NUM_INTERP_FRAMES = 7;
|
5 |
|
6 |
var interp_images = [];
|
7 |
function preloadInterpolationImages() {
|
8 |
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
|
9 |
+
var path = INTERP_BASE + '/' + String(i).padStart(2, '0') + '.png';
|
10 |
interp_images[i] = new Image();
|
11 |
interp_images[i].src = path;
|
12 |
}
|