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

An error occurred while evaluating FID #235

Open
NCUCyy opened this issue Dec 24, 2024 · 0 comments
Open

An error occurred while evaluating FID #235

NCUCyy opened this issue Dec 24, 2024 · 0 comments

Comments

@NCUCyy
Copy link

NCUCyy commented Dec 24, 2024

I am evaluating a pre-trained model with the given Humanml dataset and the following error occurs when calculating the FID metrics:
python -m eval.eval_humanml --model_path . /save/humanml_trans_enc_512/model000475000.pt

How can I fix this error?

========== Evaluating FID ==========
Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/miniconda3/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/root/autodl-tmp/motion-diffusion-model/eval/eval_humanml.py", line 304, in <module>
    evaluation(eval_wrapper, gt_loader, eval_motion_loaders, log_file, replication_times, diversity_times, mm_num_times, run_mm=run_mm)
  File "/root/autodl-tmp/motion-diffusion-model/eval/eval_humanml.py", line 162, in evaluation
    fid_score_dict = evaluate_fid(eval_wrapper, gt_loader, acti_dict, f)
  File "/root/autodl-tmp/motion-diffusion-model/eval/eval_humanml.py", line 91, in evaluate_fid
    fid = calculate_frechet_distance(gt_mu, gt_cov, mu, cov)
  File "/root/autodl-tmp/motion-diffusion-model/data_loaders/humanml/utils/metrics.py", line 140, in calculate_frechet_distance
    raise ValueError('Imaginary component {}'.format(m))
ValueError: Imaginary component 0.04455859616772913
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