poke-zoo
poke-zoo copied to clipboard
React state is always one step behind while making predictions on uploaded image using Tensorflowjs
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. |