DEV Community

Discussion on: Run PoseNet with Nodejs

Collapse
 
gaelguedia profile image
Geekster🇨🇲

I am always receiving this error: UnhandledPromiseRejectionWarning: Error: Image given has not completed loading

Collapse
 
0xkoji profile image
0xkoji

with my sample code?

Collapse
 
gaelguedia profile image
Geekster🇨🇲

Yes, after installing all the dependencies I ended up with this error code : FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.

Thread Thread
 
0xkoji profile image
0xkoji

can you tell me your os version, nodejs version and your package.json's dependencies

Thread Thread
 
gaelguedia profile image
Geekster🇨🇲

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"
}

Thread Thread
 
0xkoji profile image
0xkoji

tensorflor-models/posenet has been updated so you need to update code.

just checked my package.json

"dependencies": {
    "@tensorflow-models/posenet": "^1.0.3",
    "@tensorflow/tfjs": "^1.1.2",
    "@tensorflow/tfjs-node": "^1.1.2",
    "botkit": "^4.0.2",
    "canvas": "^2.5.0",
    "rollup": "^1.13.1"
  }