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.

loadFrozenModel, Cannot read property 'io' of undefined

See original GitHub issue

TensorFlow.js version

0.10.3

Browser version

Chrome 66

Describe the problem or feature request

I’m having problems loading a frozen model from mobilenet and tfjs convert. I get an error TypeError: Cannot read property 'io' of undefined.

Code to reproduce the bug / link to feature request

<!doctype html>
<html lang="en">
<head>
  <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"> </script>
  <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script>
</head>
<body>
  <img style="display: none" id="cat" src="high-detail.jpg" width="224" height="224">

  <script>
    const MODEL_URL = 'https://storage-direct.y8.com/eddie/html5/canvas-friends/detail_js/tensorflowjs_model.pb';
    const WEIGHTS_URL = 'https://storage-direct.y8.com/eddie/html5/canvas-friends/detail_js/weights_manifest.json';

    async function loadModal() {
      const model = await tf_converter.loadFrozenModel(MODEL_URL, WEIGHTS_URL);
    }
    loadModal()
    //const cat = document.getElementById('cat');
    //model.execute({input: tf.fromPixels(cat)});
  </script>
</body>
</html>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nsthoratcommented, May 20, 2018

Remember, don’t rely on this link 😉 We’ll have a release tomorrow!

1reaction
nsthoratcommented, May 14, 2018

Working on a fix right now, but if you use an older version of the converter you won’t have the issue:

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter@0.2.0"></script>

Read more comments on GitHub >

github_iconTop Results From Across the Web

TensorFlow.js returning TypeError: Cannot read property ...
Discovered that the error was being caused by an upgraded version of tfjs-core and tfjs-converter. I downgraded it according to the demo and ......
Read more >
Unable to load local model via tensorflowjs model()
TypeError : Cannot read property 'sourceLayer' of undefined. I am using nodev8.16.0, tensorflow/tfjs:"^1.2.6" and @tensorflow/tfjs-node: ...
Read more >
ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE ! ... Your browser can't play this video. ... Solved: ERROR TypeError: Cannot read property title of undefined....
Read more >
TypeError: Cannot read property 'data' of undefined
(node:24430) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined [0] at ...
Read more >
Object-Detection Model Question. - Google Groups
js file) I get to line 92 I am getting an "Uncaught (in promise) TypeError: Cannot read property 'backend' of undefined" error which...
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