ml5js / ml5-library

Friendly machine learning for the web! 🤖
https://ml5js.org
Other
6.5k stars 900 forks source link

Ml5.js and face-api.js are not available at the same time. #541

Closed itlockit2 closed 5 years ago

itlockit2 commented 5 years ago

found a bug 🐛

Description 📝

I wanted to try face-api.js and installed it. But when I import both ml5.js and face-api.js at the same time, I have a problem. So I cloned https://github.com/ml5js/ml5-library/ And I tried to build, install and use it via yarn build myself but I get the same problem.

Screenshots 🖼

problem
joeyklee commented 5 years ago

Hi @itlockit2 - Oh! yes this is something we are aware of. This has to do with a mismatch in the version of tensorflow.js. @WenheLI noted this issue as well here: https://github.com/ml5js/ml5-library/pull/493

Our current development build of ml5 rolls up face-api.js but we still need to resolve the issue with double importing tensorflow. Sorry about this!

joeyklee commented 5 years ago

Hi! face-api is now part of ml5.js v0.4.0. Feel free to give it a try! I will close his issue now.

Note: ml5 does not support expressions, age, and gender estimation. See: https://github.com/ml5js/ml5-library/issues/597

Creativeguru97 commented 4 years ago

Nov 14, 2020 Currently ml5 does support facial expressions:))))