tensorflow lite android tutorial | Deploy ml model on android app | part 1 Create tflite model

Поділитися
Вставка
  • Опубліковано 6 жов 2024
  • This is part 1 of deploying model on android using tensorflow lite. You need to have .tflite model in order to deploy so in this part i have explained how to create and convert model in tflite so enjoy
    If you want to learn how to create a android app with machine learning model deployed in it or embedded in it then you can proceed with this two videos. Basically in these videos I tried teaching you how you can create a deep learning android app which will have a tflite model deployed in it.
    Since I am starting from scratch assuming you don't even know about tflite So In this particular video I tried showing you how you can convert you own deep learning model into tflite model.
    code : github.com/Paw...
    dataset : archive.ics.uc...
    install pkgs:
    pip install tensorflow
    pip install keras
    pip install scikit-learn
    pip install pandas
    pip install numpy
    part 2 deploying model - • tensorflow lite androi...
    LIKE + SHARE + SUBSCRIBE = support :)
    contact me : 📞
    facebook :
    / proogramminghub
    twitter 🐦 :
    / programming_hut
    github :
    github.com/Paw...
    discord :
    / discord
    linkedin :
    / programminghut
    youtube ❤️:
    / programminghutofficial
    tags:
    deploy ml model on android], [], {google:suggestsubtypes:[[457]], deploy ml model on android,

КОМЕНТАРІ • 38

  • @manasvipundir4145
    @manasvipundir4145 3 роки тому +3

    Hi, I am getting this error using jupyter notebook..
    "The kernel appears to have died. It will restart automatically."
    Please suggest, i'am stuck.

  • @medifreeman2998
    @medifreeman2998 2 роки тому

    Soooo much information in a short video
    Thanks you brother you are a hero 😀

  • @ManojKumar-wf5qs
    @ManojKumar-wf5qs 3 роки тому +2

    Is it is possible to deploy a CNN model into a Android app?

  • @anshumanprajapati9770
    @anshumanprajapati9770 5 місяців тому

    not able to convert sklearn models like random forest directly......tried using special function for that, but shows that function is deprecated in latest version of tensorflow

  • @cerpenai1
    @cerpenai1 2 роки тому +1

    How to add meta data cnn model tensorflow?

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

    Can u please tell me how to feed image and label to tflite model where output is an image..
    Something like face manipulation where attributes value eg beard is there or not is given along with image
    So how to feed this value to tflite

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

      i need some research 😕

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

      @@programming_hut ok.I am beginner in deep learning ,I have started learning on a project from GitHub.model is about face attribute manipulation.something like faceapp.if mouth is closed put smile on the face ,etc.They have used GAN model for it.
      I have trained that model and tested it ,also converted it into tflite , successfully loaded into android...
      But now I am stuck how to implement the functionality into android...
      They have provided test.py also to test the model.
      In test.py they are using a function where they are taking images,batch size ,labels and doing some transformation on images using numpy feeding it to the feed_dict
      Like
      Y=sess.run(x,feed_dict={xa:a1,b_:b1}
      Where x is representing trained model
      Xa input image
      b_ attribute labels
      and a1 b1 is data in the form of matrix .
      I don't understand how to implement that into android.

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

      yeah its possible can you share github so that i can also try and let you know plus you can join me on linkedin or discord it would be better for long conversation

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

      @@programming_hut I have to create account on LinkedIn or on discord first.
      Will create that today.

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

      ok you can contact fb page too

  • @GeorgeTrialonis
    @GeorgeTrialonis 2 роки тому

    Thanks for the video. I have a problem. Why do I get an error when I run it in Jupyter Notebook? The erros is this: Highlited line (model.fit(X,y, epochs=200), ValueError: Unknown metric function: loss. Please ensure this object is passed to the `custom_objects` argument. Can you help? Thank you.

  • @abhishekray3460
    @abhishekray3460 3 роки тому +1

    Hi..Where is the link for part 2

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

      i haven’t uploaded yet
      i just uploaded part 1 today
      stat tuned for upcoming parts

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

    Can u please show how to deploy Deep learning model on android,specially Gan model

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

      i’ve already planned to upload cat dog classification app video
      but it will take some time if you in hurry say hi on linkedin

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

      @@programming_hut ok

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

    Can you show me how to deploy the audio classify model? pls

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

      Sorry to say, I don’t have knowledge of that

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

    Im waiting for part 2

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

      its already uploaded ua-cam.com/video/RJjiCwKAR8w/v-deo.html

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

    can you please reply...can we deploy svm model into android?

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

    can I deploy nearest centroid model from sklearn to tflite?

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

      I don't think so but you have a look at this
      www.tensorflow.org/lite/convert
      shows what you can convert and how

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

      @@programming_hut ok, thank you👍

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

    Is it possible to deploy gan model on android directly or one needs to deploy on server and send http request from Android

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

      honestly i don’t know for now but i’ll do some research and let you know

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

      @@programming_hut ok