-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (60 loc) · 2.81 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Doodles To Faces</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="./utils.js"></script>
<script src="./pix2pix.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.1.2/dist/tf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.min.js"></script>
</head>
<body>
<div id="box">
<div style="color: rgb(255, 193, 193);">
<h1 class="blackbox"><font color="#FF6347">P</font>
<font color="#F0F8FF">I</font>
<font color="#98FB98">X</font>
<font color="white">F</font>
<font color="#FFD700">A</font>
<font color="#E6E6FA">C</font>
<font color=" #FF6347">E</font>
</h1>
</div>
<h2>Make your doodles come to life as abdominations!</h2>
<p>
<p style="margin-top: 40px;">Draw a face on the left canvas and press <b>GENERATE</b> to create a real life equivalent.</p>
<p><b>Patience.</b> This might take a few seconds.</p>
<p>
<div class="flex">
<div>
<div id="canvasContainer"></div>
<div id="btnContainer" class="flex-space-between">
<button class="btn" onClick="clearCanvas()" style="margin-left: 0;"> <i class="fa fa-trash"></i> Clear</button>
<button class="btn" onClick="getRandomOutput()"> <i class="fa fa-folder"></i> Example</button>
</div>
</div>
<div id="transferContainer">
<button id="transferBtn" class="btn" onClick="loadIm()"> GENERATE</button>
<p id="status" style="margin: 25px;">loading..</p>
</div>
<div class="container">
<div id="output"></div>
<div id="lotxt" class="centered">Centered</div>
</div>
</div>
<script src="./index.js"></script>
<br>
<button id="undetailedButton" class="btn" onClick="loadCheap()" style="margin-top: 70px;">load mobile model (3MB - shorter generation time)</button>
<button id="detailedButton" class="btn" onClick="loadDetailed()" style="margin-top: 70px;">load more detailed model (13MB - longer generation time)</button>
<p>
<font size="2">This image generator is based on pix2pix for tensorflow (https://github.com/affinelayer/pix2pix-tensorflow).</font>
</p>
<p >
<font size="2">Works better on desktop.</font>
</p>
</div>
</body>
</html>