chiggy1997 / ball_image_classifier

Data science project example using deep learning for image classification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ball Image Classifier

Data science project example using deep learning for image classification

Overview

For this example project I built a ball classifier to identify balls from different sports. This could be useful for someone who is new to sports from a certain country. They could take a picture of a ball and an app could serve them some information about the history and rules of the game. This is the underlying model for building something with those capabilities.

I was able to get the model to predict the sport of the ball with 94% accuracy after minimal tuning. For most of the cases this would meet the need of an end user of the app. To get these results I used transfer learning on a CNN trained on resnet34. This created time efficiencies and solid results.

alt text

Notes

This notebook takes you through the process of creating an image classifer for various types of sports balls. It is the notebook that I use in the youtube video linked below. It is based of the fastai lesson two notebook.

Config

I recommend using google colab for this project as it makes the gpu configuration far easier. In google colab make sure that you go to runtime -> change runtime type -> gpu.

In colab, running the code should create the folder structure that you need. Drag and drop the photos located here into their respective folders. Technically you could skip the the folder creation and just drag and drop the data from the google drive into the colab file destination

Data

I used the following chrome extension to download the data from google images. FatKun Batch Download Image

About

Data science project example using deep learning for image classification


Languages

Language:Jupyter Notebook 100.0%