GithubHelp home page GithubHelp logo

kevin-kwan / matlab-face-training Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 18.59 MB

A machine learning project that I worked on in Summer 2019 during my internship where I used MATLAB to train AlexNet to perform facial recognition in real-time to identify people. This was my first time using MATLAB.

MATLAB 100.00%
matlab facial-recognition matlab-toolbox machine-learning machinelearning machine-learning-algorithms artificial-intelligence artificial-neural-networks face-recognition face-detection ai ai-training deep-learning

matlab-face-training's Introduction

Basically, a modified version of the code from one of MathWorks' "Deep Learning for Computer Vision" Webinar where I just experimented with the code, messed with it, and got it to work. This was my first time using MATLAB and I didn't really know what I was doing, so this was a little individual adventure for me to explore MATLAB and try to get something to work.

Resources Used:
https://www.mathworks.com/support/search.html/videos/deep-learning-for-computer-vision-120997.html
https://www.mathworks.com/support/search.html?fq[]=asset_type_name:video&fq[]=category:deeplearning/deep-learning-with-images

Below are the basic instructions and the first version of the readme that I wrote in 2019. I havent finished polishing the readme, but I will sometime later in the future.

Open “TrainingChooseOneImageFromTestFolder” in the TrainingFaceRecog folder
Go into “Faces” folder and create folders with category names of people (labels). Fill them with regular colored pictures of the people.
Go into the “test” folder and paste the images of people you want to identify after training.
At line 27, in the code, change ‘for ii = 1:#’ to ‘for ii = 1:(number of categories/folders in Faces folder)’
For example, you have 5 categories/5 people with multiple pictures for each person. It would be ‘for ii = 1:5’
In code, go to line 44. Change the decimal number in line 44 to set the percentage of pictures used for training.
At line 46, change the file name to the picture of the person you want to identify.
In code, at line 113, change the number to the percentage accuracy for the learning thing to reach before stopping. (currently 99.5%)
At line 157, change the file name to the picture of the person you want to identify.
Press “Run” and wait until it finishes.
A figure will also pop up in another window to show the categories.

After training, the image should pop up in another figure with the label/person’s name and the AI’s accuracy.

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.