question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different Values on Pixel and Sony Xperia Z1

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version 1.0. Pulled from <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script>

Browser version

Desktop: Chrome 74.0.3729.131 Pixel 2XL: 74.0.3729.136

Describe the problem or feature request

When I run a predict on my desktop (both chrome and IE) I get 2.743 which matches my model’s prediction in Google Colab. When I run from my phone I get a value, then on the second click I get a different value that stays through the rest of my clicks.

Code to reproduce the bug / link to feature request

Navigate to http://bet.eckronsoftware.com/. Once you see “Model Loaded” you can hit the ‘Get Prediction’ button. On the desktop you get 2.73. From your phone you will get a random wrong number.

The model was created using tf.keras.experimental.export_saved_model from within Google Colab.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ehenniscommented, Jul 2, 2019

Removing the workaround and changing tfjs from 1.0.0 to 1.2.2 WORKED on mobile.

Here is my script code: <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.2.2/dist/tf.min.js"></script>

0reactions
dsmilkovcommented, Jul 16, 2019

@msektrier I’m going to close this issue since it is unrelated to the Apache Cordova environment which is a native environment like React Native. Feel free to open a separate issue about the Apache Cordova library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Pixel XL vs Sony Xperia Z1: What is the difference?
What is the difference between Google Pixel XL and Sony Xperia Z1? Find out which is better and their overall performance in the...
Read more >
How to Create Seperate Values folder Sony Xperia Z1 in ...
I have tried to Create Seperate Values folder for Sony Xperia Z1 in Android Eclipse Project. i done for values-sw390dp. inside that values...
Read more >
Sample gallery: Sony's 20.7-megapixel Xperia Z1
We've shot a gallery and some video samples with Sony's new top-end smartphone, the Xperia Z1.
Read more >
Compare phones: Sony Xperia Z1 C6903 vs Google Pixel 6a
Sony Xperia Z1 C6903. Total value: 7,83. Google Pixel 6a. Total value: 6,57. Other names, C6943, G1AZG; GX7AS; GB62Z; GB17L.
Read more >
Sony Xperia Z1 specs
Sony Xperia Z1 Specs ; Resolution: 1920 x 1080 pixels, 441 PPI ; Technology: TFT ; Screen-to-body: 64.52 % ; Colors: 16 777...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found