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. Code: https://www.patreon.com/posts/code-for-19266646 Code files are available as a perk for the deeplizard hivemind. Check out the details regarding deeplizard perks and rewards at: http://deeplizard.com/hivemind Sign Language Digits data set: https://github.com/ardamavi/Sign-Language-Digits-Dataset https://www.kaggle.com/ardamavi/sign-language-digits-dataset Follow deeplizard: YouTube: https://www.youtube.com/deeplizard Twitter: https://twitter.com/deeplizard Facebook: https://www.facebook.com/Deeplizard-145413762948316 Steemit: https://steemit.com/@deeplizard Instagram: https://www.instagram.com/deeplizard/ Pinterest: https://www.pinterest.com/deeplizard/ Support collective intelligence, and join the deeplizard hivemind: http://deeplizard.com/hivemind Checkout products deeplizard suggests on Amazon: https://www.amazon.com/shop/deeplizard Support deeplizard by browsing with Brave: https://brave.com/dee530 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: http://amzn.to/2GtjKqu Life 3.0: Being Human in the Age of Artificial Intelligence https://amzn.to/2H5Iau4 Playlists: Data Science - https://www.youtube.com/playlist?list=PLZbbT5o_s2xrth-Cqs_R9-us6IWk9x27z Machine Learning - https://www.youtube.com/playlist?list=PLZbbT5o_s2xq7LwI2y8_QtvuXZedL6tQU Keras - https://www.youtube.com/playlist?list=PLZbbT5o_s2xrwRnXk_yCPtnqqo4_u2YGL Music: Laser Groove by Kevin MacLeod Chillin Hard by Kevin MacLeod Investigations by Kevin MacLeod Thinking Music by Kevin MacLeod YouTube: https://www.youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ Website: http://incompetech.com/ Licensed under Creative Commons: By Attribution 3.0 License http://creativecommons.org/licenses/by/3.0/