penincillin / DREAM

This is the public repository for our accepted CVPR 2018 paper "Pose-Robust Face Recognition via Deep Residual Equivariant Mapping"
http://mmlab.ie.cuhk.edu.hk/projects/DREAM/
BSD 2-Clause "Simplified" License
388 stars 98 forks source link

How to generate the yaw angle of a face image in radian units, i.e. y in you paper? #2

Closed lyatdawn closed 6 years ago

lyatdawn commented 6 years ago

The process of calculating yaw angle of a face image in radian units as following: 1 Could you share your codes for these processes? Thanks.

penincillin commented 6 years ago

Well, I am sorry that the code couldn't be shared to you, because it is part of the commercial project. I provide an executable file in src/processing to calculate yaw angle. You could follow that part of the readme to use that executable file.

lyatdawn commented 6 years ago

ok. thanks

slegall56 commented 6 years ago

In the paper, yaw coefficient is calculated as Y(x) = σ(4/Pi - 1). The paper said also that Y(x) should be equal to 0 for frontal face (for yaw = 0 I suppose) which is not true with the sigmoid function. Furthermore, how do you deal with left and right yaw angle as Y(x) is between 0 and 1 according to the paper

xiaoxingzeng commented 6 years ago

@slegall56 , I suppose the "a sigmoid" function is 1/(1+e^-xb), b is a positive integer number>1.

penincillin commented 6 years ago

@slegall56 @xiaoxingzeng Actually, you could find the implementation of yaw angle transformation in .src/stitching/branch_util.py

xiaoxingzeng commented 6 years ago

@penincillin ,Thanks very much.

slegall56 commented 6 years ago

@xiaoxingzeng@penincillin Thank you

tataganesh95 commented 5 years ago

@penincillin On which platform/OS does the executable for computing yaw angle run? And what command line arguments are to be passed to it?