-
Notifications
You must be signed in to change notification settings - Fork 16
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
NME calculation #13
Comments
The 43k (or 64k if the foreface mask is not used) vertices is transformed from 53k vertices (as in processor.py, runPosemap). I think an inverse transformation of that may help to obtain the 53k vertices. Or you can transform the 53k vetices of 3DDFA into 64k vertices of PRNet and then calculate NME. |
hi,I still don't know how to calculate bbox when calculating 3D NME,d=sqrt( (max_x-min_x)*(max_y-min_y)) is right? |
It should be d=np.sqrt((maxx - minx) ** 2 + (maxy - miny) ** 2). I give 2 ways to calculate NME since it is not always the same in different works. |
I checked my codes again, and found that "d=np.sqrt((maxx - minx) ** 2 + (maxy - miny) ** 2 + (maxz - minz) ** 2) " is not used anywhere. |
Thank you for your prompt reply! |
2D to 3D reconstruction is a ill-posed problem. In PRNet, the 3D to 2D projection is assumed to be a weakly perspective projection. So the absolute value of the coordinates on the z-axis is meaningless, but the relative value is meaningful. So I subtract the mean. |
oh,I see. Thanks for your help and patience! |
: ) |
Hi @reshow , I'm still struggling with NME calculation of PRNet on AFLW2000 dataset. The PRNet output has 43K vertices and AFLW2000 groundtruth has 53K. As you mentioned 43K vertices are transformed from 53k vertices. So, in order to have the same number of vertices, can we transform 53K vertices of AFLW2000 to 43K and calculate the NME? Is it correct? |
Hi @reshow . Thank you for sharing the pytoch version of PRNet. I had a question regarding calculating NME. using PRNet we would have 43k vertices in our predicted 3D mesh. but for AFLW2000 the number of vertices is 53k (or 39k for reduced version). So how can we calculate NME when we have different number of vertices? Any idea about that?
Thanks :)
The text was updated successfully, but these errors were encountered: