Skip to content

yusufarist/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock ✊🏼 Paper ✋🏼 Scissors ✌🏼

In this project, I explore how we can use CNN and transfer learning to build an image classifier.
The dataset consists of 2188 images that classified by Rock, Paper, and Scissors.

The full dataset can be downloaded here

File Structure

.
├── Images
├── Models
│   ├── model_inception_weights.h5
│   └── modeling.ipynb
├── Procfile
├── setup.sh
├── requirements.txt
├── apps.py
└── etc.

File Description

There are only 3 important files in this repository.

  • modeling.ipynb is a jupyter notebook which can be run on Google Colab (with GPU for faster training). It contains step-by-step on how to create the image classifier and export the model.
  • model_inception_weights.h5 is the trained weights of our deep learning model's layers. This is used to load the model in our web app.
  • apps.py is the python file to deploy our web app in Streamlit.

How to Use

To run the project locally, you can download this repo and type

streamlit run apps.py

To view the project as a deployed online web app hosted by Heroku, you can check out with this link

heroku gif

Model Description

The foundational model that we use is Inception-V3 from Keras' pretrained models. However, we cut it off until 'mixed7' layer, and then add our own layers.

Read more about this model at:

Model Evaluation

We achieved 99,55% accuracy on training set and 99,66% accuracy on validation set.

Confussion Matrix
[[284   0   1]
 [  1 290   0]
 [  0   0 300]]
Classification Report
              precision    recall  f1-score   support

        Rock       1.00      1.00      1.00       285
       Paper       1.00      1.00      1.00       291
    Scissors       1.00      1.00      1.00       300

    accuracy                           1.00       876
   macro avg       1.00      1.00      1.00       876
weighted avg       1.00      1.00      1.00       876
Training and Validation Accuracy and Loss

About

A project provided by Dicoding Academy at the module Machine Learning for Beginners

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy