ml5js / ml5-examples

A collection of ml5.js examples
https://examples.ml5js.org
MIT License
629 stars 448 forks source link

Uncaught (in promise) TypeError: Failed to fetch ml5.min.js:108 #276

Closed ab-dev-github closed 4 years ago

ab-dev-github commented 4 years ago

Hello All,

I have used Teachable machine to train the PoseNet model.

I am also trying to use the code from below URL by just changing the model files, however I always get an error as below?

Am I doing something wrong or its a bug? No change in code except model files and I am referring to below instead of local ml5.min.js.

Code from Coding Train Uncaught (in promise) TypeError: Failed to fetch at t. (ml5.min.js:108) at x (ml5.min.js:175) at Generator._invoke (ml5.min.js:175) at Generator.t. [as next] (ml5.min.js:175) at i (ml5.min.js:49) at ml5.min.js:49 at new Promise () at new e (ml5.min.js:56) at t. (ml5.min.js:49) at t. (ml5.min.js:108)

I am unable to upload my model to editor.p5js.org so I cannot try if it works there.

Appreciate your help / suggestions

Thanks, AB

joeyklee commented 4 years ago

Hi @ab-dev-github - thanks for your question. As mentioned in https://github.com/ml5js/ml5-examples/issues/263, custom trained posenet models in Teachable machine are not supported in ml5.js for now.

If you would like to use a custom pose classifier in ml5, you can try to use the Neural Network class and use the inputs from poseNet to train a classification model.

Hope this helps! Closing this issue for now. Please feel free to reopen if there are other questions. 🙏

ab-dev-github commented 4 years ago

Thanks for update!