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 when running in browser. #8

Open
MiloAkerman opened this issue Jan 27, 2021 · 0 comments
Open

TypeError when running in browser. #8

MiloAkerman opened this issue Jan 27, 2021 · 0 comments

Comments

@MiloAkerman
Copy link

Hello. I've been trying (rather unsuccessfully) to get this to work on Node.JS. After a few hours, I got it working - a little. It refused to detect my hand and would give me a warning that read

============================
Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.
============================

no matter how many times I installed both @tensorflow/tfjs-node and @tensorflow/tfjs-node-gpu, I still got the warning.

Eventually, I gave up and decided to use the demo provided inside the dist folder, which, unfortunately, did not work either. I managed to solve this by adding a backend at the start, namely https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"

Which leads me to now. I have yet another error, this time reading:

Error

I am absolutely positive that this is not on my end. I've looked up everything I ever could and not a single related result pops up. I'd appreciate any help.

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

1 participant