-
Notifications
You must be signed in to change notification settings - Fork 112
how can i make this app work without internet? #17
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
Comments
You need to download all external scripts (tfjs, handpose) plus the model weights. Then you can either run your application through a local web server or simply package everything into a standalone Electron App. |
in dist/index.js change the script tag from <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core%22%3E</script> <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter%22%3E</script> <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/handpose%22%3E</script> <script src="fingerpose.js" type="text/javascript"></script>to <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script> <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script> <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"></script> <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/handpose"></script> <script src="fingerpose.js" type="text/javascript"></script>which allows you to run locally in the browser. |
Thanks for reply sir but can u pls guide more cause i was not able to do it. Please help :) |
You shouldn't import modules like this. To make my example run offline you can take the following steps:
|
You would have to manually change the hardcoded HANDDETECT_MODEL_PATH within the package someone really should make a fork that accepts a prop for this, strange that it does not already. |
No description provided.
The text was updated successfully, but these errors were encountered: