Skip to content

Commit b89122f

Browse files
authored
Fix coco version (#17)
1 parent 27e2225 commit b89122f

File tree

2 files changed

+41
-36
lines changed

2 files changed

+41
-36
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vision"
3-
version = "0.3.1"
3+
version = "0.3.2-coco-puffed"
44
authors = ["Terkwood <metaterkhorn@gmail.com>"]
55
edition = "2018"
66

static/index.html

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<title>vision</title>
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<style>
8-
#container {
9-
height: 100%;
10-
position: relative;
11-
width: 100%;
12-
}
133

14-
html, body, canvas {
15-
margin: 0px;
16-
padding: 0px;
17-
width: 100%;
18-
height: 100%;
19-
overflow: hidden;
20-
}
4+
<head>
5+
<meta charset="utf-8">
6+
<title>vision</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<style>
9+
#container {
10+
height: 100%;
11+
position: relative;
12+
width: 100%;
13+
}
2114

22-
#download-button {
23-
bottom: 0;
24-
left: 0;
25-
position: absolute;
26-
width: 128px;
27-
height: 128px;
28-
}
29-
</style>
30-
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
31-
<script src="draw.js"></script>
32-
<!-- tensorflow.js version 0.14.2 caused some int/float
15+
html,
16+
body,
17+
canvas {
18+
margin: 0px;
19+
padding: 0px;
20+
width: 100%;
21+
height: 100%;
22+
overflow: hidden;
23+
}
24+
25+
#download-button {
26+
bottom: 0;
27+
left: 0;
28+
position: absolute;
29+
width: 128px;
30+
height: 128px;
31+
}
32+
</style>
33+
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
34+
<script src="draw.js"></script>
35+
<!-- tensorflow.js version 0.14.2 caused some int/float
3336
type conversion errors when executing the model,
3437
so we've forced a lower version here -->
35-
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.14.1"> </script>
36-
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/coco-ssd"> </script>
37-
</head>
38+
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.14.1"> </script>
39+
<!-- we need coco 0.1.1 since we're using TFJS < 1.0 -->
40+
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/coco-ssd@0.1.1"> </script>
41+
</head>
42+
43+
<body>
44+
<script src="vision.js"></script>
45+
</body>
3846

39-
<body>
40-
<script src="vision.js"></script>
41-
</body>
42-
</html>
47+
</html>

0 commit comments

Comments
 (0)