Face-Recognition
Face-Recognition copied to clipboard
Face Recognition project in PyTorch using CNNs
trafficstars
Face Recognition
Face Recognition using a CNN architecture.
Dataset
Project uses Yale dataset as a demo, but is extensible to any face recognition dataset. Download Yale Face Database from here.
Running
- Do
pip install -r requirements.txtto install all deps. - Get the database as mentioned above. Run
python utils.py <yale_dataset_folder> <data_folder>to create train and val data fromyale_dataset_folderintodata_folder. - Run
giftopng.sh <folder>to convert all the images inside the subfolders of<folder>into pngs. - Run using
python main.py --data <data_folder>wheredata_foldercontains folderstrainandvalcontaining training and validation data respectively. - Inside
trainandvalfolders, program expects folder for each of the labels and these folder contains samples for these labels.
TODO
Add picture for the architecture and tune it.
License
MIT