ml5js / ml5-library

Friendly machine learning for the web! πŸ€–
https://ml5js.org
Other
6.45k stars 905 forks source link

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

Open igniteking opened 2 years ago

igniteking commented 2 years ago

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

tlsaeger commented 2 years ago

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