Keras - Python Deep Learning Neural Network API

with deeplizard.

Sign language image classification - Fine-tuning MobileNet with Keras

June 9, 2018 by


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.


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: 💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥 👀 OUR VLOG: 🔗 👉 Check out the blog post and other resources for this video: 🔗 💻 DOWNLOAD ACCESS TO CODE FILES 🤖 Available for members of the deeplizard hivemind: 🔗 🧠 Support collective intelligence, join the deeplizard hivemind: 🔗 🤜 Support collective intelligence, create a quiz question for this video: 🔗 🚀 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: Twitter: Facebook: Patreon: YouTube: Instagram: 🎓 Other deeplizard courses: Reinforcement Learning - NN Programming - DL Fundamentals - Keras - TensorFlow.js - Data Science - Trading - 🛒 Check out products deeplizard recommends on Amazon: 🔗 📕 Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard’s link: 🔗 🎵 deeplizard uses music by Kevin MacLeod 🔗 🔗 ❤️ Please use the knowledge gained from deeplizard content for good, not evil.