-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
194 lines (163 loc) · 5.08 KB
/
index.html
File metadata and controls
194 lines (163 loc) · 5.08 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ResNet Training Interface</title>
<style>
:root {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--bg-gray: #f3f4f6;
--border-gray: #e5e7eb;
}
body {
font-family: system-ui, -apple-system, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
background: #fff;
}
.container {
display: grid;
grid-template-columns: 300px 1fr;
gap: 2rem;
}
.control-panel {
background: var(--bg-gray);
padding: 1.5rem;
border-radius: 8px;
border: 1px solid var(--border-gray);
}
.config-section {
margin-bottom: 1.5rem;
}
.config-section h3 {
margin: 0 0 1rem 0;
font-size: 1.1rem;
color: #374151;
}
.config-group {
margin-bottom: 1rem;
}
.config-group label {
display: block;
margin-bottom: 0.5rem;
color: #4b5563;
font-size: 0.9rem;
}
input[type="number"] {
width: 100%;
padding: 0.5rem;
border: 1px solid var(--border-gray);
border-radius: 4px;
margin-bottom: 0.5rem;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.checkbox-group label {
margin: 0;
}
button {
width: 100%;
padding: 0.75rem 1rem;
border: none;
border-radius: 6px;
background: var(--primary);
color: white;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background: var(--primary-hover);
}
button:disabled {
background: #9ca3af;
cursor: not-allowed;
}
.primary-button {
background: var(--primary);
margin-bottom: 1rem;
}
.secondary-button {
background: #4b5563;
}
.log-section {
background: #1e293b;
color: #e2e8f0;
padding: 1.5rem;
border-radius: 8px;
font-family: ui-monospace, monospace;
overflow-y: auto;
height: 600px;
}
.log-entry {
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.log-time {
color: #94a3b8;
}
.log-success {
color: #86efac;
}
.log-error {
color: #fca5a5;
}
.log-info {
color: #93c5fd;
}
</style>
</head>
<body>
<h1>ResNet Training Interface</h1>
<div class="container">
<div class="control-panel">
<div class="config-section">
<h3>Data</h3>
<button id="loadData" class="primary-button">Load Training Data</button>
<div id="dataInfo" style="font-size: 0.9rem; margin-top: 0.5rem; color: #4b5563;"></div>
</div>
<div class="config-section">
<h3>Training Configuration</h3>
<div class="config-group">
<label for="epochs">Epochs</label>
<input type="number" id="epochs" value="10" min="1" max="100">
</div>
<div class="config-group">
<label for="batchSize">Batch Size</label>
<input type="number" id="batchSize" value="32" min="1" max="512">
</div>
<div class="config-group">
<label for="validationSplit">Validation Split Ratio</label>
<input type="number" id="validationSplit" value="0.2" min="0" max="0.5" step="0.05">
</div>
<div class="config-group">
<div class="checkbox-group">
<input type="checkbox" id="shuffle" checked>
<label for="shuffle">Shuffle Data</label>
</div>
</div>
<div class="config-group">
<div class="checkbox-group">
<input type="checkbox" id="verbose" checked>
<label for="verbose">Verbose Output</label>
</div>
</div>
</div>
<div class="config-section">
<button id="startTraining" class="primary-button" disabled>Start Training</button>
<button id="dumpWeights" class="primary-button" disabled>Dump Weights</button>
</div>
</div>
<div class="log-section" id="logOutput">
<!-- Training logs will be inserted here -->
</div>
</div>
<script type="module" src="main.js"></script>
</body>
</html>