Repository navigation
Interactive ML (Teachable Machines) - #650
Merged
Merged
Conversation
…ocks into teachable-machines
dli7319
reviewed
Sep 29, 2026
dli7319
approved these changes
Sep 30, 2026
ruofeidu
approved these changes
Oct 6, 2026
| try { | ||
| loading ??= (async () => { | ||
| const tf = await import( | ||
| 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@4.22.0/+esm' |
Collaborator
There was a problem hiding this comment.
put it to constants.ts for easier maintenance and updates?
| try { | ||
| accelerated = await tf.setBackend('webgl'); | ||
| } catch { | ||
| /* Worker has no usable GPU context. */ |
| !(samples instanceof Float32Array) || | ||
| !Number.isFinite(sampleRate) || | ||
| sampleRate < 8000 || | ||
| sampleRate > 192000 || |
Collaborator
There was a problem hiding this comment.
nit: consider to centralize to constants.ts in this folder?
ruofeidu
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Port of teachable machines for hand pose and sound. Everything works off static poses for now so nothing dynamic.
Most the code is in the demo + tflite export. the future is probably fitting this in with the detectors in the SDK but since its an addon had to rewrite a tflite export/import for that.
Type of Change
Media / Screen Recordings & Screenshots (If Applicable)
teachable-machines.mp4
Checklist