Open stephanschulz opened 3 years ago
looking in to libs/tensorflow/tensorflow-models/handpose-0.0.4/dist/index.js
that the model and anchors get loaded from an external file. So i guess there is no way to load a local model, unless i modify the distribution ?
const HANDDETECT_MODEL_PATH = 'https://tfhub.dev/mediapipe/tfjs-model/handdetector/1/default/1';
return tfconv.loadGraphModel(HANDDETECT_MODEL_PATH, { fromTFHub: true });
Hi @stephanschulz ,
Sorry for the late reply, been really busy lately, hope this is still helpful:
It is possible to run this offline, by downloading the entire model in a folder structure.
For example: https://glitch.com/edit/#!/networked-hand-3js-tf174-handv1
where the models are downloaded to the /public/frozen/models/
folder.
Simply change the path to point to the local link, and it should then work.
Hey Lingdong. Thanks for making this code available.
I am trying to make it run in offline mode using the Brackets.io IDE to work on it. Do you have instruction on how to run this locally?
For now I tried copying its linked tensor flow scripts to a local folder
But get the following error:
I guess I will try to run a npm server next and see if that somehow work.