csuhan/s2anet

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

zhu011 opened this issue · 0 comments

python tools/test.py configs/hrsc2016/s2anet_r50_fpn_3x_hrsc2016.py --checkpoint work_dirs/s2anet_r50_fpn_3x_hrsc2016/epoch_36.pth --out work_dirs/s2anet_r50_fpn_3x_hrsc2016/res.pkl --data hrsc2016
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 505/505, 28.1 task/s, elapsed: 18s, ETA: 0s
writing results to work_dirs/s2anet_r50_fpn_3x_hrsc2016/res.pkl
Saving results to work_dirs/s2anet_r50_fpn_3x_hrsc2016/results_txt
ship.txt
@@@@@@@@@@@@@@@@@@@@@@
work_dirs/s2anet_r50_fpn_3x_hrsc2016/results_txt/ship.txt
[]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Traceback (most recent call last):
File "tools/test.py", line 236, in
main()
File "tools/test.py", line 222, in main
dataset.evaluate(outputs, work_dir, **eval_kwargs)
File "/root/autodl-tmp/s2anet/mmdet/datasets/hrsc2016.py", line 150, in evaluate
use_07_metric=True)
File "/root/autodl-tmp/s2anet/DOTA_devkit/hrsc2016_evaluation.py", line 173, in voc_eval
BB = BB[sorted_ind, :]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed