Problem - the tensor should have ### values but has 0 #225
-
I literally copy/paste the code from the "demo/typescript" and removed unnecessary code (those to show information as fps, etc) and am getting -NodeJS - Ok Uncaught (in promise) Error: Based on the provided shape, [1,1,96,2], the tensor should have 192 values but has 0
at assert (human.esm.js:5709)
at makeTensor (human.esm.js:8289)
at tensor (human.esm.js:8305)
at Object.decodeWeights (human.esm.js:8448)
at GraphModel.loadSync (human.esm.js:37757)
at GraphModel.load (human.esm.js:37744)
at async loadGraphModel (human.esm.js:37853)
at async load5 (human.esm.js:75436)
at async load19 (human.esm.js:81414)
at async Human.load (human.esm.js:83800)
Uncaught (in promise) Error: Based on the provided shape, [3,3,3,16], the tensor should have 432 values but has 0
at assert (human.esm.js:5709)
at makeTensor (human.esm.js:8289)
at tensor (human.esm.js:8305)
at Object.decodeWeights (human.esm.js:8448)
at GraphModel.loadSync (human.esm.js:37757)
at GraphModel.load (human.esm.js:37744)
at async loadGraphModel (human.esm.js:37853)
at async load11 (human.esm.js:76367) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
this is strange - seems like loading of model weights can you |
Beta Was this translation helpful? Give feedback.
-
check your dev web server - its not serving binary files (model weights) correctly - in network status it shows status code 204 which is (unrelated, when posting logs, copy & paste text, not image) |
Beta Was this translation helpful? Give feedback.
-
paths seem correct since it loads model definitions correctly ( |
Beta Was this translation helpful? Give feedback.
-
it definitely is the webpack configuration issue. i don't know why, but its not serving binary files correctly. |
Beta Was this translation helpful? Give feedback.
it definitely is the webpack configuration issue. i don't know why, but its not serving binary files correctly.
you can always use built in dev server that ships with
human
(my own,@vladmandic/build
), you don't need either parcel or webpack.