Keras - Python Deep Learning Neural Network API

with deeplizard.

Sign language image classification - Fine-tuning MobileNet with Keras

June 9, 2018 by

Q&A

When executing the code: mobile = keras.applications.mobilenet.MobileNet() The following error is thrown: module 'keras.applications' has no attribute 'mobilenet' What is the issue?

You may be running an older version of Keras that doesn't include MobileNet. Try upgrading Keras, and then attempt to import the model again.


The download of MobileNet didn't fully complete when running the code below, so now the h5 file is corrupted. How can I delete the corrupted file to force the download again? mobile = keras.applications.mobilenet.MobileNet()

Models that are downloaded from Keras are stored in the .keras/models/ directory within your home directory. (Notice that .keras/ is a hidden folder). Navigate to the models directory, and you should see the corresponding .h5 file for the model that didn't fully download. Delete it, and attempt to download the model again.


Description

Let's continue building on what we’ve learned about MobileNet and the techniques we’ve used for fine-tuning to fine-tune MobileNet on a custom image data set that does not have classes similar to the ImageNet classes it was originally trained on. We saw in the last video how well our fine-tuned MobileNet model performed on classifying images of cats and dogs. We noted, however, that many types of cat and dog breeds were included in the ImageNet data set that MobileNet was originally trained on, so we didn’t have to do too much tuning for our model to perform well on classifying the images. Now, we’re going to see what we need to do to fine-tune MobileNet on a completely new type of data set, which doesn’t contain classes similar to those included in ImageNet. This data set is images of sign language digits. There are ten classes, labeled as zero through nine, and each class is made up of images of hands showing the sign for that particular digit. Sign Language Digits data set: https://github.com/ardamavi/Sign-Language-Digits-Dataset https://www.kaggle.com/ardamavi/sign-language-digits-dataset 💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥 👀 OUR VLOG: 🔗 https://www.youtube.com/channel/UC9cBIteC3u7Ee6bzeOcl_Og 👉 Check out the blog post and other resources for this video: 🔗 https://deeplizard.com/learn/video/FNqp4ZY0wDY 💻 DOWNLOAD ACCESS TO CODE FILES 🤖 Available for members of the deeplizard hivemind: 🔗 https://www.patreon.com/posts/27743395 🧠 Support collective intelligence, join the deeplizard hivemind: 🔗 https://deeplizard.com/hivemind 🤜 Support collective intelligence, create a quiz question for this video: 🔗 https://deeplizard.com/create-quiz-question 🚀 Boost collective intelligence by sharing this video on social media! ❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind: yasser Prash 👀 Follow deeplizard: Our vlog: https://www.youtube.com/channel/UC9cBIteC3u7Ee6bzeOcl_Og Twitter: https://twitter.com/deeplizard Facebook: https://www.facebook.com/Deeplizard-145413762948316 Patreon: https://www.patreon.com/deeplizard YouTube: https://www.youtube.com/deeplizard Instagram: https://www.instagram.com/deeplizard/ 🎓 Other deeplizard courses: Reinforcement Learning - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xoWNVdDudn51XM8lOuZ_Njv NN Programming - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrfNyHZsM6ufI0iZENK9xgG DL Fundamentals - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xq7LwI2y8_QtvuXZedL6tQU Keras - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrwRnXk_yCPtnqqo4_u2YGL TensorFlow.js - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xr83l8w44N_g3pygvajLrJ- Data Science - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrth-Cqs_R9- Trading - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xr17PqeytCKiCD-TJj89rII 🛒 Check out products deeplizard recommends on Amazon: 🔗 https://www.amazon.com/shop/deeplizard 📕 Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard’s link: 🔗 https://amzn.to/2yoqWRn 🎵 deeplizard uses music by Kevin MacLeod 🔗 https://www.youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ 🔗 http://incompetech.com/ ❤️ Please use the knowledge gained from deeplizard content for good, not evil.