ReDet icon indicating copy to clipboard operation
ReDet copied to clipboard

HRSC2016 testing

Open mmoghadam11 opened this issue 4 years ago • 8 comments

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

mmoghadam11 avatar Aug 21 '21 10:08 mmoghadam11

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

For example:

P00001
P00002
...

csuhan avatar Aug 22 '21 05:08 csuhan

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 avatar Aug 22 '21 17:08 mmoghadam11

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.]

mmoghadam11 avatar Aug 22 '21 17:08 mmoghadam11

Please check your .txt result file first.

csuhan avatar Aug 23 '21 03:08 csuhan

Please check your .txt result file first.

it doesnt made

mmoghadam11 avatar Aug 23 '21 08:08 mmoghadam11

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 avatar Aug 23 '21 09:08 mmoghadam11

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???

mmoghadam11 avatar Aug 23 '21 09:08 mmoghadam11

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

csuhan avatar Aug 23 '21 10:08 csuhan