-
Notifications
You must be signed in to change notification settings - Fork 658
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
Different inference results #61
Comments
I had same issue |
Any chance you can share an example where this is clear? Both the teachable machine project and the python code you use to validate? We have had a suspicion that there can be some difference, but we dont have a test dataset that clearly indicates it. |
Hi! We have recently updated the snippet available in Teachable Machine's Export panel to resize the images exactly how they are resized in the web app. Check it out and see if your classification performance improves. |
I reproduced the error @HalfdanJ and @GautamBose. Teachable machine returns 49-51 Class-1 Class-2 |
Hi! I suspect that something is causing models trained on different OS's, hardware, or browsers to behave differently. For example, when I downloaded your dataset and trained my own model, Teachable Machine gave me 78-22 Class-1 Class-2 on that test image... and keras returns [0.7885991 0.21140094], with the original normalization. This is on MacOS 10.14.16 and Chrome 80.0.3987.116 To get to the bottom of this, what OS / browser are you using? |
Mac OS 10.15.2 (19C57) and Chrome 80.0.3987.106 (64-bit) |
So I have tried training it again, and I got a result of 60-40 Edit: Now I did look into the source code, you shuffle it here, which causes the obvious deviations when running the same thing multiple times, It is weird that the second and third try had much smaller deviations though.
I used Colab for Keras, did you run it locally? So I ran all of them in Colab and got this :
Colab uses : Python 3.6.9 and Ubuntu 18.04.3 LTS |
Is there any solution for this problem ? How can I get better result ? |
Having the same issue here, UI results are very accurate and in the form of |
Hi, I was testing Teachable machine on the browser and good pretty good results for a personal project. However, when downloading the generated model to Keras and using the code snippet that you provide, the inference results are totally different with the same test set. Could it be because the Keras snippet is resizing the images in a different way to the teachable machine application in the browser? Any ideas on how to fix it?
Many thanks for your help!
The text was updated successfully, but these errors were encountered: