-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (32 loc) · 1.32 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
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/[email protected]"></script>
</head>
<body>
<canvas></canvas>
<script src="./script.js"></script>
<p>Click on the "Choose File" button to upload a file:</p>
<input type="file" id="imageInput" name="imageInput" accept="image/*">
<input value type="string" id="architecture" value="ResNet50">
<input type="number" id="outputStride" value="32">
<input type="number" id="quantBytes" value="4">
<input type="number" id="segmentationThreshold" value="0.7">
<input type="number" id="scoreTreshold" value="0.7">
<script>
let imgInput = document.getElementById('imageInput');
imgInput.addEventListener('change', function(event) {
if(event.target.files) {
loadImage(
URL.createObjectURL(event.target.files[0]),
document.getElementById("architecture").value,
document.getElementById("outputStride").value,
document.getElementById("quantBytes").value
document.getElementById("segmentationThreshold").value
document.getElementById("scoreTreshold").value
);
}
});
</script>
</body>
</html>