~/talk

Transfer learning in JavaScript with TensorFlow.js

Talkat Google I/O 2022 · 2022-05-11..05-12· [javascript, machine-learning]
slides:none on file

Builds a browser Teachable Machine clone that uses TensorFlow.js and a MobileNet v3 feature vector from TF Hub, resizing webcam frames to 224×224 and extracting 1024-dim features per image. Adds a small head — a 128-unit dense head plus softmax — trained on stacked feature tensors with 1-hot labels (batch 5, 10 epochs). Requires only ~30 examples per class, trains in seconds in-browser, and runs live predictions; code and TF Hub model links are provided so the demo works end-to-end.

AI-written summary · about

  1. 0:00Intro
  2. 3:08What is TensorFlow.js? Open step 2 of codelab
  3. 5:14Transfer Learning Open step 3 of codelab
  4. 8:27TensorFlow Hub - base models Open step 4 of codelab
  5. 10:21Get set up to code Open step 5 of codelab
  6. 10:42HTML Boilerplate Open step 6 of codelab
  7. 12:40Add CSS styles Open step 7 of codelab
  8. 19:49Define new model head Open step 10 of codelab
  9. 22:00Enable the webcam Open step 11 of codelab
  10. 23:31Data collection button event handler Open step 12 of codelab
  11. 24:40Data collection Open step 13 of codelab
  12. 29:10Train and predict Open step 14 of codelab
  13. 32:58Implement a reset button Open step 15 of codelab
  14. 34:02Let's try it out! Open step 16 of codelab
  15. 34:35Congratulations! What's next? Open step 17 of codelab
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.