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

Evaluation error: ERROR: method monoloco_pp at cluster 3 is empty, ZeroDivisionError: division by zero #87

Open
zhangwengyu999 opened this issue Sep 18, 2024 · 0 comments

Comments

@zhangwengyu999
Copy link

Hi!

After I train the MonoLoco++ by following cmd:

python3 -m monoloco.run train \
    --joints data/arrays/joints-kitti-mono-210422-1600.json \
    --monocular

Then, I evaluate the model with following cmd:

python3 -m monoloco.run eval \
    --model data/outputs/monoloco_pp-240918-1743.pkl \
    --dir_ann /xxx/monoloco/data/kitti/keypoints2 \
    --generate \
    --save \

The output and error I got is:

Created empty output directory data/kitti/monoloco_pp 

Saved in 1508 txt 4094 annotations. Not found 0 images

Method geometric. No directory found. Skipping it..

Method pose. No directory found. Skipping it..

Method monstereo. No directory found. Skipping it..

Method monopsr. No directory found. Skipping it..

Method monodis. No directory found. Skipping it..

Method psf. No directory found. Skipping it..

Method e2e. No directory found. Skipping it..

----------------------------------------------------------------------------------------------------
ERROR: method monoloco_pp at cluster 3 is empty
----------------------------------------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/xxx/anaconda3/envs/monoloco/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/xxx/anaconda3/envs/monoloco/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/xxx/work/monoloco/monoloco/run.py", line 218, in <module>
    main()
  File "/home/xxx/work/monoloco/monoloco/run.py", line 202, in main
    kitti_eval.run()
  File "/home/xxx/work/monoloco/monoloco/eval/eval_kitti.py", line 142, in run
    get_statistics(self.dic_stats['test'][key][clst],
  File "/home/xxx/work/monoloco/monoloco/eval/eval_kitti.py", line 398, in get_statistics
    dic_stats['mean'] = average(errors)
  File "/home/xxx/work/monoloco/monoloco/utils/misc.py", line 69, in average
    return sum(my_list) / len(my_list)
ZeroDivisionError: division by zero

How to solve the problem? Thank you very much!

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