-
Notifications
You must be signed in to change notification settings - Fork 2k
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
loadFrozenModel does not work in node #759
Comments
Did you try |
Hi @caisq . Thanks for the reply!
I 'm looking at the code. LoadfrozenModel is just
However it depends on a handler that is going ALWAYS to be empty on node
My options right now are What would you do? |
Sorry I overlooked an important problem in your code before. Please import tfjs-node after importing tfjs, i.e.: const tf = require('@tensorflow/tfjs');
require('@tensorflow/tfjs-node'); |
@caisq I do it intentionally. If I do it the other way around it does not fix the file:// issue and arises a nasty error:
|
I see. I think you can remove @tensorflow/tfjs as a dependency from your package.json and keep @tensorflow/tfjs-node. You are running into these issues due to multiple versions of @tensorflow/tfjs being pulled in. |
I can't!
|
Try deleting the node_modules directory and retry |
@DavidGOrtega I think you have an old version of tfjs-node. Please try installing 0.1.18. |
nice, I ran into same thing and found this thread. think we can close this thread. |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
TensorFlow.js version
tfjs 0.13.1
tfjs-node 0.1.17
tfjs-converter 0.6.2
Browser version
node 10.5.0 on Windows 10
Describe the problem or feature request
Code to reproduce the bug / link to feature request
you can try also with same results
The text was updated successfully, but these errors were encountered: