-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (67 loc) · 2.71 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TensorFlow.js 機器學習判斷顏色</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/tensorflow/0.13.0/tf.min.js" integrity="sha256-qrULdq8Ke6IL/fQx+E+LyDNkETdyUPiU7FXykDYRK6E=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.dom.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.0/normalize.min.css">
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<span class="navbar-text">
TensorFlow.js 機器學習顏色分類
</span>
</nav>
<div class="container my-4">
<div class="row">
<div class="col">
<div class="d-flex justify-content-center mb-3">
<div id="canvas"></div>
</div>
<div class="wrap d-flex justify-content-center h3">
<label for="">我覺得他是:</label>
<div id="result"></div>
</div>
<div class="wrap d-flex justify-content-center h3">
<label for="">訓練狀況:</label>
<div id="status"></div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="slider-wrap d-flex flex-column flex-lg-row justify-content-center justify-content-lg-between align-items-center">
<div class="wrap d-flex align-items-center">
<label for="sliderR" class="label mr-2 mb-0">R:</label>
<div id="sliderR"></div>
</div>
<div class="wrap d-flex align-items-center">
<label for="sliderG" class="label mr-2 mb-0">G:</label>
<div id="sliderG"></div>
</div>
<div class="wrap d-flex align-items-center">
<label for="sliderB" class="label mr-2 mb-0">B:</label>
<div id="sliderB"></div>
</div>
</div>
</div>
</div>
<div class="row my-3">
<div class="col h6">
<p class="">說明:</p>
<p class="">曳上方顏色 bar 即可調整顏色</p>
<p class="">他不認得黑色跟白色XD</p>
<p class="">Loss越低越準確</p>
</div>
</div>
</div>
</body>
<script src="main.js"></script>
</html>