Skip to content
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

Question about the metrics (AED, APD, ID) #40

Open
liguohao96 opened this issue Apr 24, 2024 · 0 comments
Open

Question about the metrics (AED, APD, ID) #40

liguohao96 opened this issue Apr 24, 2024 · 0 comments

Comments

@liguohao96
Copy link

liguohao96 commented Apr 24, 2024

  1. Confusion about AED and APD. Evaluation of AED and APD are found both in
    def cal_evaluation(real_data, fake_data):
    and
    def cal_metrics(video_roots, args):
    .
    evaluation.py calculate AED/APD with math.sqrt(sklearn.metrics.mean_squared_error(np.array(exps), np.array(exps)[:, :50]))
    cal_3dmm_distance.py calculate AED/APD with AED = np.mean(np.abs(s_exp - t_exp)) these two are obviously different evidenced as below:
>>> a = np.random.default_rng(0).random((2,4))
>>> a
array([[0.63696169, 0.26978671, 0.04097352, 0.01652764],
       [0.81327024, 0.91275558, 0.60663578, 0.72949656]])
>>> b = np.random.default_rng(1).random((2,4))
>>> b
array([[0.51182162, 0.9504637 , 0.14415961, 0.94864945],
       [0.31183145, 0.42332645, 0.82770259, 0.40919914]])
>>> math.sqrt(sklearn.metrics.mean_squared_error(a, b))
0.5001152789168666
>>> np.mean(np.abs(a - b))
0.42166963796730605

besides, the whole util module is missing.
2. Evaluation of ID is totally missing! Please release a detailed code or guide of computing ID (especially FR net weights and preprocessing). I have followed description from your paper and utilize resnet-50 from arcface_torch and got 0.4386 ID score (far from 0.84 reported in paper) with publised next3d_ffhq_512.pkl. The render images seems OK.
next3d_id

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

1 participant