What is Posenet?
https://medium.com/tensorflow/real-time-human-pose-estimation-in-the-browser-with-tensorflow-js-7dd0bc881cd5
https://gi...
For further actions, you may consider blocking this person and/or reporting abuse
i just used npm install @tensorflow-models/posenet to use the model.
nodejs v10.15.0
npm v6.9.0
I am always receiving this error: UnhandledPromiseRejectionWarning: Error: Image given has not completed loading
with my sample code?
Yes, after installing all the dependencies I ended up with this error code : FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
can you tell me your os version, nodejs version and your package.json's dependencies
linux subsystem on windows 10, "dependencies": {
"@tensorflow-models/posenet": "2.1.3",
"body-parser": "1.19.0",
"express": "4.17.1",
"morgan": "1.9.1",
"typescript": "3.6.3"
},
"devDependencies": {
"@tensorflow/tfjs": "1.2.9",
"@tensorflow/tfjs-node": "1.2.9",
"botkit": "4.5.0",
"canvas": "2.6.0",
"rollup": "1.21.2"
}
tensorflor-models/posenet has been updated so you need to update code.
just checked my
package.json
I ended up uninstalling everything and reinstalling. But now when I run the code I get " (node:87485) UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'architecture' on number '0.75'" which seems to be an error within posenet. maybe not everything is completely installed correctly? what do you think thank you for the help
It's because posenet api has been updated in version 2.0. See:
github.com/tensorflow/tfjs-models/...
Example new loading code:
Can you please add video inference support for posenet?
sorry i don't have time now.
i recommend you to check tfjs repo and dan's repos dev.to/oveddan since he is the peron who has implemented posenet to tfjs.
my code is outdated.
@gaelguedia
can you tell me your os version, nodejs version, npm/yarn and your package.json's dependencies
The above error was on windows 10, js 10. The issue seems to be related to canvas dependency. It's not easy to have it running on windows. It's easier on ubuntu especially easier to install cairo dependencies for Jpg/jpeg support