Tensorflow.js – A Practical Guide
21–30 of 37 posts
Re: Tensorflow.js – A Practical Guide
#22Is there a TF/Keras in Python to JavaScript transpiler somewhere? I don't want to waste time retyping complex methods to JS. Thanks for any suggestion!
Guide here:
Re: Tensorflow.js – A Practical Guide
#23Earlier quoted context omitted.
Tensorflow tries to fit the free parameters (usually millions of parameters) of a function y=f(x). The fitting algorithm gets usually thousands or millions of examples of how the output y for a given input x has to look like. For example, x can be tens of thousands of images of cats and dogs, and y can be 1 for a dog and 0 for a cat. The goal for the fitting algorithm is to find parameters that describe the concept o…
If I understand it correctly: - Tensorflow is the best tool to make the grunt work necessary to calibrate the parameters of fitting algorithms. - Models of fitting algorithms are human proposed and where the ML 'art' is. Seems to be kind of reverse engineering.
Re: Tensorflow.js – A Practical Guide
#24Earlier quoted context omitted.
> So this is "we don't want to use another language". Yup, which is a perfectly valid reason. > If calling out to a binary is a security problem for you You miss the point. The security problem is sending the raw data from the client to the server. > So again, this boils down to "I don't want to use Python and I'd prefer to use JS instead." Which once again, is a perfectly valid reason > Servers are expensive so host…
"You miss the point. The security problem is sending the raw data from the client to the server." So don't do that. If you can run tensorflow on your device, you can call out to a local process. If you want to use JS to do everything, fine. But that's not a good reason. It's just a reason.
Try to understand what is at play here. It's not all about raw performance, there are many more important things to consider that GP explained extensively.
Re: Tensorflow.js – A Practical Guide
#25Earlier quoted context omitted.
> So this is "we don't want to use another language". Yup, which is a perfectly valid reason. > If calling out to a binary is a security problem for you You miss the point. The security problem is sending the raw data from the client to the server. > So again, this boils down to "I don't want to use Python and I'd prefer to use JS instead." Which once again, is a perfectly valid reason > Servers are expensive so host…
"You miss the point. The security problem is sending the raw data from the client to the server." So don't do that. If you can run tensorflow on your device, you can call out to a local process. If you want to use JS to do everything, fine. But that's not a good reason. It's just a reason.
Not from a webapp (without jumping through a dozen other hoops.) With tensorflow.js, you can do (for example) pose estimation, or face detection, or audio recognition, right in the browser without sending data to a remote server.
> But that's not a good reason. It's just a reason.
Yes, of course it's a reason. The point is that it can be a good reason in many cases.
Re: Tensorflow.js – A Practical Guide
#26You were so busy figuring out if you could, you didn't stop to wonder if you should… Joking aside this is super cool
I was going to upvote you ‘til I read the last line
Re: Tensorflow.js – A Practical Guide
#27A nice introductory presentation about deep learning using tensorflow.js: https://youtu.be/SV-cgdobtTA
Re: Tensorflow.js – A Practical Guide
#28Is there a TF/Keras in Python to JavaScript transpiler somewhere? I don't want to waste time retyping complex methods to JS. Thanks for any suggestion!
You can probably export your Keras model, load it in tensorflow.js, and train it. Makes more sense than transpiling. Guide here: https://js.tensorflow.org/tutorials/import-keras.html
Re: Tensorflow.js – A Practical Guide
#29Earlier quoted context omitted.
"You miss the point. The security problem is sending the raw data from the client to the server." So don't do that. If you can run tensorflow on your device, you can call out to a local process. If you want to use JS to do everything, fine. But that's not a good reason. It's just a reason.
How can you run Python tensorflow locally? We're talking about web apps here. Try to understand what is at play here. It's not all about raw performance, there are many more important things to consider that GP explained extensively.
Re: Tensorflow.js – A Practical Guide
#30Earlier quoted context omitted.
"You miss the point. The security problem is sending the raw data from the client to the server." So don't do that. If you can run tensorflow on your device, you can call out to a local process. If you want to use JS to do everything, fine. But that's not a good reason. It's just a reason.
> So don't do that. If you can run tensorflow on your device, you can call out to a local process. Not from a webapp (without jumping through a dozen other hoops.) With tensorflow.js, you can do (for example) pose estimation, or face detection, or audio recognition, right in the browser without sending data to a remote server. > But that's not a good reason. It's just a reason. Yes, of course it's a reason. The point…