Skip to content

Commit 5479508

Browse files
Update main.js
1 parent e58780a commit 5479508

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ function loop() {
164164
}
165165
}
166166

167+
// count frames
167168
training_count++
168169

169-
// train the network every data points
170-
if (training_count === 30 || first_time) {
170+
// train the network every 40 frames
171+
if (training_count === 40 || first_time) {
171172
first_time = false
172173
network.train(trainingData)
173174
training_count = 0

0 commit comments

Comments
 (0)