Git Product home page Git Product logo

mask_classifier's Introduction

๐Ÿ˜ทMask Classifier

A Binary Image Classification in PyTorch classifying faces as with or without wearing masks.

This project was done as part of my PyTorch learning as part of TinkerHub's ComputerVision with PyTorch Learning Program.

๐Ÿ“˜ Description

A simple binary image classification using the deep learning framework PyTorch that can classify faces as with or without wearing masks. This classifier can prove to be helpful in times of a pandemic, similar to the COVID-19 pandemic.

The dataset used can be found here.

The dataset contains a total of 816 images which includes 408 images each in both categories. More images are added to the training set with Image Augmentation. The number of training images(After Image Augmentation) used is 1956 and the number of test images is 164. The images are given in the zip file here. They are named in numerical order for the sake of convenience(image_namer.py is used for naming the images). The name of the images along with thier labels are in mask.csv file(make_csv.py is used for making the csv file).

Two models are trained:- One using the Convolutional Neural Networks and the other one is trained on the VGG16 model by applying transfer learning. The model weights of the VGG16 model is freezed and a Linear layer is added to its end and the data is trained on it.

The entire code was run and tested in Google colab

The source code with little changes can be used to tackle any binary image classification.

๐ŸŽฏ Test Accuracy

obtained by the

CNN model - 89.40%

VGG16 model - 82.34%

Built With โค๏ธ

  • Python3.6 - The Programming language used
  • PyTorch - The deep learning framework used
  • VGG16 - A pretrained CNN which is trained on the ImageNet dataset.

๐Ÿ’๐Ÿป Contributing

Contributors

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. ๐Ÿด Fork the Project
  2. Create your Feature Branch (git checkout -b feature/newFeature)
  3. Commit your Changes (git commit -m 'Add some newFeature')
  4. Push to the Branch (git push origin feature/newFeature)
  5. Open a Pull Request

Please feel free to raise any issue...

If you love the repo, Please show some love by starring the repo ๐ŸŒŸ

mask_classifier's People

Contributors

harikrishnan6336 avatar

Stargazers

 avatar  avatar  avatar Irina Panfilova avatar

Watchers

James Cloos avatar  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.