Going further with Image Classification
Key Takeaways
The video demonstrates how to build a custom image classification model using TensorFlow Lite Model Maker and Google Colab, and integrate it into an Android or iOS app using ML Kit's custom model APIs.
Full Transcript
[Music] so you've built an image classifier app that recognizes the contents of an image using the generic model it works really well but you probably want to make it more specific so instead of recognizing this image as a plant with petals you want to go further and have it recognize it as a daisy or this as a rose and these as tulips although maybe similar scenarios maybe to identify different types of bird or dessert or whatever you're going to need your own model to do this so if you feed it in a daisy you'll get back a set of predictions for that flower and recall that the output of the neural network will be the number of values based on the classes that the model is trained for so for example here i have three outputs for the probability of a daisy a rose or a tulip so how would you build a model like this well i'm glad you asked the first thing you'll need to do is collect samples of each of the classes that you want to detect so for example in the codelab later i'll provide a data set with roses daisies tulips sunflowers and dandelions each of these classes are in a folder so all of the roses will be in a folder called roses and all of the daisies in a folder called daisies and so on these folders are then zipped up into what we'll call our data set of flower images then you'll use google colab which is a browser-based development environment that lets you code in python but you don't need to worry about it installing python or any of its dependencies you'll also get powerful gpu-based hardware on the back end to speed up your neural network training this will let you code with a tool called tensorflow lite model maker and its purpose is to simplify the process of coding and training a neural network while encapsulating many of the steps that you'd normally have to write yourself and if you're not a pythonista yet it's okay because this does this in a simple high-level api which greatly reduces the complexity into a piece of code like this and here you can create an image classifier data loader to load in the images from their directories your data scientist friends probably told you not to use all of your data to train the network and you should hold a little bit back for testing later well you can do that by just splitting the data like we do here with 90 of it being used for training and the other 10 being held back and then you can just create an image classifier using the data and then output a model for tensorflow lite that can be used on android like this once you have your model you can then integrate it into your app using ml kit's custom model apis and all of this will be covered in the next two codelabs but before you get to them let's look at your expected results here's the original app that you built using the base model in ml kit and when you try to label the image i see things like pedal flower plant and sky but when i use my own model and update the app with that and then label the image i can see that this image is a daisy with 95.9 probability similarly in ios the original app with the base model if i classify the flower i'll see paddle flower sky and plants but when i update the app with the custom model for flowers and i try that i see that it also detects that this image is a daisy so in the next two code labs you'll first train the model and then you'll see how to integrate it into your app using mlkit's custom models so let's have some fun coding you
Original Description
Previously you saw how to build an Android or iOS app that could read the contents of an image, recognizing several hundred types of item. It had a limitation in that it did poorly at recognizing specific types of objects. So, for example, a picture of a flower might be recognized as a flower, but not as a daisy, a rose, or a tulip. In this video you’ll learn how to create a custom model to recognize those flower types, and then update your app with just a few lines of code!
On-Device Machine Learning → http://g.co/on-device-ml
Subscribe to TensorFlow → https://goo.gle/TensorFlow
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from TensorFlow · TensorFlow · 0 of 60
← Previous
Next →
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
The TensorFlow YouTube Channel is Here!
TensorFlow
Answering Your TF Questions #AskTensorFlow
TensorFlow
Chatting With the TensorFlow Community (TensorFlow Meets)
TensorFlow
All About TensorFlow Code (Coding TensorFlow)
TensorFlow
TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow
Keynote (TensorFlow Dev Summit 2018)
TensorFlow
tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
TensorFlow
Eager Execution (TensorFlow Dev Summit 2018)
TensorFlow
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
TensorFlow
Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
TensorFlow
The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
TensorFlow
Distributed TensorFlow (TensorFlow Dev Summit 2018)
TensorFlow
Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow
Searching Over Ideas (TensorFlow Dev Summit 2018)
TensorFlow
Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
TensorFlow
Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
TensorFlow
Open Source Collaboration (TensorFlow Dev Summit 2018)
TensorFlow
Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow
Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
TensorFlow
Real-World Robot Learning (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow
Project Magenta (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Dev Summit 2018 - Livestream
TensorFlow
Introducing TensorFlow Lite (Coding TensorFlow)
TensorFlow
TensorFlow Dev Summit 2018 Highlights
TensorFlow
Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
TensorFlow
TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow
Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
TensorFlow
Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
TensorFlow
TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow
Using the tf.data API to build input pipelines (TensorFlow Meets)
TensorFlow
Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
TensorFlow
Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
TensorFlow
TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow
Get started with TensorFlow's High-Level APIs (Google I/O '18)
TensorFlow
TensorFlow for JavaScript (Google I/O '18)
TensorFlow
TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow
Get started with TensorFlow's High-Level APIs in 5 mins | Google I/O 2018
TensorFlow
TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow
TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow
Advances in machine learning and TensorFlow (Google I/O '18)
TensorFlow
Distributed TensorFlow training (Google I/O '18)
TensorFlow
Classification using neural networks & ML regression models #AskTensorFlow
TensorFlow
TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow
Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
TensorFlow
How to get started with AI/ML, retraining models, & more! #AskTensorFlow
TensorFlow
TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow
MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
TensorFlow
The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
TensorFlow
At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
TensorFlow
NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
TensorFlow
Try TensorFlow.js in your browser (Coding TensorFlow)
TensorFlow
TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow
How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
TensorFlow
Training models faster with TensorFlow Hub (TensorFlow Meets)
TensorFlow
Prepare your dataset for machine learning (Coding TensorFlow)
TensorFlow
Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
TensorFlow
TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TensorFlow
More on: CV Basics
View skill →Related Reads
📰
📰
📰
📰
9 Python Concepts That Become Obvious Once You Build Real Applications
Medium · Programming
9 Python Concepts That Become Obvious Once You Build Real Applications
Medium · Python
I Taught an AI to Recognize the Shadows of Four-Dimensional Objects
Medium · AI
Java Stream API — Beyond Java 8 Part 1
Medium · Programming
🎓
Tutor Explanation
DeepCamp AI