Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow js VS Tensorflow Lite

Quite an open-ended question.

Just pretty curious whats the current difference if I want to deploy a machine learning (object detection) model on the browser, perhaps on a webapp to begin with (to be viewed on a phone).

From what I know, both tensorflowjs and tensorflowlite are compatible for such a deployment. (I've heard tensorflowlite is superior but, curious to find the pros and cons if any)

What are the main differences between them? Will tensorflowjs be a good choice too?

like image 675
Gabriel Avatar asked Jan 01 '23 08:01

Gabriel


1 Answers

main difference of tensorflow-lite against tensorflow.js is that you can not train new or existing model using tensorflow lite,but with tensorflow.js you can.

Hence tensorflowlite is only for inference to do on small capacity device(e.g. IOT)

moreover tensorflow.js work with nodejs/typescript and/or browser environment only.

enter image description here

like image 164
divyang4481 Avatar answered Jan 17 '23 04:01

divyang4481