Giter Club home page Giter Club logo

alcohol-image-classifier-fastai's Introduction

Classifying Images of Alcoholic Beverages with fast.ai and Google CoLab

Utilizing fastai to classify images of various types of alcoholic beverages

Link to Medium post: https://towardsdatascience.com/classifying-images-of-alcoholic-beverages-with-fast-ai-34c4560b5543

Link to Full notebook: https://github.com/kennethleungty/Alcohol-Image-Classifier-fastai/blob/main/Alcohol_Image_Classifier_Full_Version.ipynb

Motivation

I was interested to test out fastai to setup and run an image classificaton deep learning model. Since I am someone who enjoys whisky from time to time, I decided that running a CNN classifier on alcohol images would be a nice topic to work on. The code here is mostly adapted from what is already publicly provided by fastai (check it out at https://www.fast.ai/)


Using Google Colab

Highly recommend to run this notebook in Google Colab. This is because the notebook was setup and tested in Google Colab, and Colab also offers a free GPU for training the model (up to 12 hours).


Azure API Setup

I will be leveraging the Bing Search v7 API (with Azure Account) to retrieve images for the deep learning classification model. As I found this setup to be rather tedious, I have decided to share some details on how to set it up properly.

Step 1


You will need a Bing Search API key in order to obtain image datasets for your classifier. In order to retrieve the API key, you will need to first setup a Free Trial account at https://azure.microsoft.com/en-gb/free/cognitive-services/.

There is a 7-day trial free period for new users. If you already have an existing account, click on the Upgrade (Pay-As-You-Go) option (there is still a Free option to select). You will need to provide a credit card number for verification. You just need to make sure that you select the free option throughout.

More details can be found here: https://docs.microsoft.com/en-us/bing/search-apis/bing-web-search/create-bing-search-service-resource

Step 2


After you are logged in inside the Azure portal, use the search bar at the top and key in Bing Search v7.

Step 3


You will first need to create a resource group

Step 4


After the resource group is set up, you can Add the Bing Search resource by searching for Bing Search v7 after clicking the Add button. Fill in the relevant fields subsequently

Step 5


Lastly, go to Keys and Endpoint to retrieve your API key

Methods

Details of the steps from data curation to the actual classification are documented in the Jupyter notebook, so please feel free to have a look: https://github.com/kennethleungty/Alcohol-Image-Classifier-fastai/blob/main/Alcohol_Image_Classifier_Full_Version.ipynb

alcohol-image-classifier-fastai's People

Contributors

kennethleungty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.