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,
Hi, I am getting this error using jupyter notebook..
"The kernel appears to have died. It will restart automatically."
Please suggest, i'am stuck.
Soooo much information in a short video
Thanks you brother you are a hero 😀
Is it is possible to deploy a CNN model into a Android app?
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
How to add meta data cnn model tensorflow?
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
i need some research 😕
@@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.
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
@@programming_hut I have to create account on LinkedIn or on discord first.
Will create that today.
ok you can contact fb page too
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.
Hi..Where is the link for part 2
i haven’t uploaded yet
i just uploaded part 1 today
stat tuned for upcoming parts
Can u please show how to deploy Deep learning model on android,specially Gan model
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
@@programming_hut ok
Can you show me how to deploy the audio classify model? pls
Sorry to say, I don’t have knowledge of that
Im waiting for part 2
its already uploaded ua-cam.com/video/RJjiCwKAR8w/v-deo.html
can you please reply...can we deploy svm model into android?
yes why not you may try api method for that
@@programming_hut okay👍tqsm
this one ua-cam.com/video/ipHqim7hoio/v-deo.html
can I deploy nearest centroid model from sklearn to tflite?
I don't think so but you have a look at this
www.tensorflow.org/lite/convert
shows what you can convert and how
@@programming_hut ok, thank you👍
Is it possible to deploy gan model on android directly or one needs to deploy on server and send http request from Android
honestly i don’t know for now but i’ll do some research and let you know
@@programming_hut ok