Giter Site home page Giter Site logo

imageclassification's Introduction

ImageClassification

Machine Learning Assignment on Facial Recognition

The most complete repository is in google drive since large files can easily be uploaded there. It contains all releveant folder for code to run. https://drive.google.com/open?id=1AfyPGbM2wrBJF_aM5E7exYjZKCzJ0G0f

Library Dependancies

Sklearn, SkImage, Keras, Tensorflow, DLib, pandas, numpy, joblib, Open-CV(cv2).

Additional Dependencies

Some functions such as saving models and loading them back might require some additional libraries such as h5py for keras.

Code

There are 4 distinct files:
-- Classifier.py: Trains CNN for all tasks
-- tranferLearning.py: Feature extraction with ResNet and train linear SVM
-- ImagePreprocessor.py: Class for ImagePreproccessing prior to training
-- Predictions.py: For writing final predictions to CSV

GuideLines

Preferably you have write and read permissions since many files write output to new directories which might not exist in your system. If not, you can manually create the directories:
-- models For CNN
-- models2 For SVM
-- files For any Files

Most Importantly the dataset must be present in a folder called dataset and contain all samples. Further for generation of predicted labels there must also be a testing_dataset directory.
--- dataset !!!
--- testing_dataset !!!

Submitted Zip

The submitted zip contains all relevant files including all the models, dataset and helpful files. You might wish to copy the dropIndices numpy file which specifies the indices to be droped since it takes quite a lot of time to create the dataset for the first time if this file does not exist beacasue we have to apply the HOG classifier to each individual image.

imageclassification's People

Contributors

nickmagginas 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.