-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.html
34 lines (30 loc) · 1.43 KB
/
train.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
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="style/audio.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-vis"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/speech-commands"></script>
</head>
<body>
<div id="console"></div>
<script src="train.js"></script>
<button id="aqua" onClick="collectExample('aqua')">Aqua</button>
<button id="search" onClick="collectExample('search')">Search</button>
<button id="reset" onClick="collectExample('reset')">Reset</button>
<button id="clear" onClick="collectExample('clear')">Clear</button>
<button id="keywords" onClick="collectExample('keywords')">Keywords</button>
<button id="bg_noise" onClick="collectExample('_background_noise_')">BG noise</button>
<br/><br/>
<button id="count" onclick="count()">Count</button>
<br/><br/>
<br/><br/>
<button id="train" onclick="train()">Train</button>
<br/><br/>
<!-- <div id="Layer Summary" name="Layer Summary"></div> -->
<div id="candidate-words"></div>
<button id="listen" onclick="listen()">Listen</button>
<!-- <input type="range" id="output" min="0" max="10" step="0.1"> -->
</body>
</html>