Downloads · 30 days
10
3% of all-time downloads
alifalhasan/epl-top5-emblem-classifier
epl-top5-emblem-classifier is a image classification model from alifalhasan. Use it when you need a label for an image. It is set up for tf-keras. The card lists the license as mit.
- Model name: Top 5 EPL Teams' Emblem Identifier - Model description: Identifies the emblem of the top 5 English Premier League (EPL) teams from images using a convolutional neural network (CNN). - Authors: Alif Al Ha…
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
381
Public
Repo size
303 MB
Likes
1
Public
Click a slice to open those files.
.data-00000-of-00001303 MB · 100%
From the Hugging Face model README
A simple and well designed web app to identify the emblem of the top 5 teams of EPL(English Premier League) namely Arsenal, Chelsea, Liverpool, Manchester City and Manchester United.
A simple and well designed web app to identify the emblem of the top 5 teams of EPL. This model has been trained with a balanced dataset which contains almost 5k images of the emblems of the teams.
The model utilizes a straightforward convolutional neural network (CNN) architecture, comprising the following layers:
Convolutional Layer:
Max Pooling Layer:
Flattening Layer:
Dense Layer 1:
Output Layer (Dense Layer 2):
Key Points:
Visual Representation: [Input image (224x224x3)] --> [Conv2D] --> [MaxPooling2D] --> [Flatten] --> [Dense 1] --> [Output Layer (Dense 2)] --> [Predicted class]
├── data
│ └── arsenal - images of arsenal's emblem.
│ └── chelsea - images of chelsea's emblem.
│ └── liverpool - images of liverpool's emblem.
│ └── manchester-city - images of manchester-city's emblem.
│ └── manchester-united - images of united's emblem.
│
│
├── model
│ └── football_logo_model.h5 - generated model.
│
│
├── src
│ └── classify
│ └── classify.py - this module classifies the emblem from input image.
│ └── train
│ └── trainer.py - this module trains the model.
│
│
├── app.py - this module starts the app interface.
│
│
├── LICENSE - license file of this project.
│
│
├── README.md - readme file of this project.
│
│
├── requirements.txt - list of required packages.
First, install dependencies
# clone project
git clone https://huggingface.co/spaces/alifalhasan/epl-top5-emblem-classifier
# install project
cd epl-top5-emblem-classifier
pip install -r requirements.txt
Next, download the dataset from here. First unzip the folder. dataset folder contains five more folders. Copy them and paste into the data directory of this project folder.
Now train the model using this command:
python src/train/trainer.py
Finally, deploy the model using this command:
python app.py
Distributed under the MIT License. See LICENSE for more information.
Alif Al Hasan - @alifalhasan - [email protected]
Project Link: https://huggingface.co/spaces/alifalhasan/epl-top5-emblem-classifier