Lurker News

Comments (83) 43 threads

antimatter158 replies#
Hey HN!

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.

rahimnathwani1 reply#
This looks awesome!

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?

bijection#
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.

incompatible1 reply#
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?
gilbertstein#
Dude what it did was paint , as in recognizing thats its a picture of 2 cubs and then paint it like the way humans can, its freaking amazing
ZeroCool2u1 reply#
Just wanted to note, I ran the kitten demo in Chrome on my Nexus 6P (Android O Beta) and it worked perfectly.

Extremely impressed. Keep it up!

ehsankia1 reply#
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.

SimbaOnSteroids#
It really had trouble with the portraits in my experience.
dgacmu#
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!

mzh0#
Do you have benchmark number like FLOPS compared to GPU / CPU?
NKCSS#
If I upload a 6MB image from my Canon, the site/browser (chrome) crashes. Example images work fine.
Zeklandia#
Works fine in Chrome on my Google Pixel, Android 7.1.2.
Bondifrench#
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
danicgross1 reply#
TensorFire was a finalist of AI Grant. Applications for the next batch are open now! Get $2,500 to work on your AI project: https://aigrant.org.

It should only take five minutes or so to apply.

backpropaganda1 reply#
Does it make sense for an active PhD student to apply?
badlogic#
Yes!
bijection2 replies#
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.

We will probably release it under an MIT license.

espadrine1 reply#
How does it compare to WebDNN[0]? It seems like a closer comparison, especially with WebGPU.

It would be good if you had a comparative benchmark on the website.
[0]: https://mil-tokyo.github.io/webdnn/

zitterbewegung#
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.
mholt1 reply#
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.
dgacmu#
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.

Load more comments