-
Notifications
You must be signed in to change notification settings - Fork 13
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 port the serve model to sketch.js/index.html vis ml5 library #8
Comments
@khangeqkai - I'll refer you to the docs here: https://github.com/ml5js/ml5-data-and-models-server#setup- The steps are as follows: In your ml5-data-and-models-server repo
Step 2 above is crucial. In your ml5 project
e.g notice that the path to the model must match the parameters fed into the options
Hope this helps to clarify. |
Hi Joey thanks for the reply, i did exactly as you explained download the model for posenet2 insside the folder models and run Here is my pose options:
And when I run the index.html like i normally do it throw this error as if the attribute
FYI: i used ml5-librrary-0.5.0 |
Just solved it, I just reinstall ml5, p5 and it works, exactly the same code ( i make a copy of index/sketch before delete the entire ml5-library-0.5.0 folder that contain p5. Reinstall ml5 via Thank you for the support and the library Joey |
I have read over here where offline support is added ml5js/ml5-library#553
Just wonder once i start run the server at localhost:5000 how would i be able to port it into my sketch.js
From the link above you mentioned something along the line
options:{modelURL}
can you help explain this bitCurrently i have tried
var posenetoptions = { modelurl:"https://google.com", architecture: 'ResNet50', imageScaleFactor: 0.3, outputStride: 32, flipHorizontal: false, minConfidence: 0.2, maxPoseDetections: 5, scoreThreshold: 0.5, nmsRadius: 30, detectionType: 'multi', inputResolution: 513, multiplier: 1, quantBytes: 2, };
and pass the options into ml5.poseNet see if it throw any errors, but nothing :(
The text was updated successfully, but these errors were encountered: