i use @tensorflow/tfjs-node package for face-api.js package to speed up things (as they said ) that is my code :
// import nodejs bindings to native tensorfl