vladmandic / face-api

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS
https://vladmandic.github.io/face-api/demo/webcam.html
MIT License
824 stars 149 forks source link

TypeError: H(...).platform.isTypedArray is not a function #153

Closed 0xori closed 1 year ago

0xori commented 1 year ago

im getting this error when trying to load models

 await  #faceapi.nets.ssdMobilenetv1.loadFromUri("/models")

happens when using @tensorflow/tfjs - ^4.2.0 might be relatet to this: #https://github.com/tensorflow/tfjs/issues/7273 tried to downgrade to @tensorflow/tfjs 3.7.0 as mentioned in the tfjs issue didn't help

vladmandic commented 1 year ago

i have nothing to go on - please fill the issue template!

0xori commented 1 year ago

i was trying to load an automl model using await automl.loadImageClassification the tfjs version was not matching the lib tfjs version. once i downgraded it solved.