Skip to content

Han00127/Toward-Sparse-Robust-HPE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toward-Sparse-HPE

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.

Description

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:

  1. Sparse model architecture based on Retina-Face.
  2. Newly generated masked data only for HPE.
  3. Trained model with diverse dataset
  4. Newly generated rotated dataset in range -45 degree to 45 degree.

Trained Results

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

Masked Images

Fig. 2 - Masked image generation.

Rotated Images

Fig. 3 - Rotated image examples -45, 0, 45 degree.

Distribution

     

Fig. 4 - left : original distribution of BIWI data, right: rotated distribution of BIWI in range [45,-45] degrees

Quick start

  • Please go to here.

Get Started

Please set requirments.txt to virtual environment or conda.

Requirements

  • torch==1.5.1 cu102
  • torchvision==0.6.1
  • numpy>=1.15.0
  • pillow>=8.1.0
  • scipy=1.7.3

Preparing datasets

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

Training

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

Test

For testing

python3 test.py -m ./weights/BIWI/BIWI__Resnet50_Final.pth --dataset BIWI --num_workers 1

Notification

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.

Authors

Kyeontak Han, Sujung Kim

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages