pdfcoffee
Chapter 13In this section, we will discuss all the optimized pretrained models available inTensorFlow Lite out-of-the-box as of November 2019. These models can be used for alarge number of mobile and edge computing use cases. Compiling the example codeis pretty simple.You just import a new project from each example directory and Android Studio willuse Gradle (https://gradle.org/) for synching the code with the latest version inthe repo and for compiling. If you compile all the examples, you should be able tosee them in the emulator (see Figure 6). Remember to select Build | Make Project,and Android Studio will do the rest.Edge computing is a distributed computing model that bringscomputation and data closer to the location where it is needed.Figure 6: Emulated Google Pixel 3 XL with TensorFlow Lite example applications[ 469 ]
TensorFlow for Mobile and IoT and TensorFlow.jsImage classificationAs of November 2019, the list of available models for pretrained classification is ratherlarge, and it offers the opportunity to trade space, accuracy, and performance as shownin Figure 7 (source: https://www.tensorflow.org/lite/guide/hosted_models):Figure 7: Space, accuracy, and performance trade-offs for various mobile modelsMobileNet v1 is a quantized CNN model described in Benoit Jacob [2]. MobileNetV2 is an advanced model proposed by Google [3]. Online, you can also find floatingpointmodels, which offer the best balance between model size and performance.Note that GPU acceleration requires the use of floating-point models. Note thatrecently AutoML models for mobile have been proposed based an automated mobileneural architecture search (MNAS) approach [4], beating the models handcrafted byhumans.[ 470 ]
- Page 454 and 455: Chapter 11We will first import the
- Page 456 and 457: Chapter 11The αα is the learning
- Page 458 and 459: Chapter 11We set up the global valu
- Page 460 and 461: Chapter 11else:return np.argmax(sel
- Page 462 and 463: Chapter 11DQN to play a game of Ata
- Page 464 and 465: Chapter 11self.model.add( Conv2D(64
- Page 466 and 467: Chapter 11Here the action A was sel
- Page 468 and 469: Chapter 11Image source: https://arx
- Page 470 and 471: Chapter 11A neural network is used
- Page 472: Chapter 1111. Details regarding ins
- Page 475 and 476: TensorFlow and Cloud• Scalability
- Page 477 and 478: TensorFlow and Cloud• Azure DevOp
- Page 479 and 480: TensorFlow and Cloud• Lambda: The
- Page 481 and 482: TensorFlow and Cloud• Deep Learni
- Page 483 and 484: TensorFlow and CloudEC2 on AmazonTo
- Page 485 and 486: TensorFlow and CloudCompute Instanc
- Page 487 and 488: TensorFlow and CloudYou just share
- Page 489 and 490: TensorFlow and CloudIn case you req
- Page 491 and 492: TensorFlow and CloudIt starts with
- Page 493 and 494: TensorFlow and CloudTFX librariesTF
- Page 495 and 496: TensorFlow and CloudReferences1. To
- Page 497 and 498: TensorFlow for Mobile and IoT and T
- Page 499 and 500: TensorFlow for Mobile and IoT and T
- Page 501 and 502: TensorFlow for Mobile and IoT and T
- Page 503: TensorFlow for Mobile and IoT and T
- Page 507 and 508: TensorFlow for Mobile and IoT and T
- Page 509 and 510: TensorFlow for Mobile and IoT and T
- Page 511 and 512: TensorFlow for Mobile and IoT and T
- Page 513 and 514: TensorFlow for Mobile and IoT and T
- Page 515 and 516: TensorFlow for Mobile and IoT and T
- Page 517 and 518: TensorFlow for Mobile and IoT and T
- Page 519 and 520: TensorFlow for Mobile and IoT and T
- Page 521 and 522: TensorFlow for Mobile and IoT and T
- Page 523 and 524: TensorFlow for Mobile and IoT and T
- Page 525 and 526: TensorFlow for Mobile and IoT and T
- Page 527 and 528: An introduction to AutoMLThat is pr
- Page 529 and 530: An introduction to AutoMLFeature co
- Page 531 and 532: An introduction to AutoMLThis Effic
- Page 533 and 534: An introduction to AutoMLGoogle Clo
- Page 535 and 536: An introduction to AutoMLThen, we c
- Page 537 and 538: An introduction to AutoMLOnce the d
- Page 539 and 540: An introduction to AutoMLIf your mo
- Page 541 and 542: An introduction to AutoMLClicking o
- Page 543 and 544: An introduction to AutoMLFigure 16:
- Page 545 and 546: An introduction to AutoMLYou can al
- Page 547 and 548: An introduction to AutoMLPut simply
- Page 549 and 550: An introduction to AutoMLLet's star
- Page 551 and 552: An introduction to AutoMLThe token
- Page 553 and 554: An introduction to AutoMLThis will
Chapter 13
In this section, we will discuss all the optimized pretrained models available in
TensorFlow Lite out-of-the-box as of November 2019. These models can be used for a
large number of mobile and edge computing use cases. Compiling the example code
is pretty simple.
You just import a new project from each example directory and Android Studio will
use Gradle (https://gradle.org/) for synching the code with the latest version in
the repo and for compiling. If you compile all the examples, you should be able to
see them in the emulator (see Figure 6). Remember to select Build | Make Project,
and Android Studio will do the rest.
Edge computing is a distributed computing model that brings
computation and data closer to the location where it is needed.
Figure 6: Emulated Google Pixel 3 XL with TensorFlow Lite example applications
[ 469 ]