Skip to content
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

"TypeError: tf.loadModel is not a function" on TEXter page #24

Open
josephrocca opened this issue Jan 27, 2020 · 2 comments
Open

"TypeError: tf.loadModel is not a function" on TEXter page #24

josephrocca opened this issue Jan 27, 2020 · 2 comments

Comments

@josephrocca
Copy link

Just a heads up that I'm getting this error on Chrome 79:

image

on this page: https://zaidalyafeai.github.io/texter/

Looks similar to this issue: https://github.com/zaidalyafeai/zaidalyafeai.github.io/issues/17

@zaidalyafeai
Copy link
Owner

@josephrocca can you please open a PR if you fixed the error ?

@josephrocca
Copy link
Author

josephrocca commented Jan 28, 2020

Looks like you just need to be careful about using @latest on the end of your jsdelivr CDN urls, because that will jump up semver major versions (which can have breaking changes). I haven't tried fixing, sorry - was just passing by and noticed that it was broken. But should be a simple change like in #17 (tf.loadLayersModel and tf.browser.toPixels).

You can use a specific version of tf.js fron the cdn to prevent this sort of thing happening again when tf.js goes to v2.0:

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants