Skip to content

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.

Notifications You must be signed in to change notification settings

Kevin-Kwan/MATLAB-face-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages