forked from cbovar/ConvNetDraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (63 loc) · 2.29 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
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
<script src="jquery-3.2.1.min.js"></script>
<script src="convnetdraw.js"></script>
<script type="text/javascript">
var Timer;
var drawing;
$(window).on('load', function () {
drawing = new convnetdraw.drawing("net");
drawing.draw(document.getElementById("script").value);
});
function smallDelay() {
clearTimeout(Timer);
Timer = setTimeout(function () {
drawing.draw(document.getElementById("script").value);
}, 500);
};
</script>
</head>
<body>
<header>
<div class="container">
<div class="flex-1">
<form>
<label for="ratio1">Ratio 1</label>
<input id="ratio1" type="range" value="300" min="0" max="1000">
<label for="ratio2">Ratio 2</label>
<input id="ratio2" type="range" value="500" min="0" max="1000">
<label for="zoomx">Zoom X</label>
<input id="zoomx" type="range" value="4" min="0" max="20">
<label for="zoomy">Zoom Y</label>
<input id="zoomy" type="range" value="4" min="0" max="20">
<label for="zoomz">Zoom Z</label>
<input id="zoomz" type="range" value="4" min="0" max="20">
<input type="checkbox" id="blackandwhite">
<label for="blackandwhite">Black and white</label>
<a href="javascript:drawing.save()">Export</a>
</form>
</div>
<div class="flex-2">
<div class="flex-2-child">
<textarea onkeyup="smallDelay()" id="script">
# Some example
input(28, 28, 1)
conv(24, 24, 8)
relu(24, 24, 8)
pool(12, 12, 8)
conv(10, 10, 16)
relu(10, 10, 16)
pool(4, 4, 16)
fullyconn(1, 1, 10)
softmax(1, 1, 10)
</textarea>
</div>
<div class="flex-3-child" id="net"></div>
</div>
</div>
</header>
<a href="https://github.com/cbovar/ConvNetDraw"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
</body>
</html>