forked from cpury/lookie-lookie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (102 loc) · 3.69 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
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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Lookie Lookie!</title>
<meta name="description" content="A website that learns to predict where you are looking at. Written in TensorFlow.js">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Roboto|Source+Code+Pro" rel="stylesheet">
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<canvas id="heatMap"></canvas>
<div id="info" data-content="info">
<h3>Hi there! 😃</h3>
This is Lookie Lookie.<br>
Please enable your webcam.
</div>
<div id="training">
<table>
<tr>
<td>Training examples</td>
<td data-content="n-train">0</td>
</tr>
<tr>
<td>Validation examples</td>
<td data-content="n-val">0</td>
</tr>
<tr>
<td>Epochs trained</td>
<td data-content="n-epochs">0</td>
</tr>
<tr>
<td>Training loss</td>
<td data-content="train-loss">?</td>
</tr>
<tr>
<td>Validation loss</td>
<td data-content="val-loss">?</td>
</tr>
</table>
<div class="buttonwrap">
<div class="buttonrow">
<button id="start-training" disabled>Start Training</button>
<button id="reset-model" disabled>Reset Model</button>
</div>
<div class="buttonrow">
<button id="draw-heatmap" disabled>Draw Heatmap</button>
<button id="clear-heatmap" disabled>Clear Heatmap</button>
</div>
<div class="buttonrow">
<button id="store-data" disabled>Save Dataset</button>
<button id="load-data">Load Dataset</button>
<input type="file" id="data-uploader">
</div>
<div class="buttonrow">
<button id="store-model" disabled>Save Model</button>
<button id="load-model">Load Model</button>
<input type="file" id="model-uploader" multiple>
</div>
</div>
</div>
<video id="webcam" width="400" height="300"></video>
<canvas id="overlay" width="400" height="300"></canvas>
<div class="cell">
<div class="pl pl-butterfly" id="pointer">
<div class="verification"></div>
</div>
</div>
<footer>
This is only a demo, not the collection website! Created by Max Schumacher. Revised by Patrick Ma.
<a href="https://github.com/mapy1874/lookie-lookie" target="_blank" alt="Source">Source</a>
</footer>
<canvas id="eyes" width="50" height="25"></canvas>
<div class="container">
<div class="hover-container">
<div class="left wing"></div>
<div class="right wing"></div>
<div class="body"></div>
<div class="head"></div>
</div>
</div>
<div id="target"></div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.5.0"></script>
<script src="js/vendor/clmtrackr.js"></script>
<script src="js/calibration.js"></script>
<script src="js/globals.js"></script>
<script src="js/ui.js"></script>
<script src="js/facetracker.js"></script>
<script src="js/mouse.js"></script>
<script src="js/dataset.js"></script>
<script src="js/training.js"></script>
<script src="js/heat.js"></script>
<script src="js/main.js"></script>
</body>
</html>