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

HRSC2016 testing #82

Open
mmoghadam11 opened this issue Aug 21, 2021 · 8 comments
Open

HRSC2016 testing #82

mmoghadam11 opened this issue Aug 21, 2021 · 8 comments

Comments

@mmoghadam11
Copy link

it needs test.txt for eval
how can i make it??

@csuhan
Copy link
Owner

csuhan commented Aug 22, 2021

Note train.txt and test.txt in HRSC2016 are .txt files recording image names without extension.

For example:

P00001
P00002
...

@mmoghadam11
Copy link
Author

Note train.txt and test.txt in HRSC2016 are .txt files recording image names without extension.

For example:

P00001
P00002
...

tnx for answering 👍
i make them and get this error:

classname: ship
Traceback (most recent call last):
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 307, in
main()
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 290, in main
use_07_metric=True)
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 179, in voc_eval
BB = BB[sorted_ind, :]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

what should i do???

@mmoghadam11
Copy link
Author

mmoghadam11 commented Aug 22, 2021

after erasing line
BB = BB[sorted_ind, :]
i got this:

KeyboardInterrupt
classname: ship
check fp: []
check tp []
npos num: 1188
ap: 0.0
map: 0.0
classaps: [0.]

@csuhan
Copy link
Owner

csuhan commented Aug 23, 2021

Please check your .txt result file first.

@mmoghadam11
Copy link
Author

Please check your .txt result file first.

it doesnt made

@mmoghadam11
Copy link
Author

mmoghadam11 commented Aug 23, 2021

in
# generate results !python /content/ReDet/tools/test.py /content/ReDet/configs/ReDet/ReDet_re50_refpn_3x_hrsc2016.py \ /content/ReDet/work_dirs/ReDet_re50_refpn_3x_hrsc2016/ReDet_re50_refpn_3x_hrsc2016-d1b4bd29.pth --out /content/ReDet/work_dirs/ReDet_re50_refpn_3x_hrsc2016/results.pkl
it gives .pkl file
after that i run this:
# evaluation remeber to modify the results path in hrsc2016_evaluation.py !python /content/ReDet/DOTA_devkit/hrsc2016_evaluation.py

but it seems that needs .txt file
how can i parse .pkl file to .txt file?

@mmoghadam11
Copy link
Author

mmoghadam11 commented Aug 23, 2021

i use tools/parse_results.py . it makes .txt file but still i get error:

# evaluation remeber to modify the results path in hrsc2016_evaluation.py !python /content/ReDet/DOTA_devkit/hrsc2016_evaluation.py

classname: ship
Traceback (most recent call last):
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 307, in
main()
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 290, in main
use_07_metric=True)
File "/content/ReDet/DOTA_devkit/hrsc2016_evaluation.py", line 188, in voc_eval
R = class_recs[image_ids[d]]
KeyError: '100000825.bmp'

the .txt file save the name of images with format and it makes error
what should i do???

@csuhan
Copy link
Owner

csuhan commented Aug 23, 2021

please manually remove the .bmp extension in your .txt result file.
We will update related code later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants