loadFrozenModel, Cannot read property 'io' of undefined
See original GitHub issueTensorFlow.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:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Remember, don’t rely on this link 😉 We’ll have a release tomorrow!
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>