ohhhyeahhh / SiamGAT

Code for the paper "Graph Attention Tracking". (CVPR2021)
https://openaccess.thecvf.com/content/CVPR2021/papers/Guo_Graph_Attention_Tracking_CVPR_2021_paper.pdf
139 stars 19 forks source link

Error of eval.py #12

Open Sunyankun opened 3 years ago

Sunyankun commented 3 years ago

loading OTB100: 100%|█████████████████████████████████████| 100/100 [00:00<00:00, 467.69it/s, Woman] eval success: 0%| | 0/100 [00:00<?, ?it/s]. multiprocessing.pool.RemoteTraceback: Traceback (most recent call last): File "/home/syk/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/syk/SiamGAT/toolkit/evaluation/ope_benchmark.py", line 50, in eval_success successret[video.name] = success_overlap(gt_traj, tracker_traj, n_frame) File "/home/syk/SiamGAT/toolkit/utils/statistics.py", line 34, in success_overlap iou[mask] = overlap_ratio(gt_bb[mask], result_bb[mask]) IndexError: too many indices for array """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/syk/SiamGAT/tools/eval.py", line 100, in main() File "/home/syk/SiamGAT/tools/eval.py", line 51, in main trackers), desc='eval success', total=len(trackers), ncols=100): File "/home/syk/anaconda3/lib/python3.7/site-packages/tqdm/_tqdm.py", line 1005, in iter for obj in iterable: File "/home/syk/anaconda3/lib/python3.7/multiprocessing/pool.py", line 748, in next raise value

IndexError: too many indices for array 当测试完成并保存OTB100结果做评估的时候出现上述错误,eval.py的配置文件指向测试完成后保存的otb_uav_model下的txt文件. Hope for your reply, Thanks a lot.

twotwo2 commented 3 years ago

Maybe you should check whether the video name in the JSON file is the same as that in the results file. Such as ‘Human4-2’ will rename as ‘Human4_2’ in some file. Hope my answer can help you.

Sunyankun commented 3 years ago

Maybe you should check whether the video name in the JSON file is the same as that in the results file. Such as ‘Human4-2’ will rename as ‘Human4_2’ in some file. Hope my answer can help you.

Thanks for your reply, follow your idea. I found the file of results should all be .txt, And I have solve this problem.

ffttsfjdnjbgkmkv commented 1 year ago

I made the same mistake as the blogger.How did the blogger solve the problem?