tensorflow / tfjs

A WebGL accelerated JavaScript library for training and deploying ML models.
https://js.tensorflow.org
Apache License 2.0
18.39k stars 1.92k forks source link

TensorflowJS does not work on mobile Chrome browser. #240

Closed dna2github closed 5 years ago

dna2github commented 6 years ago

To get help from the community, check out our Google group.

TensorFlow.js version

https://storage.googleapis.com/tfjs-examples/mobilenet/dist/index.html

Browser version

Android 6.0.1 Chrome 65.0.3325.109

Describe the problem or feature request

TensorflowJS does not work on mobile Chrome browser. visit https://storage.googleapis.com/tfjs-examples/mobilenet/dist/index.html on Android Chrome and wait for finishing model loading then it will use default cat.jpg to do a demo predict.

ARM Android Chrome output:

coyote, prairie wolf, brush wolf, Canis Iatrans 0.075
Egyptian cat 0.074
hare 0.049
wood rabbit, cottontail, conttontail rabbit 0.033
...

run on for example Intel MacOSX 10.12 Chrome 65.0.3328.181 output:

Egyptian cat    0.757
tabby, tabby cat    0.076
Siamese cat, Siamese    0.058
tiger cat   0.021
lynx, catamount 0.015
...

cat.jpg

Code to reproduce the bug / link to feature request

https://storage.googleapis.com/tfjs-examples/mobilenet/dist/index.html https://github.com/dna2github/NodeBase/tree/master/modules/tensorflowjs

direct visit from mobile Chrome and macosx Chrome to googleapis server; get problem on Android Chrome. run a local copy on mocosx, visit from mobile Chrome and macosx Chrome; get the same problem run a local copy on my mobile with Android 6.0.1, visit from mobile Chrome and macosx Chrome; get the same problem; 100% reproduce-able.

hpssjellis commented 6 years ago

Might be related to issue https://github.com/tensorflow/tfjs/issues/90

nsthorat commented 5 years ago

This should be fixed. Please reopen if you see it not working on the latest version of tfjs.

cw-somil commented 5 years ago

I have the latest version of Tensorflow.js installed and it still doesn't work. Please help.

Leekao commented 5 years ago

Still having problems with mobile chrome :/

d4em0n commented 4 years ago

same problem!

d4em0n commented 4 years ago

solved this issue by changing backend to wasm

luiskarlos commented 4 years ago

I resolve this using https. If you use HTTP it does not load the audio interface