https://github.com/dingjiansw101/AerialDetection
-
Support Rotated Boxes detection.
-
Support draw origin ground truth rotated box.(draw_groundtruth.py)
-
Support common image detection but not only supports large images of Dota dataset. (demo_image.py)
-
Support random crop/ random rotated [Date augment] (mmdet/datasets/rotate_aug.py extra_aug.py)
-
Support Res2Net [Backbone] (Need the latest mmcv version and rename to mmcv1 ) (mmdet/models/backbones/res2net.py res2.py)
- Refer to ./INSTALL.md firstly
- Install ./requirements.txt
- This repo need version of PyTorch (Nightly 1.3.0): https://pan.baidu.com/s/1g_-vVKRSZskjE-gRYpwAkA key:hff5
- mmcv 0.2.16
- To use res2net, you need to install the latest mmcv and rename the whole file name of mmcv to mmcv1
- The other installation process you can refer to the baseline repo in https://github.com/dingjiansw101/AerialDetection and check with my environment in ./package.txt
Competion dataset: https://pan.baidu.com/s/1Ph6KvCqenUxzuF5_wobfQA keys:tj80
-
Data form :
You need to set your own images and labels as follow.
--DataSet
--images
1.jpg
2.jpg
...
--labelTxt
1.txt
2.txt
...
-
labels format: [class id x1 y1 x2 y2 x3 y3 x4 y4]
4 586 459 577 441 646 410 654 428
5 330 389 317 355 308 359 317 393
....
-
Modify and run the .DOTA_devkit/data2COCO.py to get .json file
-
Modify the category in ./mmdet/datasetsmydataset.py
-
Modify the config information in ./configs/Huojianjun/faster_rcnn_RoItrans_r101_fpn_anchors.py
-
Run the muti gpu train:
./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM} [optional arguments]
-
Inference of image:
python demo_images.py
-
The more command you can refer to
https://github.com/dingjiansw101/AerialDetection
and mmdetection usage:
- Cascade ROITransfomer
- Model Ensembl