2021年2月2日星期二

TypeError: t.toFloat is not a function TensorFlow with Angular

I am trying to integrate TensorFlow Facemesh in Angular Application. I have imported all required modules and tried different model.

I am using following :

import * as tf from '@tensorflow/tfjs';  import * as facemesh from '@tensorflow-models/facemesh';  

Function :

    const faceEstimate = await model.estimateFaces(video));      console.log(faceEstimate);    

I am facing this error :

(in promise): TypeError: t.toFloat is not a function  TypeError: t.toFloat is not a function      at facemesh.esm.js:17  

I using Angular 10. Please help with this.

Update: I tried a Different Model with MediaPipe, which also gives the same error.

https://stackoverflow.com/questions/66009329/typeerror-t-tofloat-is-not-a-function-tensorflow-with-angular February 02, 2021 at 08:00PM

没有评论:

发表评论