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. Code: Code files are available as a perk for the deeplizard hivemind. Check out the details regarding deeplizard perks and rewards at: Sign Language Digits data set: Follow deeplizard: YouTube: Twitter: Facebook: Steemit: Instagram: Pinterest: Support collective intelligence, and join the deeplizard hivemind: Checkout products deeplizard suggests on Amazon: Support deeplizard by browsing with Brave: Support deeplizard with crypto: Bitcoin: 1AFgm3fLTiG5pNPgnfkKdsktgxLCMYpxCN Litecoin: LTZ2AUGpDmFm85y89PFFvVR5QmfX6Rfzg3 Ether: 0x9105cd0ecbc921ad19f6d5f9dd249735da8269ef Recommended books on AI: The Most Human Human: What Artificial Intelligence Teaches Us About Being Alive: Life 3.0: Being Human in the Age of Artificial Intelligence Playlists: Data Science - Machine Learning - Keras - Music: Laser Groove by Kevin MacLeod Chillin Hard by Kevin MacLeod Investigations by Kevin MacLeod Thinking Music by Kevin MacLeod YouTube: Website: Licensed under Creative Commons: By Attribution 3.0 License