HomeНаука и техникаRelated VideosMore From: Macgyver

Train an Image Classifier in 3 Minutes

40 ratings | 2978 views
Using Tensor Flow and Docker, this tutorial will show you how to create an image classifier that can accurately identify any object in an image. Step 1 Stand Up a Tensor Flow Docker Container for Development Step 2 Download Training Data Step 3 Train the Neural Network Step 4 Make a Prediction of Novel Data GitHub Code https://github.com/MacgyverCode/Image-Classification-Example Tutorial Blog Post https://askmacgyver.com/blog/tutorial/create-image-classifier Install Docker https://askmacgyver.com/blog/tutorials/how-to-install-docker-on-ubuntu-14.04.4-x64 Wayixia Batch Image Chrome Extension https://chrome.google.com/webstore/detail/batch-image-downloadfull/ahajhopfbfpekcljjjppolcmapaidldc?hl=en
Html code for embedding videos on your blog
Text Comments (18)
ali Seven (2 months ago)
It does not work for me... permission denied when trying the learning part using python 3.6 64 bit
ali Seven (2 months ago)
Thank you so much!Check your E-Mails .Peace
Macgyver (2 months ago)
The most feasible approach is first you need to host your model as an API. Then your webpage will interface with your API by passing it a URL to a users photo. You can upload your model to macgyver and add a wrapper such that a user passes a URL the container downloads the image and runs an prediction using your model. I have some examples that do exactly this. I can share/help you with the project if you want. Email me more details [email protected]
ali Seven (2 months ago)
Thx for your answer, I manage to handle it and its working now! How can I put this into a webpage with a user interface to upload images and make predictions on that do you have an idea? Best regards! Super video
Macgyver (2 months ago)
What command leads to permission denied?
Y J (3 months ago)
python tensorflow/tensorflow/examples/label_image/label_image.py \ that is how the last step should look according to the new container setup
Macgyver (1 month ago)
Thanks
Kevin Fleischer (3 months ago)
Hi Macgyver, I followed your tutorial and it went as explained. I'm wondering, what I would have to do, to move the trained AI out of the container and onto a different system (i.e. my phone). Is this possible? And how?
Macgyver (2 months ago)
This process will generate a .pb file that represents the network, this can be leveraged by mobile tools like tensor flow mobile.
kim joug un (3 months ago)
thanks bro
Shreeshan Sadasivan (6 months ago)
i followed same steps in windows but after retraining i am not able to detect retrained_graph.pb retrained_labels.py
Macgyver (6 months ago)
Did you use my tensor flow image in the description? They’ve changed the docker image as of my making this video.
Shreeshan Sadasivan (6 months ago)
I same steps in windows but after retraining i am not able to detect retrained_graph.pb retrained_labels.py
Dekkksllls (7 months ago)
Hello Macgyver, great video ! Could you please tell me where I can get label_image.py to run the test ( at the final step) ? Thank you!
Dekkksllls (7 months ago)
Thank you very much mate, it was helpful ! Good work, keep it up!
Timothy Moody (7 months ago)
They've updated the container to no longer support this exact process. I've duplicated the prior version with already has the label_image.py file ready to use. Downlod the container here - macgyvertechnology/tensorflow https://hub.docker.com/r/macgyvertechnology/tensorflow/
Barry Staes (7 months ago)
Nice tutorial. I found that Step 4 no longer works, the script was (re)moved and needs layer params now. See screenshot https://twitter.com/BarryStaes/status/959196832227262464
Macgyver (7 months ago)
Thanks! I’ve saved the old image where it works. macgyvertechnology/tensorflow

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.