-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How to save the model @tensorflow-models/pose-detection
locally for offline use?
#8334
Comments
@tensorflowmodels/pose
detection locally for offline use?@tensorflowmodels/pose-detection
locally for offline use?
@tensorflowmodels/pose-detection
locally for offline use?@tensorflow-models/pose-detection
locally for offline use?
Hi, @ZhongxuYang Thank you for bringing this issue to our attention and as far I know, you can download model from kaggle here is link and please make sure select only Model Variations as TensorFlow.js option and download whichever model you want to use and once model got downloaded then please try to load the model with the help of below code snippet and it should work
You can also load a model composed of Layer objects, including its topology and optionally weights by below options also please refer to tf.loadLayersModel for examples :
If issue still persists please let us know with error log for further investigation. Thank you for your cooperation and patience. |
Thank you for your patient reply! I have followed your tips to fulfill my needs. Proceed as follows:
const loadHandpose = async () => {
const detectorConfig: MoveNetModelConfig = {
modelUrl: '/your/public/path',
}
detector = await poseDetection.createDetector(model, detectorConfig)
startDetect()
} |
I want to save the tfjs-models's models in the public dir of the frontend project, so that they can be used in a netless environment. How should I do it?
@tensorflow-models/pose-detection
does not provide a save function, I didn't know how to proceed.The text was updated successfully, but these errors were encountered: