Skip to content

Question about the APD (average pose distance) metric calculation #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fusheng-ji opened this issue Apr 10, 2025 · 2 comments
Open

Comments

@fusheng-ji
Copy link

Hello,

I have a question about APD metric calculation in the paper. As I read the issue in OTAvatar, they compute the APD with the L1 loss on concatenation of roation and translation.

Here is my implement:

First I extract angles and translation coeffs from Deep3DFaceRecon:
angles = pred_coeff[224:227] # euler angles for pose
translation = pred_coeff[254:257] # translation
pose_coeff = np.concatenate([angles, translation], 0)

Then I calculate L1 loss between pose_coeff of predction and ground truth.
apd_loss = np.mean(np.abs(pred_pose_coeff - gt_pose_coeff))

However, after I getting the average metrics on HDTF and VFHQ evaluation, the values of APD are much lower than number in paper.

Could you help me with that?

Many Thanks

@weihaosky
Copy link
Collaborator

If I remember correctly, APD metric is only for angles.

@fusheng-ji
Copy link
Author

Hello @weihaosky,

Thanks for your clarification. I will compute it with only angles.

Really appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants