Skip to content

Commit

Permalink
Fix example count display. (tensorflow#218)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nagachika authored and caisq committed Jan 25, 2019
1 parent ebd4606 commit eb46148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcam-transfer-learning/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit eb46148

Please sign in to comment.