-
Notifications
You must be signed in to change notification settings - Fork 20
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
bodyPose
and bodySegmentation
failing to preload in p5 instance mode
#175
Comments
We need to remove this call: ml5-next-gen/src/BodyPose/index.js Line 56 in 542e5a5
(and any others like it) There will be no |
Likely we have some code that is using an improperly scoped |
We're using a variable
|
Creating a new issue to track the progress of this:
@lindapaiste Thank you for adding support for instance mode. I was able to preload most models (
ml5.faceMesh
,ml5.handPose
,ml5.imageClassifier
,ml5.neuralNetwork
, andml5.sentiment
) but I'm getting an error forml5.bodyPose
. See this minimal sketch demonstrating the issue. I also included my temporary fix in the comments, which creates blankwindow._incrementPreload()
andwindow._decrementPreload()
to avoid this error.I'm also getting an error for preloading
ml5.bodySegmentation
in instance mode, and that could be fixed by declaring a global variablelet video;
.Originally posted by @jackbdu in #81 (comment)
The text was updated successfully, but these errors were encountered: