-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (42 loc) · 2.06 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>FGSM Attack</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0">
</head>
<body id = "body">
<div id = "parent-container">
<div id = "userinput">
<canvas id="canvas" width="300" height="300"></canvas>
<br>
<form id="myForm">
<div class="form-group">
<label for="imageLabel">Image Label</label>
<input type="number" min = 0 max = 9 class="form-control" id="imageLabel" placeholder="">
</div>
<div class="form-group">
<label for="epsilonValue">Epsilon Value</label>
<input type="text" class="form-control" id="epsilonValue" placeholder="">
</div>
</form>
<button onClick="erasePad()" class="btn btn-primary">Erase</button>
<button onClick="handleImageStuff()" class="btn btn-primary">Submit</button>
</div>
<div id = "original">
<canvas id="original image" width="300" height="300"></canvas>
<div id = "original title"></div>
<div id = "original prediction"></div>
</div>
<div id = "adversarial">
<canvas id="adversarial image" width="300" height="300"></canvas>
<div id = "adversarial title"></div>
<div id = "adversarial prediction"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>