Fix example count display. (#218)
The pacman play demo (`webcam-transfer-learning/`) displays captured training data examples for each control (Up/Down/Left/Right). The display show one less than real number of examples.
This commit is contained in:
parent
ebd4606c19
commit
eb46148ac0
|
|
@ -81,7 +81,7 @@ async function handler(label) {
|
|||
while (mouseDown) {
|
||||
addExampleHandler(label);
|
||||
document.body.setAttribute('data-active', CONTROLS[label]);
|
||||
total.innerText = totals[label]++;
|
||||
total.innerText = ++totals[label];
|
||||
await tf.nextFrame();
|
||||
}
|
||||
document.body.removeAttribute('data-active');
|
||||
|
|
|
|||
Loading…
Reference in New Issue