ml5-library icon indicating copy to clipboard operation
ml5-library copied to clipboard

Uncaught (in promise) Error: Based on the provided shape, [3,3,3,8], the tensor should have 216 values but has 0

Open igniteking opened this issue 3 years ago • 1 comments

Dear ml5 community,

I'm submitting a new issue. Please see the details below.

Uncaught (in promise) Error: Based on the provided shape, [3,3,3,8], the tensor should have 216 values but has 0

this error is occurring when I am trying to load a pre-trained model!

Here are some screenshots

image

image

image

igniteking avatar Feb 26 '22 08:02 igniteking

Hi @igniteking thanks for opening this. Could you please give us a little bit more context. Which model are loading? Is it from teachable machine? What are you trying to achieve. It would also be great to have this as a p5 web editor example. https://editor.p5js.org or similar so we can test this better. By looking at this it seems that you are also using a method classification that does not exist. It's classify(), please refer to the documentation, there are also examples you could try to build from them: https://learn.ml5js.org/#/reference/image-classifier Best, Tom

tlsaeger avatar Mar 01 '22 09:03 tlsaeger