TensorFlow.js

TensorFlow.js

Utilities / Application Utilities / Machine Learning Tools
Avatar of rashidmunir001
freelancer at freelancer·
Needs advice
on
TensorFlowTensorFlow
and
TensorFlow.jsTensorFlow.js

Need your kind suggestion if I should choose TensorFlow.js or TensorFlow with Python for ML models. As I don't want to go and have not gone too deep in JavaScript, I need your suggestion.

3 upvotes·112K views
Replies (2)
Recommends
on
TensorFlow
TensorFlow

Tensorflow is python is more general. If you are not interested in browser based implementations of ML models. I would advice go for TensorFlow with python. With python you will be able to access other ML frameworks like pytorch, fastai etc.

3 upvotes·275 views

Hello there. I work on the TensorFlow.js team here at Google. Just joined this site so wanted to give a response. Essentially given you are more proficient in Python you may prefer to use that stack but do consider the following edge cases for times where you may need to use them:

1) Speed. TensorFlow.js Node can run faster than TensorFlow Python due to the JIT compiler that JS has. Up to 2x faster for full end to end including pre/post processing. See this blog: https://blog.tensorflow.org/2020/05/how-hugging-face-achieved-2x-performance-boost-question-answering.html

2) If you need to run your model client side then TensorFlow.js is the only option for the browser. By doing that you get the following unique super powers:

a) Privacy - no data needs to be sent to server for inference

b) Cost savings - no expensive server with big GPU needed to run 24/7 to provide a service to your users

c) Can run on device with lower latency - no round trip time to server. Some of our pose models for example run at over 120 FPS on a 1070 GPU in the browser!

d) Reach and scale of the web. Any one anywhere can experience the ML model you make by visiting a link. No Linux setup, no GitHub cloning, no CUDA installation, or deps. It just works. If you want feedback and eyes on your latest model, TensorFlow.js is a great way to showcase it and allow anyone anywhere to try it. You may even find bias etc you need to fix by getting more eyes on it. Very useful!

Good luck on your journey and if you are interested I am launching a brand new course - the first on EdX for TensorFlow.js for Web ML here: https://www.edx.org/course/google-ai-for-javascript-developers-with-tensorflowjs

READ MORE
2 upvotes·789.7K views
Avatar of neelbavarva
Student at NeelBavarva·

I am highly confused about using Machine Learning in Web Development. Should I learn ML in Python or start with TensorFlow.js as I'm a MERN stack developer? If any good resource (course/youtube channel) for learning Tensorflow.js is out there, please share it.

2 upvotes·91.2K views
Replies (1)

Hello Neel! Thanks for posting. Only joined this site recently and saw your question, but wanted to reach out anyhow. I am actually launching the first ever EdX course for Machine Learning for Web Engineers hopefully mid February. Free to take if you don't need the certification. Should take you from zero to hero for getting productive with web based ML. Using TensorFlow.js in the browser has a number of advantages over Python - privacy, cost, works offline etc. In today's world both are important but given your web background you may enjoy JS. Also our Node.js implementation runs as fast or faster than Python on the server side. Check these links for further reading:

30 min 2021 overview of TensorFlow.js: https://www.youtube.com/watch?v=uU-u-5Eo65g Book by OReilly: https://www.oreilly.com/library/view/learning-tensorflowjs/9781492090786/ Official TensorFlow.js course coming out in Feb: https://www.edx.org/course/google-ai-for-javascript-developers-with-tensorflowjs

READ MORE
(twitter.com)
1 upvote·153 views