/ImageClassificator

first image classifier, new to everything

Primary LanguagePython

Image Classifier

About

This project is an image classifier that is trained to distinguish between cats and dogs in images.

The purpose of this project is not to produce as optimized and computationally effective classifer as possible. The main goal of the project is to get some expirience in building classifier and writing deep learning related Python code.

LEARNING AND HAVING FUN

Table of Content

  1. classifier.py

    • This file contains the main code for image preprocessing and neural network construction-learning. You can train a neural network on your own or use an existing version, the accuracy of which exceeds 91%!
    • I used feature extraction (transfer learning) from MobileNetV2!
    • That's how block of MobileNetV2 looks like: image
  2. run.py

    • This file runs the classification on the selected image. It should be run to correctly classify the image.WARNINGS are hidden!
  3. classi.py

    • Here is written the code for the convolutional neural network architecture under the name Alex-Net. I do not have the necessary computing power to complete the training of this network, but if you have one, you can try teaching it yourself!
    • Quick review on Alex-Net architecture: image
  4. neural_net

    • This folder contains poorly trained ALEX-NET neural network.
  5. mobile_netv2

    • This folder contains pre-trained mobile-netv2 neural network(feature extraction) with a flatten and dense layers on top of it! This one gets 91% accuracy on 100 valid cat-dog images.
  6. DOGCAT

    • This folder contains training and test images, that this neural network was trained and tested on!

Installation

git clone https://github.com/mishazakharov/ImageClassificator
cd ImageClassificator
python3 run.py

In case you want to train Alex-Net yourself:

python3 classi.py

In case you want to retrain dense layers in Mobile-NetV2 yourself:

python3 classifier.py

Contact

If you want to work on this together or just feeling social, feel free to contact me here. And I am also available at this(misha_zakharov96@mail.ru) and this(vorahkazmisha@gmail.com) email addresses! Feel free to give me any advice. 👍