@@ -437,6 +437,9 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Done Progress
|
||||
</th>
|
||||
<th>
|
||||
Training Round Progress
|
||||
</th>
|
||||
@@ -451,6 +454,9 @@
|
||||
<tbody>
|
||||
{{ range .Defs}}
|
||||
<tr>
|
||||
<td>
|
||||
{{.Epoch}}
|
||||
</td>
|
||||
<td>
|
||||
{{.EpochProgress}}/20
|
||||
</td>
|
||||
@@ -471,6 +477,49 @@
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ if (eq .Status 3) }}
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<svg viewBox="0 200 1000 600">
|
||||
{{ range $i, $layer := $.Layers }}
|
||||
{{ if (eq $layer.LayerType 1)}}
|
||||
<polygon
|
||||
points="50,450 200,250 200,550 50,750"
|
||||
stroke="black"
|
||||
stroke-width="2"
|
||||
fill="green"></polygon>
|
||||
{{ else if (eq $layer.LayerType 4)}}
|
||||
<polygon
|
||||
points="{{add 50 (mul $i $.SepMod) }},450 {{ add 200 (mul $i $.SepMod) }},250 {{add 200 (mul $i $.SepMod)}},550 {{ add 50 (mul $i $.SepMod) }},750"
|
||||
stroke="black"
|
||||
stroke-width="2"
|
||||
fill="orange">
|
||||
</polygon>
|
||||
{{ else if (eq $layer.LayerType 3)}}
|
||||
<polygon
|
||||
points="{{add 50 (mul $i $.SepMod) }},450 {{ add 200 (mul $i $.SepMod) }},250 {{add 200 (mul $i $.SepMod)}},550 {{ add 50 (mul $i $.SepMod) }},750"
|
||||
stroke="black"
|
||||
stroke-width="2"
|
||||
fill="red">
|
||||
</polygon>
|
||||
{{ else if (eq $layer.LayerType 2)}}
|
||||
<polygon
|
||||
points="{{add 50 (mul $i $.SepMod) }},550 {{ add 200 (mul $i $.SepMod) }},350 {{add 200 (mul $i $.SepMod)}},450 {{ add 50 (mul $i $.SepMod) }},650"
|
||||
stroke="black"
|
||||
stroke-width="2"
|
||||
fill="blue">
|
||||
</polygon>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ .LayerType }}
|
||||
{{ .Shape }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</svg>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user