-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (29 loc) · 1.18 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
<html>
<head>
<meta charset="UTF-8">
<title>2D Mirror / Data Portrait</title>
<!-- Tensorflow and BlazeFace -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/tf-backend-wasm.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/blazeface"></script>
<!-- P5js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- The sketch is best viewed full-screen (i.e. not embedded in an iframe)
Therefore we add a launch button to open a new browser tab.
The below div hides by default, but appears when an iframe is detected. -->
<div id="TabNotice" style="display:none;">
<h2>2D Mirror</h2>
<p>For best experience, please
<a onclick="window.open(window.location, '_blank')">open a new tab</a>
</p>
<p>
<a class="button" onclick="window.open(window.location, '_blank')">Launch</a>
</p>
</div>
</body>
<!-- The following line loads sketch.js, where most of the action is! -->
<script src="sketch.js"></script>
</html>