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

Computing results on DOTA test set #16

Closed
swz30 opened this issue Sep 5, 2018 · 7 comments
Closed

Computing results on DOTA test set #16

swz30 opened this issue Sep 5, 2018 · 7 comments

Comments

@swz30
Copy link

swz30 commented Sep 5, 2018

Could you please provide an example of how do you prepare result files on test set for the DOTA server by using your pre-trained R2CNN model?

@yangxue0827
Copy link
Member

python demo_rh.py --src_folder='/PATH/TO/DOTA/IMAGES_ORIGINAL/' 
                  --image_ext='.png' 
                  --des_folder='/PATH/TO/SAVE/RESULTS/' 
                  --save_res=False
                  --gpu='0'

then commit the results files in tools/txt_out/ @swz30

@swz30
Copy link
Author

swz30 commented Sep 5, 2018

Thank you @yangxue0827,

When I run the demo_rh.py on the DOTA test images, it only provides me annotated images in the des_folder and tools/inference_results. Does not your code make text files in the format that I can submit to the DOTA evaluation server https://captain-whu.github.io/DOTA/tasks.html ?

@yangxue0827
Copy link
Member

results are in tools/txt_out. please read code carefully first. @swz30

@GuoleiSun
Copy link

@yangxue0827, thanks for your code. I followed what you said: using your pretrained model, test on dota test set and upload results to the server. For task1, I got following results:

mAP: 0.5031883538746729
ap of each class: plane:0.8045758220476723, baseball-diamond:0.6235978601971698, bridge:0.27558052246090115, ground-track-field:0.5051007521809955, small-vehicle:0.4260674259543338, large-vehicle:0.4180170480099051, ship:0.379523978169834, tennis-court:0.8042256307195812, basketball-court:0.6241976268091483, storage-tank:0.600279713052086, soccer-ball-field:0.4107538229795283, roundabout:0.44234079956583827, harbor:0.46493216568797485, swimming-pool:0.4108707385679589, helicopter:0.3577614017171661

As you can see, I only got 0.50, but you mentioned that we should got something around 0.575. What can be the reason?

@GuoleiSun
Copy link

Here: #13
You mentioned that your trained model (FasterRCNN_20180515_DOTA_v3: https://github.com/DetectionTeamUCAS/Models/tree/master/R2CNN_Faster-RCNN_Tensorflow) can reproduce map of 0.575

@GuoleiSun
Copy link

Hi all,

I can reproduce the results by setting show_score_threshold in the cfg.py to 0.001. Please do that before you run demo_rh.py.

Thanks

@czzbb
Copy link

czzbb commented Jul 16, 2019

Helllo, how did u generate the annopath used in DOTA_devkit-master

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

4 participants