TensorFlow Lite for Android (Coding TensorFlow)

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • In this episode of Coding TensorFlow, Laurence Moroney, Developer Advocate for TensorFlow at Google, talks us through how TensorFlow Lite works on Android. You'll see how to deploy a trained model to an Android App, and how you can run inference with it in Java.
    “Building TensorFlow on Android” article → goo.gl/B8SV2d
    TensorFlow Lite Demo for Android → goo.gl/nWAipo
    Subscribe to the channel to catch new episodes of Coding TensorFlow → goo.gl/ht3WGe
    Watch more Coding TensorFlow episodes here → goo.gl/cezxSW

КОМЕНТАРІ • 80

  • @mbonuchinedu2420
    @mbonuchinedu2420 4 роки тому +9

    Please we need videos on how to convert tensorflow models to lite versions. That's the major problem.

  • @victorkibiwot8047
    @victorkibiwot8047 2 роки тому +3

    The link to Tensor Lite Demo for android is not working

  • @surajtamrakar4455
    @surajtamrakar4455 4 роки тому +3

    #askTensorflow: the github links does not work. Could you look into it

  • @TubeTubeTati
    @TubeTubeTati 6 років тому +4

    I downloaded that file, unzipped. there is no labels.txt file inside. please help.

  • @anilvutube1
    @anilvutube1 5 років тому +3

    The downloaded model has a "tflite" extension but the model being used in the android app seems to have ".lite" extension. How do you convert .tflite to .lite or are they interchangeable?

  • @objectobjectobject4707
    @objectobjectobject4707 3 роки тому

    good example in the function that converts bitmap to ByteBuffer and to IMG data,kind of fun that we are giving the labels and at the end we could use distance function to calculate the nearest labels to the output(if this makes sense).

  • @heller4196
    @heller4196 5 років тому +2

    I've been watching Laurence Moroneys courses, tutorials on deep learning for a year now and the one thing he always says is : "Which is really as simple as that".

  • @hotagu4187
    @hotagu4187 3 роки тому +2

    LINKS ARE DEAD

  • @albertwesker2050
    @albertwesker2050 5 років тому

    What if I don't want to recognize WHAT the image is, but rather than an item is an item? I.E. you take some toys and set them on the floor. The camera captures the scene ( live display) and displays it with the items having squares around the objects. Simply recognizing something is an object/ item rather than know WHAT the item is. I am asking this because I am working on a project that just needs to know something is an item rather than a specific item.

  • @chiragprajapati6312
    @chiragprajapati6312 5 років тому +2

    #AskTensorflow: How do i implement this in React-Native APP any blog suggestion or any thing??

  • @LixVito
    @LixVito 6 років тому +3

    Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve org.tensorflow:tensorflow-lite:+.

    • @mahatanweer4728
      @mahatanweer4728 3 роки тому

      Did it resolve? Facing the same trouble here:((

  • @scyyyy
    @scyyyy 5 років тому

    Is there a way to get more information than just a list of objects? Like the position of the detected element would be nice.

  • @SnowmansApartment
    @SnowmansApartment 4 роки тому

    Awesome, i‘m fairly new to programming and just lernt flutter. Currently looking for a way to program something like the quick select tool in photoshop, to get the borders of specific objects which i select in a picture. Is TF Lite a good way to do that, as the objects are quite similar or should i obt for something like GrabCut in OpenCV instead?

  • @wasgeht2409
    @wasgeht2409 6 років тому

    i did exactly the same as in the description , set the variable nativeBuildSystem='none' in build.gradle and it didn't work at my smartphone. The error is " Execution failed for task ':compileDebugJavaWithJavac'. Unable to find source java class: ......../Constant.java because it doesn't belong to any of the source dirs:.....".

  • @IronBat
    @IronBat 3 роки тому

    How to store that image classification data into the internal storage of phone?

  • @tech-talks-with-shakeel0346
    @tech-talks-with-shakeel0346 4 роки тому

    how to deploy my own text classification model to android ??
    As the way to deploy my model is the same that you described in the video?

  • @naveenkumara4641
    @naveenkumara4641 5 років тому +1

    i developed object detection android app using predefined mobilenet tflite model. Now I have developed own tflite model but its not get integrate to android. Please help me to how to build the model that should suitable for android environment.
    Thanks in advance.

  • @hanweijie8092
    @hanweijie8092 5 років тому

    How do you change the code from back-camera to front-camera?

  • @Developershotss
    @Developershotss 6 років тому +1

    Please make a video on object detection.

  • @nawalhamed6394
    @nawalhamed6394 4 роки тому

    Hi, If I have .pb model file and I want to convert it to .h5 can I do that? also can I use faster rcnn model with website?

  • @juanpablooberhauser4035
    @juanpablooberhauser4035 3 роки тому

    This is a very informative video. Has anyone figured out how to run these models from an external webcam in Android (for further range detections for example)?

  • @stevemuland8685
    @stevemuland8685 6 років тому

    please, How i can i create an instance of a tensorflow interpreter on android studio 3.1.1 because the one you show does not work

  • @Otonium
    @Otonium 5 років тому

    How do I know if a phone model has hardware acceleration instead of cpu?

  • @ericcute6471
    @ericcute6471 4 роки тому

    Hello. Thanks for your videos. Can you help me on how to save the detected object from a live feed and automatically save it as .jpg file whenever a specific object is detected e.g. Person and at the same time, it saves into .CSV file which contains “Person” as text? Thank you in advance.

  • @isaiasprestes
    @isaiasprestes 6 років тому +37

    I fell that soon I will love TF more than my wife! :) Great news!

    • @pandeysatish
      @pandeysatish 6 років тому +1

      That's surprising... but it feels great to hear being a developer.

  • @potobill
    @potobill 6 років тому

    Can we already convert RNN/LSTM to tensorflow lite? I have TF 1.8.0, and I always get an error when I try to convert my LSTM graph

  • @gmjelle
    @gmjelle 6 років тому +4

    #askTensorflow: is it possible to use Dart/Flutter with Tensorflow?

    • @codeamans9167
      @codeamans9167 6 років тому +1

      github.com/kashifmin/flutter_tensorflow_lite

    • @manthanpatel779
      @manthanpatel779 5 років тому

      @@codeamans9167is that have support for keras??

    • @geld5220
      @geld5220 3 роки тому

      can you deploy this to the app store? SDK issues arises when I try to release my app with tensorflow lite with flutter. Its failing on device Huawei p8. I had to to downgrade to sdk 24 which failed other dependencies and plugins. Anyone had a sort of same experience?

  • @rohan4748
    @rohan4748 6 років тому +1

    I used compile 'org.tensorflow:tensorflow-lite:+' and i got this error Failed to resolve: org.tensorflow:tensorflow-lite:+ Could you please help me.

    • @utkarshkolhe
      @utkarshkolhe 6 років тому

      there are 2 build gradle. Make sure to add in Module App and not in Project

  • @gloirakim1158
    @gloirakim1158 4 роки тому

    This video is so easy to understand! Thank you for sharing this video with us. :)

    • @networkid4642
      @networkid4642 3 роки тому

      can you re-explain it to me please? :(

  • @suneshpamuru9612
    @suneshpamuru9612 5 років тому

    I am planning to use TFLite C++ API from a C++ library. This C++ library is going to be used by Android Java application through JNI. Can you please let me know any sample code to get started?

    • @parimalarenga92
      @parimalarenga92 5 років тому

      what kink of application interpreter or compiler app you advice to using tesorflow lite in android like qpython

  • @user-kg9xz3ny4e
    @user-kg9xz3ny4e 4 роки тому

    When Text classification can support Chinese ?

  • @frankynakamoto2308
    @frankynakamoto2308 5 років тому

    Why donot they make an easy adaption that can just be copy and paste specifically design to do certain functions only, like arranging, learning, etc

  • @Sposhal
    @Sposhal 4 роки тому +1

    Where is the github Link sir

  • @annauniversity3189
    @annauniversity3189 Рік тому

    The page has no data if anyone rind this comment pls mention the updated info

  • @m0n024
    @m0n024 5 років тому

    how can i create my own tflite model

  • @themonkeyminds7252
    @themonkeyminds7252 6 років тому

    #AskTensorflow: how can we RUn and install tensorflow in raspberry pi &beaglebone & other embedded systems ??

  • @manfyegoh
    @manfyegoh 6 років тому

    expo react native support?

  • @johnyandroid8042
    @johnyandroid8042 5 років тому

    HOW TO DETECT BUBBLES IN OMR SHEET WITH TENSOR FLOW....PLEASE HELP

  • @vijaysaiisanengineer
    @vijaysaiisanengineer 6 років тому

    I'm trying to classify a image that's picked from device storage and the accuracy is 1/10th (0.01-0.3) of the original implementation. Any suggestions on how to go about this ?
    stackoverflow.com/questions/49954439/low-accuracy-with-static-image-on-tflite-demo-model

  • @kkjc
    @kkjc 6 років тому

    Hi Laurence!
    Thanks for sharing.
    Did you plan to also add a Python API to the TensorFlow Lite Architecture?

    • @shubhamsrivastava4403
      @shubhamsrivastava4403 6 років тому +1

      what is need of python API in tensor flow Lite, if it is for mobile platform. It would increase the size unnecessarily

    • @kkjc
      @kkjc 6 років тому +2

      So, it is your choice regarding this constraint.
      Indeed, there are some tutos about the subject but the method seems to be very unstable. That is the reason for my question before moving deeper on.
      In conclusion, it would be necessary to master JavaME to build a very customized and optimized mobile app (professional apps) on machine learning models, using TensorFlow Lite.

    • @shubhamsrivastava6590
      @shubhamsrivastava6590 6 років тому

      Hi inside tensorflow/contrib/lite/ i have seen interpreter.py file. So think it may support Python api also

    • @shubhamsrivastava6590
      @shubhamsrivastava6590 6 років тому +1

      currently i am looking to make changes in the cpp files that contains the implementation of native java methods and after that we can build it using bazel and use the .so files in android studio for making custom apps.

    • @kkjc
      @kkjc 6 років тому +1

      OK, great!
      Thank you Shubham Srivastava.

  • @waqasakram117
    @waqasakram117 6 років тому

    2:31 Compile is deprecated use implementation in Gradle

    • @khurramrizvi153
      @khurramrizvi153 6 років тому

      waqas akram don't worry I have also got the same error...just ignore it and continue using compile...btw compile will be deprecated at the end of 2018...

    • @miroslavspirkoski5623
      @miroslavspirkoski5623 6 років тому

      You can simply replace compile with api or implement. Both of them work just fine and the warning goes away

  • @viharipinnenti3798
    @viharipinnenti3798 5 років тому

    How can we retrain the model for voice recognition in android

    • @blahchop
      @blahchop 4 роки тому

      There are probably some pre-trained models out there somewhere for this. You would need a lot of data. To get started you would need some audio files of a large range of voices. Then you would need a lot of audio files that aren't voices. Then you could either train your model using images of a spectrogram you would have to create for each audio file or use the waveform of the frequencies over the time (duration of the file). You could write a program to randomly generate different frequencies/duration off of one audio file (common frequencies within human speaking range) as well. Then use those randomly generated forms of that one audio file to train against non voice files. Then do as they showed in this video. Import the model into Android Studio or whatever IDE. Then in your actual app you would need to use data coming from the microphone and you would probably have to apply filters or use some built in features to clean it up. You feed that waveform data into your model and get your output. It would be much easier and faster if you trained the model to only recognize people saying specific words.

  • @tanmaydeshpande2409
    @tanmaydeshpande2409 4 роки тому

    How to use TENSORFLOW LITE on ATMEGA 328p IC for OBJECT DETECTION?

    • @itstimeforpopping3462
      @itstimeforpopping3462 Рік тому +1

      It's impossible bro but you can run Tensorflow lite on a smartphone that communicate with your ATMEGA IC through Bluetooth /WIFI Module Adapter, or USB

    • @tanmaydeshpande2409
      @tanmaydeshpande2409 Рік тому

      @@itstimeforpopping3462 Thanks for the reply!

  • @josediogo4701
    @josediogo4701 6 років тому +2

    Great app, testing it #Brazil

  • @ronaldalcantara6165
    @ronaldalcantara6165 4 роки тому

    does anyone know where it is inserted: import org.tensorflow.lite.Interpreter?

    • @rishabhtyagi2379
      @rishabhtyagi2379 3 роки тому

      The file where you will use Interpreter instance

  • @FarhaKareem
    @FarhaKareem 6 років тому

    Where do we code this?

  • @wasgeht2409
    @wasgeht2409 6 років тому

    WE NEED MOREEEEE !!!!

  • @fuggles2544
    @fuggles2544 5 років тому

    Thanks Laurence, that's a great introduction.

  • @sunil-khatri
    @sunil-khatri 4 роки тому

    Tensorflow is best. 🔥🔥

  • @ego_sum_liberi
    @ego_sum_liberi 6 років тому

    Hmm...I feel that core-ml has a new competitor now....

  • @siddhartharendula9907
    @siddhartharendula9907 6 років тому

    thats awesome

  • @internationalscholarhw
    @internationalscholarhw 4 роки тому

    👍

  • @malcolmagius5812
    @malcolmagius5812 3 роки тому

    The code comes out like eggs come out of chicken

  • @benbezzina2574
    @benbezzina2574 3 роки тому

    You put code there on the screen put don't say how to use it. Useless!