I'm trying to learning for DOTA-v1.0 dataset.
I use copy of your config file "deformable_detr_r50_16x2_50e_dota.py"
I just change the angle_version from 'oc' to 'le90'
#angle_version = 'oc'
angle_version = 'le90'
and modify the "datasets/dotav1.py" to DOTA-v1.0 single-scale dataset.
like below..
data_root = '/home/jovyan/dl_data/DOTA-v1.0-v1.5/split_ss_dota/'
data = dict(
#samples_per_gpu=4,
samples_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
# ann_file=data_root + 'trainval1024_ms/DOTA_trainval1024_ms.json',
ann_file=data_root + 'train/annfiles/',
img_prefix=data_root + 'train/images/',
pipeline=train_pipeline),
val=dict(
type=dataset_type,
ann_file=data_root + 'val/annfiles/',
img_prefix=data_root + 'val/images/',
pipeline=test_pipeline),
test=dict(
type=dataset_type,
# ann_file='/data2/dailh/split_1024_dota1_0/test/' + 'images/',
# img_prefix='/data2/dailh/split_1024_dota1_0/test/' + 'images/',
# ann_file=data_root + 'trainval/annfiles/',
# # img_prefix=data_root + 'trainval/images/',
ann_file=data_root + 'test/images/',
img_prefix=data_root + 'test/images/',
# ann_file=data_root + 'trainval/annfiles/',
# img_prefix=data_root + 'trainval/images/',
pipeline=test_pipeline))
and I have a one GPU card, so I learn like that
"python ./tools/train.py ./configs/deformable_detr/deformable_detr_r50_16x2_50e_dota.py"
Then, I got a log like below
It looks the loss does not converged..
what's wrong?
why the loss value does not converged? what am I miss something?
[
2022-09-08 15:48:34,495 - mmrotate - INFO - Epoch [2][4860/4867] lr: 1.000e-04, eta: 1 day, 6:24:50, time: 0.465, data_time: 0.007, memory: 8238, loss_cls: 0.7085, loss_piou: 8.8948, loss_bbox: 1.5794, d0.loss_cls: 0.7612, d0.loss_piou: 8.8352, d0.loss_bbox: 1.5764, d1.loss_cls: 0.7387, d1.loss_piou: 8.6198, d1.loss_bbox: 1.5748, d2.loss_cls: 0.7116, d2.loss_piou: 8.8279, d2.loss_bbox: 1.5675, d3.loss_cls: 0.7338, d3.loss_piou: 8.9340, d3.loss_bbox: 1.5621, d4.loss_cls: 0.7109, d4.loss_piou: 8.7618, d4.loss_bbox: 1.5756, loss: 66.6741, grad_norm: 1346.9443
2022-09-08 15:48:37,819 - mmrotate - INFO - Saving checkpoint at 2 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 3066/3066, 12.9 task/s, elapsed: 238s, ETA: 0s2022-09-08 15:52:48,874 - mmrotate - INFO -
+--------------------+-------+--------+--------+-------+
| class | gts | dets | recall | ap |
+--------------------+-------+--------+--------+-------+
| plane | 4449 | 67402 | 0.739 | 0.485 |
| baseball-diamond | 358 | 22337 | 0.620 | 0.049 |
| bridge | 783 | 145008 | 0.134 | 0.017 |
| ground-track-field | 212 | 30593 | 0.387 | 0.020 |
| small-vehicle | 10579 | 66748 | 0.121 | 0.050 |
| large-vehicle | 8819 | 67548 | 0.100 | 0.006 |
| ship | 18537 | 92142 | 0.101 | 0.015 |
| tennis-court | 1512 | 14030 | 0.792 | 0.551 |
| basketball-court | 266 | 24922 | 0.368 | 0.098 |
| storage-tank | 4740 | 71717 | 0.262 | 0.022 |
| soccer-ball-field | 251 | 20395 | 0.355 | 0.071 |
| roundabout | 275 | 29838 | 0.582 | 0.130 |
| harbor | 4167 | 62320 | 0.161 | 0.012 |
| swimming-pool | 732 | 31287 | 0.321 | 0.022 |
| helicopter | 122 | 20213 | 0.492 | 0.003 |
+--------------------+-------+--------+--------+-------+
| mAP | | | | 0.103 |
+--------------------+-------+--------+--------+-------+
2022-09-08 15:52:48,961 - mmrotate - INFO - Exp name: deformable_detr_dota_copy.py
2022-09-08 15:52:48,961 - mmrotate - INFO - Epoch(val) [2][3066] mAP: 0.1034
2022-09-08 15:52:56,104 - mmrotate - INFO - Epoch [3][10/4867] lr: 1.000e-04, eta: 1 day, 6:24:22, time: 0.713, data_time: 0.245, memory: 8238, loss_cls: 0.8683, loss_piou: 11.0895, loss_bbox: 1.7575, d0.loss_cls: 0.8965, d0.loss_piou: 11.9468, d0.loss_bbox: 1.7808, d1.loss_cls: 0.8592, d1.loss_piou: 11.9596, d1.loss_bbox: 1.7579, d2.loss_cls: 0.8440, d2.loss_piou: 11.3708, d2.loss_bbox: 1.7564, d3.loss_cls: 0.8481, d3.loss_piou: 11.4637, d3.loss_bbox: 1.7504, d4.loss_cls: 0.9026, d4.loss_piou: 11.3918, d4.loss_bbox: 1.7500, loss: 84.9938, grad_norm: 2063.5599
2022-09-08 15:53:00,730 - mmrotate - INFO - Epoch [3][20/4867] lr: 1.000e-04, eta: 1 day, 6:24:16, time: 0.463, data_time: 0.007, memory: 8238, loss_cls: 0.5905, loss_piou: 8.3354, loss_bbox: 1.7153, d0.loss_cls: 0.6218, d0.loss_piou: 9.0859, d0.loss_bbox: 1.7256, d1.loss_cls: 0.5957, d1.loss_piou: 8.1240, d1.loss_bbox: 1.7231, d2.loss_cls: 0.5891, d2.loss_piou: 8.2217, d2.loss_bbox: 1.7177, d3.loss_cls: 0.6114, d3.loss_piou: 7.7628, d3.loss_bbox: 1.7129, d4.loss_cls: 0.5860, d4.loss_piou: 7.3536, d4.loss_bbox: 1.7171, loss: 62.7894, grad_norm: 911.2250
2022-09-08 15:53:05,344 - mmrotate - INFO - Epoch [3][30/4867] lr: 1.000e-04, eta: 1 day, 6:24:09, time: 0.461, data_time: 0.007, memory: 8238, loss_cls: 0.5810, loss_piou: 5.0878, loss_bbox: 1.4809, d0.loss_cls: 0.6305, d0.loss_piou: 5.2119, d0.loss_bbox: 1.4825, d1.loss_cls: 0.5855, d1.loss_piou: 5.8150, d1.loss_bbox: 1.4835, d2.loss_cls: 0.5663, d2.loss_piou: 5.8356, d2.loss_bbox: 1.4850, d3.loss_cls: 0.6103, d3.loss_piou: 5.2023, d3.loss_bbox: 1.4839, d4.loss_cls: 0.5880, d4.loss_piou: 5.8718, d4.loss_bbox: 1.4889, loss: 45.4907, grad_norm: 575.0752
]