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

Deviating results (online / offline) - picture classification - Python #79

Open
marvinpaul95 opened this issue Feb 17, 2020 · 2 comments

Comments

@marvinpaul95
Copy link

marvinpaul95 commented Feb 17, 2020

Hi,

I'm having problems while using the trained model locally (Python). I'm getting extremely different results between local execution and browser usage. I have adopted the suggested Tensorflow / Keras code one to one.
When I train the model and upload my image in the browser I get a result of 90 / 10:

image

However, as soon as I let the image pass through the model locally (via the proposed code), I get a distribution of only 35 / 65. The result should be class 1 - so the browser applications performs much better than the local version.

I have simulated this behavior in the following colab:

https://colab.research.google.com/drive/18gDSEv66XV4DXyahCFUEmaWn4zOnf2K8

Both TF 1.15.0 and 2.1 were tested - I'm getting the same results.

Does anybody know where might be the error?

Many thanks in advance (:

@GautamBose
Copy link
Contributor

The inference Colab you have posted looks correct. What browser and OS are you using for training?

@marvinpaul95
Copy link
Author

marvinpaul95 commented Mar 14, 2020

thank you for the help. For the training I used Windows 10 (version 10.0.18363 build 18363) and Google Chrome (version 79). Furthermore I tested Firefox, with the same result.
Is there a browser / os combination that should work better? Which os and browser are you using?

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