5 ms·
TensorFlow Lite is for mobile and embedded devices
- sjroot 8y agoThey have a section for “Companies using TensorFlow Lite,” but half of them are Google apps. They say performance is comparable, but I wish the landing page would elaborate more on the differences between this library and standard TF.
- cat199 8y agoshh - "TensorFlow Lite is the official solution for running machine learning models on mobile and embedded devices." it's the OFFICIAL SOLUTION. please, DO NOT QUESTION us. We are TEH GOOGZ!
- cyrux004 8y agoI have a raspberry pi running a fairly simple application. What can I do something which might be useful using tf lite on my pi?
- sjroot 8y agoImage or facial recognition. You could make a home security system.
- ramraj07 8y agoYou just need to run a pretrained model for that right ?
- alexcnwy 8y agoyou could use a pretrained object detection model with some lightweight logic built around it (e.g. send you a slack notification when a human object is detected in at least 5 consecutive frames between these hours) but you might also want to find-tune a pretrained model to work well given your camera's angle, lighting conditions, etc.
- 300bps 8y agoFirst Robotics is a worldwide robotics competition that was started years ago by Dean Kamen. This year’s challenge is called Rover Ruckus and simulates a Rover landing on an alien planet. There is a 30 second autonomous mode wherein one of the challenges is to use a camera to discern where a gold mineral lies in a field of two silver and one gold minerals. My son’s team uses Tensor Flow to accurately discern which mineral is the gold.
- gbear605 8y agoFor reference, this challenge is part of FIRST Tech Challenge (FTC), in which they build robots the size of 18” cubes. FIRST Robotics Competition (FRC), which builds much larger robots (120 lbs, often as tall as people) has its competition announced in two weeks. Many teams that are part of FRC use Raspberry Pis or other microcontrollers to do vision processing and it’s super cool to hear that FTC teams are doing it as well. Both are very exciting and great opportunities for high schoolers to get involved in STEM (as well as being an amazing chance for adults to get involved in mentoring a team). I can’t recommend it enough.
- dekhn 8y agoMy intern, Vasu Agarwal, built FTC's official tensorflow detector for this year's competition. I was pretty impressed how quickly we were able to turn a model trained on a GPU into something that ran at reasonable FPS on Androids. We used TF Lite, I loved working with it. Heck, I enjoyed using it more than TF proper.
- sandGorgon 8y agois there a blog post on this ? we have been struggling to export models to tf-lite. Not sure if you are using TPU trained models (which is cheap) or GPU trained ones using your machines... but a quick pointer would be helpful.
- dekhn 8y agoMaybe http://firsttechchallenge.blogspot.com/2018/11/tensorflow-machine-learning-technology.html http://firsttechchallenge.blogspot.com/2018/11/tensorflow-ma... and https://github.com/ftctechnh/ftc_app/wiki/Using-TensorFlow-Lite-for-Mineral-Detection https://github.com/ftctechnh/ftc_app/wiki/Using-TensorFlow-L... ?
- deleted 8y ago[deleted]
- johnklos 8y agoTensorFlow Lite sounds like a good idea, but they don't talk at all about how to build it. "Run this shell script" is neither saying what the requirements are, nor does it give any idea about supported targets. How I hate this new trend of not documenting anything. This might be usable if it doesn't require Bazil. Requiring that makes deployment much, much heavier and makes the whole process significantly more complex. "Embedded"? Does that mean ARM to these folks who don't know how to version and how to document?
- lovelearning 8y agoI'm not a fan of Bazel either. Luckily, this doesn't require Bazel. Their guide [1] explains how to build using regular make for RPi. [1]: https://www.tensorflow.org/lite/rpi https://www.tensorflow.org/lite/rpi
- m0zg 8y agoI'm a big fan of Bazel (or its Google internal counterpart, Blaze). Such a big fan, in fact, that I even use it for Python projects, and package outputs into Google PAR: https://github.com/google/subpar https://github.com/google/subpar. As long as you stick with the official 4 Google languages (C++, Java, Python, Go) it doesn't get any better IMO, as far as build systems are concerned. I do wish it didn't require Java though.
- lovelearning 8y agoI have a bad impression of Bazel for multiple reasons. I wanted to build TF on the Pi but at the time I assumed it required Bazel. Bazel had no ARM version (my experience was in mid-2017). I had to first build Bazel from sources. Failed a few times because its heap settings were too low, required a lot more swap and storage than I expected, and got the Pi so hot that I had to quickly setup some cooling fans around. A successful build took ~1.5 hours on a RPi 2. Then the full TF build using Bazel took some 10-11 hours. Finally, Bazel's command-lines - ex: "bazel build --config=opt -k //tensorflow/tools/pip_package:build_pip_package" - felt very counterintuitive and not easy to remember. For the first two problems, I learnt it the hard way that a cross-compilation environment is better than building on-device. The last one I still have a problem with.
- techvella 8y agoHere is an article about it. https://techvella.com/elgato-stream-deck/ https://techvella.com/elgato-stream-deck/
- canada_dry 8y agoTen years ago I wouldn't have predicted a device for ~$5 that could host a wireless webserver (e.g. ESP8266). But nowadays it doesn't take much of a stretch to imagine that very powerful and cheap general purpose ML devices - kinda like Marshall envisioned in manna - are going to flourish in the next 2-3 years.