We're really excited to finally share this with you all! This is the first of a series of demos that we're working to release this week, and we're hoping you'll keep us to that promise :) Sorry if it doesn't work on your computer! There's still a few glitches and browser compatibility problems that we need to iron out, and we're collecting some telemetry data with LogRocket (https://logrocket.com/) to help us do so (so you all know what kind of data is being collected). We'll open source the library under an MIT license once we finish writing up the API docs, and fixing these bugs.
It looks like it (like keras-js) is only for inference (running already-trained models) and not for training. Is this correct? Are the operations or memory required for training very different?
Yes, you are correct! Training benefits much more from available memory through batching and, since in many cases you only need to train once, it usually makes sense to train on beefy GPUs.
TensorFire is useful in situations where you want to perform inference, but you don't want to ship user-supplied data to your servers, either because you would run out of bandwidth, you would run out of compute power, or your users want to keep their data private.
I'm not sure if it's working with my browser or not. It says "Compiling network", then shows a lot of flashing rectangles, then stops and displays a single grey rectangle. Is that what it's supposed to do?
It's quite unreal. I remember when the paper and initial implementations came out less than 2 years ago, you had to go through this really long setup process that only worked on certain operating system and was a huge fuss. A few services came out online that would do it for you, but they were slow and limited, with huge queues.
Now, as you mention, you can run it in a few seconds on your phone, or in my case, on my Chromebook, right in the browser, with zero installation. Truly amazing.
Very nice work, folks. Impressive, and very well-put-together demo. That's the easiest neural style transfer demo I've ever used - and the most fun. (Other than a minute of worrying that my poor 2013 MBP was about to melt down, but that's not your fault. :-)
The download link failed, as others have noted. Thanks so much for sharing this!
This is great! Keep up the good work!
A link to your github repo would be great.
I don't know if it was intentional but I did find your library on npm: https://www.npmjs.com/package/tensorfire
TensorFire is up to an order of magnitude faster than keras-js because it doesn't have to shuffle data back and forth between the gpu and cpu. Also TensorFire can run on browsers and devices that don't support OES_TEXTURE_FLOAT.
I'm really interested in using Smartphones / Mobile devices for inference. Can this work with react-native so that I can build it without a bridge ? I would assume I would create a webview that would load a local website.
This is amazing. I can't use GPU Tensorflow (natively) on my Macbook Pro because it doesn't have an NVIDIA graphics card. But I can... in the browser! Honestly didn't see that one coming.
To be clear, you can use it - just without GPU acceleration. The CPU-only build is supported and should work for you. If it's not, please let (me, us) know. Be sure to compile with AVX2 if you're on haswell or later; it helps quite a bit with some models.
Comments (83) 43 threads
We're really excited to finally share this with you all! This is the first of a series of demos that we're working to release this week, and we're hoping you'll keep us to that promise :)
Sorry if it doesn't work on your computer! There's still a few glitches and browser compatibility problems that we need to iron out, and we're collecting some telemetry data with LogRocket (https://logrocket.com/) to help us do so (so you all know what kind of data is being collected).
We'll open source the library under an MIT license once we finish writing up the API docs, and fixing these bugs.
It looks like it (like keras-js) is only for inference (running already-trained models) and not for training. Is this correct?
Are the operations or memory required for training very different?
TensorFire is useful in situations where you want to perform inference, but you don't want to ship user-supplied data to your servers, either because you would run out of bandwidth, you would run out of compute power, or your users want to keep their data private.
Extremely impressed. Keep it up!
Now, as you mention, you can run it in a few seconds on your phone, or in my case, on my Chromebook, right in the browser, with zero installation. Truly amazing.
The download link failed, as others have noted.
Thanks so much for sharing this!
It should only take five minutes or so to apply.
We will probably release it under an MIT license.
It would be good if you had a comparative benchmark on the website.
[0]: https://mil-tokyo.github.io/webdnn/
All comments shown.
Couldn't load more comments. Check your connection and try again.