justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.69k stars 3.71k forks source link

Error: TypeError: trackerFn is not a function at new e (tf-core.esm.js:17) #252

Open RicardoGomesRocha opened 5 years ago

RicardoGomesRocha commented 5 years ago

Hi, I'm getting the following error when I tried to load a loadFaceLandmarkModel. I don't believe that is an error that is directly associated with face-api.js but an incompatibility of packages versions.

I already created a question on stackoverflow to seek help for the comunity:

https://stackoverflow.com/questions/55326589/error-typeerror-trackerfn-is-not-a-function-at-new-e-tf-core-esm-js17

Can you please help me solve this problem?

Thank you!

justadudewhohacks commented 5 years ago

I don't believe that is an error that is directly associated with face-api.js but an incompatibility of packages versions.

That's my guess as well. Which version of tfjs-core are you using?

CaoThien96 commented 5 years ago

I have a similar problem! I have used tfjs version >1.0.0

luiguild commented 5 years ago

same problem here

alexisalmeida commented 4 years ago

I was having the same problem. I resolved by inverting the package installation order: npm i @tensorflow/tfjs-node canvas face-api.js Thus, the version of tensorflow-core installed inside face-api is now 1.4.0. Otherwise version 1.2.9 had been installed.