This project aims to make head pose estimation without face detection in sparse dataset and robust to occlusion. This project is the term project for AI convergence project at Inha University with Suprema.
Our Head Pose Esitmation (HPE) achieves proper performance and robustness in sparse and masked dataset without using face detection. The details of our project are summarized as follows:
- Sparse model architecture based on Retina-Face.
- Newly generated masked data only for HPE.
- Trained model with diverse dataset
- Newly generated rotated dataset in range -45 degree to 45 degree.
Fig. 1 - Result of our trained model.
| Model | Dataset | Yaw | Pitch | Roll | MAE |
|---|---|---|---|---|---|
| Our | BIWI | 5.43 | 4.17 | 3.74 | 4.45 |
| Our | BIWI_masked | 4.45 | 2.97 | 2.90 | 3.44 |
Fig. 2 - Masked image generation.
Fig. 3 - Rotated image examples -45, 0, 45 degree.
Fig. 4 - left : original distribution of BIWI data, right: rotated distribution of BIWI in range [45,-45] degrees
- Please go to here.
Please set requirments.txt to virtual environment or conda.
- torch==1.5.1 cu102
- torchvision==0.6.1
- numpy>=1.15.0
- pillow>=8.1.0
- scipy=1.7.3
Download datasets:
- 300W-LP, AFLW2000 from here.
- BIWI (Biwi Kinect Head Pose Database) from here Store them in the datasets directory. For 300W-LP and AFLW2000 we need to create a filenamelist.
python 300_create_filenae_list.py --root_dir datasets/300W_LP
Every dataset should contains HPE, Landmark, Bounding box labels. Please check this out.
python 300_create_filenae_list.py --root_dir datasets/300W_LP
For training
python3 train.py --dataset BIWI --batch_size 32 --epoch 50 --num_workers 1
For testing
python3 test.py -m ./weights/BIWI/BIWI__Resnet50_Final.pth --dataset BIWI --num_workers 1
We are not able to upload all dataset and final presentation file due to uploading constraint in Github. We upload the pdf version presentation files, it can be found in /presentation/final_ppt.pdf. If you have any concerns about dataset and presentation files, please email me.
Kyeontak Han, Sujung Kim






