This project detects 15 landmarks/keypoints on face using Deep Learning implemented in PyTorch.
The dataset can be downloaded from Kaggle Website: (Link)[https://www.kaggle.com/c/facial-keypoints-detection/data]
- From the website, download
IdLookupTable.csv
,training.zip
andtest.zip
. - Extract
training.csv
andtest.csv
fromtraining.zip
andtest.zip
respectively. - Place
IdLookupTable.csv
,training.csv
andtest.csv
in the root directory. After this, the directory looks like:
Facial_Keypoints_Detection
| Facial_Keypoints_detection.ipynb
| README.md
| test.csv
| training.csv
| weights.pth
| IdLookupTable.csv
|
The pre-trained weights are present int he root directory: weights.pth
- Making Custom PyTorch Dataset Class to load CSV file and extract keypoints locations and Image from pixel values.
- Visualizing the dataset (Face Image and Facial Keypoints).
- Making the CNN Architecture from scratch in PyTorch.
- Training the Model
- Visualizing the Loss Function
- Inferencing the model by seeing predicted keypoints over face images.
- Finally, creating the submission file for Kaggle Competition.
Feel free to PR.