-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain_start.html
58 lines (56 loc) · 2.25 KB
/
train_start.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Machine Learning Training Tool</title>
<style>
.Btn {
background-color: blue;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Machine Learning (ML) Training Tool</h1>
<br>This tool creates a ML model using the images that you supply<br><br>
Enter the number of images in the data set:
<br><input type="number" id="number_of_images" value=180><br>
Enter the number of training images in the data set:
<br><input type="number" id="number_of_training_images" value=160><br>
Enter the number of test images in the data set:
<br><input type="number" id="number_of_test_images" value=160><br>
Enter the resulting image size in pixels:
<br><input type="number" id="selected_size" value=40><br>
Enter the number of classes:
<br><input type="number" id="number_of_classes" value=3>
<br>
<button class="Btn" onclick="next()">Go to Next Steps</button><br>
<br><br>
<i>
Copyright (2021) Erol Ozan <br>
This tool is an open source software licensed under Apache License 2.0.
The code is built on TensorFlow JS platform and modified the code provided by TensorFlow JS. </i>
<script>
function next(){
number_of_images=document.getElementById("number_of_images").value;
number_of_classes=document.getElementById("number_of_classes").value;
number_of_training_images=document.getElementById("number_of_training_images").value ;
number_of_test_images=document.getElementById("number_of_test_images").value ;
selected_size=document.getElementById("selected_size").value ;
var str = "train_next.html?number_of_images=" +number_of_images + "&number_of_classes=" + number_of_classes + "&number_of_training_images=" + number_of_training_images + "&number_of_test_images=" + number_of_test_images + "&selected_size=" + selected_size;
// http://127.0.0.1:8887/try.htm?number_of_images=180&number_of_classes=6&number_of_training_images=160&selected_size=36
window.open( str, "_self");
}
</script>
</body>
</html>