-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
117 lines (86 loc) · 7.02 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# =========================================== train ===========================================
# hrsc
python tools/train.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90.py --work-dir work_dirs/hrsc/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90 --no-validate
python tools/train.py \
configs/refined_det/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90.py --work-dir work_dirs/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90_2 --no-validate
python tools/train.py \
configs/refined_det/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90.py --work-dir work_dirs/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90_align_conv --no-validate
python tools/train.py \
configs/refined_det/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90.py --work-dir work_dirs/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90 --no-validate
python tools/train.py \
configs/refined_det/hrsc/refined_det_obb_r101_fpn_6x_hrsc_rr_le90.py --work-dir work_dirs/hrsc/refined_det_obb_r101_fpn_6x_hrsc_rr_le90_800_800 --no-validate
# dota
python tools/train.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_1x_dota_le90.py --work-dir work_dirs/dota/rotated_retinanet_obb_r50_fpn_1x_dota_le90 --no-validate
python tools/train.py \
configs/refined_det/dota/refined_det_cla_obb_r50_fpn_1x_dota_le90.py --work-dir work_dirs/dota/refined_det_cla_obb_r50_fpn_1x_dota_le90 --no-validate
python tools/train.py \
configs/refined_det/dota/refined_det_frhead_obb_r50_fpn_1x_dota_le90.py --work-dir work_dirs/dota/refined_det_frhead_obb_r50_fpn_1x_dota_le90_align_conv --no-validate
python tools/train.py \
configs/refined_det/dota/refined_det_obb_r50_fpn_1x_dota_le90.py --work-dir work_dirs/dota/refined_det_obb_r50_fpn_1x_dota_le90 --no-validate
python tools/train.py \
configs/refined_det/dota/refined_det_obb_r101_fpn_1x_dota_le90.py --work-dir work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_le90 --no-validate
python tools/train.py \
configs/refined_det/dota/refined_det_obb_r101_fpn_1x_dota_ms_rr_le90.py --work-dir work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_ms_le90 --no-validate
# =========================================== evaluation ===========================================
# hrsc
python tools/test.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90/latest.pth --eval mAP
python tools/test.py \
configs/refined_det/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90_2/latest.pth --eval mAP
python tools/test.py \
configs/refined_det/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90_align_conv/latest.pth --eval mAP
python tools/test.py \
configs/refined_det/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90_416_416/latest.pth --eval mAP
python tools/test.py \
configs/refined_det/hrsc/refined_det_obb_r101_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_obb_r101_fpn_6x_hrsc_rr_le90_800_800/latest.pth --eval mAP
# dota(official)
python ./tools/test.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/rotated_retinanet_obb_r50_fpn_1x_dota_le90/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/rotated_retinanet_obb_r50_fpn_1x_dota_le90/rotated_retinanet_obb_r50_fpn_1x_dota_le90 nproc=1
python ./tools/test.py \
configs/refined_det/dota/refined_det_cla_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/refined_det_cla_obb_r50_fpn_1x_dota_le90/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/refined_det_cla_obb_r50_fpn_1x_dota_le90/refined_det_cla_obb_r50_fpn_1x_dota_le90 nproc=1
python ./tools/test.py \
configs/refined_det/dota/refined_det_frhead_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/refined_det_frhead_obb_r50_fpn_1x_dota_le90_align_conv/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/refined_det_frhead_obb_r50_fpn_1x_dota_le90_align_conv/refined_det_frhead_obb_r50_fpn_1x_dota_le90_align_conv nproc=1
python ./tools/test.py \
configs/refined_det/dota/refined_det_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/refined_det_obb_r50_fpn_1x_dota_le90/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/refined_det_obb_r50_fpn_1x_dota_le90/refined_det_obb_r50_fpn_1x_dota_le90 nproc=1
python ./tools/test.py \
configs/refined_det/dota/refined_det_obb_r101_fpn_1x_dota_le90.py work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_le90/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_le90/refined_det_obb_r101_fpn_1x_dota_le90 nproc=1
python ./tools/test.py \
configs/refined_det/dota/refined_det_obb_r101_fpn_1x_dota_ms_rr_le90.py work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_ms_le90/latest.pth \
--format-only --eval-options submission_dir=work_dirs/dota/refined_det_obb_r101_fpn_1x_dota_ms_le90/refined_det_obb_r101_fpn_1x_dota_ms_le90 nproc=1
# =========================================== flops ===========================================
# hrsc
python tools/analysis_tools/get_flops.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90.py --shape 800 512
python tools/analysis_tools/get_flops.py \
configs/refined_det/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90.py --shape 800 512
python tools/analysis_tools/get_flops.py \
configs/refined_det/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90.py --shape 800 512
python tools/analysis_tools/get_flops.py \
configs/refined_det/hrsc/refined_det_frhead_obb_r50_fpn_6x_hrsc_rr_le90_abalation.py --shape 800 512
python tools/analysis_tools/get_flops.py \
configs/refined_det/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90.py --shape 800 512
# =========================================== visualize ===========================================
# hrsc
python tools/test.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90/latest.pth \
--show-dir work_dirs/vis/hrsc/rotated_retinanet_obb_r50_fpn_6x_hrsc_rr_le90
python tools/test.py \
configs/refined_det/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90/latest.pth \
--show-dir work_dirs/vis/hrsc/refined_det_cla_obb_r50_fpn_6x_hrsc_rr_le90
python tools/test.py \
configs/refined_det/refined_det_obb_r50_fpn_6x_hrsc_rr_le90.py work_dirs/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90/latest.pth \
--show-dir work_dirs/vis/hrsc/refined_det_obb_r50_fpn_6x_hrsc_rr_le90
# dota
python tools/test.py \
configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/rotated_retinanet_obb_r50_fpn_1x_dota_le90/latest.pth \
--show-dir work_dirs/vis/dota/rotated_retinanet_obb_r50_fpn_1x_dota_le90
python tools/test.py \
configs/refined_det/refined_det_obb_r50_fpn_1x_dota_le90.py work_dirs/dota/refined_det_obb_r50_fpn_1x_dota_le90/latest.pth \
--show-dir work_dirs/vis/dota/refined_det_obb_r50_fpn_1x_dota_le90