Open andredtr opened 3 years ago
I'm going to put the repo into read only mode since I neither use node, javascript or teachablemachine at all currently. I guess(hope) teachablemachine has less hacky way of doing this by now, or worstcase someone can fork this project/create a new one and fix the issues that probably came up from new updates.
Whenever i try to run this project i get an error, im using a Pose net model, not sure what i'm doing wrong any ideas?
(node:71251) UnhandledPromiseRejectionWarning: Error: Error when checking : expected dense_Dense1_input to have 2 dimension(s), but got array with shape [1,224,224,3] at new ValueError (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-layers/dist/errors.js:68:28) at checkInputData (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-layers/dist/engine/training.js:338:23) at LayersModel.predict (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-layers/dist/engine/training.js:981:9) at Sequential.predict (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-layers/dist/models.js:722:27) at /Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@teachablemachine/image/dist/custom-mobilenet.js:289:48 at /Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-core/dist/engine.js:388:22 at Engine.scopedRun (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-core/dist/engine.js:398:23) at Engine.tidy (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-core/dist/engine.js:387:21) at Object.tidy (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@tensorflow/tfjs-core/dist/globals.js:176:28) at CustomMobileNet.<anonymous> (/Users/andredutradeoliveira/Learning/teachablemachine-node-example/node_modules/@teachablemachine/image/dist/custom-mobilenet.js:287:37) (node:71251) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:71251) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.