-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tf.loadModel is not a function #2
Comments
问题已经解决啦,是@tensorflow/tfjs这个库的版本更新啦,恢复到原来的0.10.0版本就解决啦 |
Uncaught (in promise) TypeError: tf.loadLayersModel is not a function |
update my @tensorflow/tfjs update package but error is same. |
os: win10
chrome: 77.0.3865.90(正式版本) (64 位)
node: v12.9.0
导入代码:
`
require('babel-polyfill');
const Runtime = require('../../engine/runtime');
const Clone = require('../../util/clone');
const Cast = require('../../util/cast');
const Video = require('../../io/video');
const formatMessage = require('format-message');
const tf = require('@tensorflow/tfjs');
const mobilenetModule = require('./mobilenet');
const knnClassifier = require('@tensorflow-models/knn-classifier');
`
重现错误:
安装依赖后,复制代码,点击插件图标后,在console中报此错。
The text was updated successfully, but these errors were encountered: