Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teachable Machine Extension doesn't work in Main branch #368

Open
ctphillips opened this issue Jun 24, 2024 · 4 comments
Open

Teachable Machine Extension doesn't work in Main branch #368

ctphillips opened this issue Jun 24, 2024 · 4 comments

Comments

@ctphillips
Copy link

Trying to use Extension for Teachable Machine with Micro:bit. Oddly, the Micro:bit extension (along with Scratch Link 2.0.2) works fine in the main endpoint (https://playground.raise.mit.edu/main/) but does not work (will not recognize any micro:bits) in the create endpoint (https://playground.raise.mit.edu/create/) same PC, same micro:bit. And the Teachable extension that is provided with the main endpoint, does not provide model outputs (the model loads, but when you provide say the audio that the model expects, the output doesn't update, even the model prediction variable shows no value, not even the background noise output, the variable simply shows nothing), however, the Teachable extension that is provided with the create endpoint works as expected. So I cannot connect Teachable Machine extension to the a micro:bit because in main, I can connect to the micro:bit but the Teachable model does not function, and in create, the Teachable extension works, but I cannot connect to a micro:bit. Not sure where to go from here, so reaching out to see if someone can assist.

@pmalacho-mit
Copy link
Collaborator

pmalacho-mit commented Jun 24, 2024

Thanks for your report, @ctphillips and for trying out both endpoints -- incredibly helpful!

For the microbit, are you using Scratch Link? If so, then that issue with the "create" branch is at least expected (if not ideal). There were some changes made to Scratch Link made by the Scratch team after our deployment of the "create" branch which caused some breaking changes -- we also attempt to preserve the "create" branch with minimal changes, which is why it remains broken.

However, those issues with the teachable machine extension on the main branch is something we definitely want to fix!

@mayarajan3 could you take a peek at this? My suspicion is that things have only broken for audio models (I at least can get image models working consistently once turning video on, let me know if you see any different @ctphillips ).

I also suspect when updating this extension, we opted to not have the microphone on by default (as it at least seems in the main branch we no longer turn the video on by default, but we do in the create branch). This is definitely an issue since there is no block to control whether or not the microphone is recording.

@ctphillips
Copy link
Author

ctphillips commented Jun 24, 2024 via email

@pmalacho-mit
Copy link
Collaborator

pmalacho-mit commented Jun 26, 2024

Hey @ctphillips -- all sounds good, and you are absolutely correct -- the teachable machine extension in the main endpoint is a later version than the one in create.

Thanks to @mayarajan3 's quick work (you rock, @mayarajan3 ), we deployed the likely fix: https://playground.raise.mit.edu/teachable-machine-audio-fix/

Want to make sure it works for your project and then we'll deploy the fix to main?

@ctphillips
Copy link
Author

ctphillips commented Jun 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants