问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/59860397/tensorflow-js-vs-tensorflow-lite