{"id":29,"date":"2020-08-17T07:53:16","date_gmt":"2020-08-17T07:53:16","guid":{"rendered":"https:\/\/machine-learning.webcloning.com\/2020\/08\/17\/build-an-image-classification-model\/"},"modified":"2020-08-17T07:53:16","modified_gmt":"2020-08-17T07:53:16","slug":"build-an-image-classification-model","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2020\/08\/17\/build-an-image-classification-model\/","title":{"rendered":"Build an image classification model"},"content":{"rendered":"<div id=\"\">\n<!-- begin main body content --><\/p>\n<h2 id=\"summary\" xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">Summary<\/h2>\n<p>This code pattern explains how to classify an American Sign Language (ASL) alphabet using PyTorch and deep learning networks. It uses a pretrained model from the PyTorch models zoo and retrains the last part of the network.<\/p>\n<h2 id=\"description\">Description<\/h2>\n<p>The code pattern uses PyTorch to build and train a deep learning model to classify images to 29 classes (26 ASL alphabet, space, Del, and nothing), which can be used later to help hard-of-hearing people communicate with others as well as with computers. The pattern uses a pretrained mobile network, defines a classifier, and connects it to network. It then trains this classifier along with some of the last blocks of the network on the data set. The pattern uses the Python and GPU environment in IBM\u00ae Watson\u2122 Studio for faster training, which allows you to download, explore, build, and train your model. Learn more about <a href=\"https:\/\/dataplatform.cloud.ibm.com\/docs\/content\/wsj\/analyze-data\/gpu-environments.html?cm_sp=ibmdev-_-developer-patterns-_-cloudreg\">available Watson Studio environments<\/a>.<\/p>\n<p>After completing this pattern, you understand how to:<\/p>\n<ul>\n<li>Obtain a data set from Kaggle<\/li>\n<li>Explore data and define transformers to preprocess images before training<\/li>\n<li>Define a classifier to have an output layer of 29 outputs<\/li>\n<li>Train the last blocks of the network along with the classifier that\u2019s defined<\/li>\n<li>Test the trained model<\/li>\n<\/ul>\n<h2 id=\"flow\">Flow<\/h2>\n<p><img class=\"lazycontent\" data-src=\"https:\/\/developer.ibm.com\/developer\/patterns\/build-an-american-sign-language-alphabet-classifier-using-pytorch-and-gpu-environments-on-watson-studio\/images\/build-american-sign-language-alphabet-classifier-flow.png\" alt=\"flow\"><\/p>\n<ol>\n<li>Log in to Watson Studio.<\/li>\n<li>Get your Kaggle API credentials.<\/li>\n<li>Run the Jupyter Notebook in Watson Studio.<\/li>\n<\/ol>\n<h2 id=\"instructions\">Instructions<\/h2>\n<p>Get detailed steps in the <a href=\"https:\/\/github.com\/IBM\/ASL-Pytorch\/blob\/master\/README.md\">readme<\/a> file. Those steps show how to:<\/p>\n<ol>\n<li>Sign up for Watson Studio.<\/li>\n<li>Create a new project.<\/li>\n<li>Create the notebook.<\/li>\n<li>Run the notebook.<\/li>\n<li>Test your model.<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developer.ibm.com\/patterns\/build-an-american-sign-language-alphabet-classifier-using-pytorch-and-gpu-environments-on-watson-studio\/<\/p>\n","protected":false},"author":1,"featured_media":30,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/30"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}