aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/g3doc/_index.yaml
blob: bc66cc5dc1606537b7e186f3c825ab8335aa9e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
project_path: /lite/_project.yaml
book_path: /lite/_book.yaml
description: <!--no description-->
landing_page:
  custom_css_path: /site-assets/css/style.css
  rows:
  - heading: TensorFlow Lite is for mobile and embedded devices.
    description: >
      <p style="max-width: 75%;">
        TensorFlow Lite is the official solution for running machine learning
        models on mobile and embedded devices. It enables on&#8209;device machine
        learning inference with low latency and a small binary size on Android,
        iOS, and other operating systems.
      </p>
      <style>
      .tfo-landing-row-heading {
        padding-top: 0 !important;
      }
      .tfo-landing-row-heading h2 {
        margin-top: 0 !important;
      }
      .tfo-landing-row-heading-list ol, .tfo-landing-row-heading-list ul {
        margin-top: 0;
      }
      </style>

  - classname: tfo-landing-row-heading tfo-landing-row-heading-list
    heading: Many benefits
    description: >
      On-device ML inference is difficult because of the many constraints—TensorFlow Lite can solve these:
    items:
    - list:
      - heading: Performance
        description: >
          TF Lite is fast with no noticeable accuracy loss—see the <a href="./performance">metrics</a>.
        icon:
          icon_name: lens
          foreground: theme
      - heading: Portability
        description: >
          <a href="https://developer.android.com/ndk/guides/neuralnetworks/" class="external">Android</a>,
          iOS, and more specialized IoT devices.
        icon:
          icon_name: lens
          foreground: theme
    - list:
      - heading: Low latency
        description: >
          Optimized float- and fixed-point CPU kernels, op&#8209;fusing, and more.
        icon:
          icon_name: lens
          foreground: theme
      - heading: Acceleration
        description: >
          Integration with GPU and internal/external accelerators.
        icon:
          icon_name: lens
          foreground: theme
    - list:
      - heading: Small model size
        description: >
          Controlled dependencies, <a href="https://medium.com/tensorflow/introducing-the-model-optimization-toolkit-for-tensorflow-254aca1ba0a3" class="external">quantization</a>,
          and op&nbsp;registration.
        icon:
          icon_name: lens
          foreground: theme
      - heading: Tooling
        description: >
          Conversion, compression, benchmarking, power-consumption, and more.
        icon:
          icon_name: lens
          foreground: theme

  - classname: devsite-landing-row-logos tfo-landing-row-heading
    heading: Companies using TensorFlow Lite
    items:
    - custom_image:
        path: ./images/landing-page/photos_logo.png
      path: https://www.photos.google.com
    - custom_image:
        path: ./images/landing-page/gboard_logo.png
      path: https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin&hl=en_US
    - custom_image:
        path: ./images/landing-page/gmail_logo.png
      path: https://www.google.com/gmail/
    - custom_image:
        path: ./images/landing-page/assistant_logo.png
      path: https://assistant.google.com/

  - classname: devsite-landing-row-logos
    items:
    - custom_image:
        path: ./images/landing-page/vsco_logo.png
      path: https://vsco.co
    - custom_image:
        path: ./images/landing-page/shazam_logo.png
      path: https://www.shazam.com/
    - custom_image:
        path: ./images/landing-page/nest_logo.png
      path: https://nest.com/    
    - custom_image:
        path: ./images/landing-page/loseit_logo.png
      path: https://www.loseit.com/

  - classname: devsite-landing-row-no-image-background devsite-landing-row-67
    background: grey
    items:
    - description: >
        <em>“TensorFlow Lite helped us introduce machine learning and AI into our
        app in an easy and streamlined way. We could reduce the size of our
        models while keeping the accuracy high. This helped us create an amazing
        fishing experience for our users by allowing them to identify any fish
        species with just a photo.”</em>
      image_path: ./images/landing-page/fishbrain_logo_big.png

  - heading: How it works
    items:
    - heading: Build
      icon:
        icon_name: build
      description: >
        Build a new model or retrain an existing one, such as using transfer learning.
      buttons:
      - label: Read the developer guide
        path: /lite/devguide
        classname: button button-primary tfo-button-primary
    - heading: Convert
      icon:
        icon_name: autorenew
      description: >
        Convert a TensorFlow model into a compressed flat buffer with the
        TensorFlow Lite Optimizing Converter (TOCO).
      buttons:
      - label: Read the TOCO guide
        path: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/toco/g3doc/python_api.md
        classname: button button-primary tfo-button-primary
    - heading: Deploy
      icon:
        icon_name: bolt
      description: >
        Take the compressed <code>.tflite</code> file and load it into a mobile
        or embedded device.<br/>
        See the <a href="#build-your-first-tensorflow-lite-app">tutorials below</a> to build an app.

  - heading: Build your first TensorFlow Lite app
    background: grey
    items:
    - classname: tfo-landing-row-item-inset-white
      heading: Get started
      description: >
        <ul>
          <li>Beginner: <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/" class="external">TensorFlow for Poets</a></li>
          <li>Beginner: <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/" class="external">TensorFlow for Poets 2: Android</a></li>
          <li>Beginner: <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-ios/" class="external">TensorFlow for Poets 2: iOS </a></li>
          <li>Intermediate: <a href="https://medium.com/tensorflow/training-and-serving-a-realtime-mobile-object-detector-in-30-minutes-with-cloud-tpus-b78971cf1193" class="external">Object detection tutorial</a>
        </ul>
    - classname: tfo-landing-row-item-inset-white
      heading: Share your TensorFlow Lite story
      description: >
        We love to hear what you're working on—it may even get highlighted on
        our social media! <a href="https://groups.google.com/a/tensorflow.org/forum/#!forum/discuss" class="external">Tell us</a>.

  - classname: devsite-landing-row-no-image-background devsite-landing-row-67
    items:
    - description: >
        <p>
          <em>“The release of TensorFlow Lite has allowed us to deploy an engaging
          real-time experience to our users that eliminates the requirement
          for a data connection. TensorFlow Lite’s ability to compress and
          optimize the TensorFlow graph for mobile deployment has been
          transformative in expanding the capabilities of Snap It.</em>
        </p>
        <p>
          <em>Through TensorFlow Lite, our users can now enjoy a state of the
          art, computer-vision-based food logging experience without worrying
          about signal strength. We look forward to future collaborations
          with the TensorFlow Lite team.”</em>
        </p>
      image_path: ./images/landing-page/loseit_logo_big.png

  - classname: devsite-landing-row-cards
    background: grey
    heading: Updates
    items:
    - heading: Introducing the Model Optimization Toolkit
      image_path: /ecosystem/images/tf-logo-card-16x9.png
      path: https://medium.com/tensorflow/introducing-the-model-optimization-toolkit-for-tensorflow-254aca1ba0a3
      buttons:
      - label: Read on TensorFlow blog
        path: https://medium.com/tensorflow/introducing-the-model-optimization-toolkit-for-tensorflow-254aca1ba0a3
    - heading: East Africa Cassava App
      image_path: ./images/landing-page/detect_crop_disease_in_africa.png
      path: https://heartbeat.fritz.ai/community-spotlight-nuru-a-mobile-app-by-plantvillage-to-detect-crop-disease-in-africa-28d142bf63d5
      buttons:
      - label: Read more
        path: https://heartbeat.fritz.ai/community-spotlight-nuru-a-mobile-app-by-plantvillage-to-detect-crop-disease-in-africa-28d142bf63d5
    - heading: Using TensorFlow Lite on Android
      image_path: /ecosystem/images/tf-logo-card-16x9.png
      path: https://medium.com/tensorflow/using-tensorflow-lite-on-android-9bbc9cb7d69d
      buttons:
      - label: Read on TensorFlow blog
        path: https://medium.com/tensorflow/using-tensorflow-lite-on-android-9bbc9cb7d69d

  - classname: devsite-landing-row-cards
    background: grey
    items:
    - heading: TensorFlow Lite at the Dev Summit
      youtube_id: FAMfy7izB6A
      buttons:
      - label: Watch the video
        path: https://www.youtube.com/watch?v=FAMfy7izB6A
    - heading: TensorFlow Lite on GitHub
      image_path: /ecosystem/images/github-card-16x9.png
      path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite
      buttons:
      - label: View on GitHub
        path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite
    - classname: devsite-landing-row-item-hidden