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

React state is always one step behind while making predictions on uploaded image using Tensorflowjs #9

Open
theairbend3r opened this issue Jul 3, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@theairbend3r
Copy link
Owner

theairbend3r commented Jul 3, 2020

Platform Issues

There are some platform issues where the Inference does not run properly on certain combinations of device + browser + image input type.

Question on stack overflow => https://stackoverflow.com/questions/62568668/react-state-is-always-one-step-behind-while-making-predictions-on-uploaded-image

TLDR;

Following combinations of device + browser + image input are working -

Device OS Browser Input Method
Desktop Windows Chrome Webcam
Desktop MacOS Chrome Webcam
Desktop MacOS Safari Webcam
Mobile Android Firefox Upload
Mobile Android Chrome Webcam
Mobile iOS Safari Webcam

Following is the report of where it works and where it doesn't along with the behaviour observed.

Desktop

Table

Ubuntu Windows MacOS
Firefox not working not working not working
Chrome not working somewhat working somewhat working
Safari NA NA somewhat working

Comments

Ubuntu Windows MacOS
Firefox Predictions are always one step behind for both Captured and Uploaded images. Predictions are always one step behind for both Captured and Uploaded images. Predictions are always one step behind for both Captured and Uploaded images.
Chrome Works only on Captured Images. Uploaded images give same predictions always. Works only on Captured Images. Uploaded images give same predictions always. Works only on Captured Images. Uploaded images give same predictions always.
Safari NA NA Works only on Captured Images. Uploaded images give same predictions always.

Mobile

Table

Android iOS
Firefox somewhat working not working
Chrome somewhat working not working
Safari NA somewhat working

Comments

Android iOS
Firefox No predictions load for a captured image. Works on uploaded images only. Camera does not load. Uploaded images give same predictions always.
Chrome Works on capture images only. Uploaded images give same predictions always. Camera does not load. Uploaded images give same predictions always.
Safari NA Works only on Captured Images. Uploaded images give same predictions always.
@theairbend3r theairbend3r added the bug Something isn't working label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant