hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.13k stars 391 forks source link

Using @tensorflow/tfjs-node instead of @tensorflow/tfjs on OfflineCompiler #499

Open AbRezaei opened 5 months ago

AbRezaei commented 5 months ago

I need to compile target images on the server using NodeJs. I used this example and the target images are compiled correctly(but slower than client-side compilation). There is only one problem every time I run the app, this message is logged in the console:

============================
Hi, looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, visit https://github.com/tensorflow/tfjs-node for more details.
============================

I added @tensorflow/tfjs-node to my project but it still uses @tensorflow/tfjs and this message is displayed in the console.

Is there a way to use @tensorflow/tfjs-node instead of @tensorflow/tfjs? Is such a feature considered? Do you have a solution for that?