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

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

Open
zhu011 opened this issue Sep 6, 2022 · 0 comments

Comments

@zhu011
Copy link

zhu011 commented Sep 6, 2022

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

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