Base jwyang/fpn.pytorch, train FPN on Pascal VOC get 80.5 mAP
Base jwyang/fpn.pytorch, train FPN on Pascal VOC get 80.5 mAP
Based on jwyang/fpn.pytorch, i change little code to get a more reasonable mAP when training pascal voc 2007 and 07+12. Pytorch implementation of Feature Pyramid Network (FPN) for Object Detection.
This project inherits the property of our jwyang/fpn.pytorch.Hence, you can see more information about it.The following things are what I did :
I benchmark this code thoroughly on pascal voc2007 and 07+12. Below are the results:
1). PASCAL VOC 2007 (Train/Test: 07trainval/07test, scale=600, ROI Align,
| model | GPUs | Batch Size | lr | lr_decay | max_epoch | Speed/epoch | Memory/GPU | mAP |
|---|---|---|---|---|---|---|---|---|
| Res-101 | 1 GTX 1080 (Ti) | 2 | 1e-3 | 10 | 12 | 0.22 hr | 6137MB | 75.7 |
2). PASCAL VOC 07+12 (Train/Test: 07+12trainval/07test, scale=600, ROI Align)
| model | GPUs | Batch Size | lr | lr_decay | max_epoch | Speed/epoch | Memory/GPU | mAP |
|---|---|---|---|---|---|---|---|---|
| Res-101 | 1 GTX 1080 (Ti) | 1 | 1e-3 | 10 | 12 | \ | 9011MB | 80.5 |
First of all, clone the code
git clone https://github.com/guoruoqian/FPN_Pytorch.gitThen, create a folder:
cd FPN_Pytorch && mkdir data Please follow the instructions in Pretrained Model and Compilation.
train voc2007:
CUDA_VISIBLE_DEVICES=3 python3 trainval_net.py exp_name --dataset pascal_voc --net res101 --bs 2 --nw 4 --lr 1e-3 --epochs 12 --save_dir weights --cuda --use_tfboard Truetest voc2007:
CUDA_VISIBLE_DEVICES=3 python3 test_net.py exp_name --dataset pascal_voc --net res101 --checksession 1 --checkepoch 7 --checkpoint 5010 --cuda --load_dir weightstrain voc07+12:
CUDA_VISIBLE_DEVICES=3 python3 trainval_net.py exp_name2 --dataset pascal_voc_0712 --net res101 --bs 2 --nw 4 --lr 1e-3 --epochs 12 --save_dir weights --cuda --use_tfboard TrueNo open issues yet, or sync has not completed.