Home

Awesome

<img src="cplogo.png" width="300" >

This repo is implemented based on detectron2 and CenterNet

What's new

What's comming

Requirements

pip install cython; pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
gcc --version
pip install -U 'git+https://github.com/CPFLAME/detectron2.git'
pip install git+https://github.com/pabloppp/pytorch-tools -U

Data prepare

the same as detectron2

Training

modify your yamls in run.sh

sh run.sh

Testing and Evaluation

modify your yamls in run.sh, add eval-only and MODEL.WEIGHTS in your setting

sh run.sh

Performance

coco

This repo use less training time to get a competitive performance compared to other versions

Backbone ResNet-50

CodemAPepoch
centerX33.270
centerX34.3140
centernet-better34.9140

Backbone ResNet-18

centerX_KD means ResNet-50(33.2) as teacher, ResNet-18(27.9) as student, Knowledge Distill for 70 epoch in coco.

CodemAPepoch
centerX30.2140
centerX27.970
centerX_KD31.070
centernet-better29.8140
centernet28.1140

crowd human

BackbonemAPmAP50mAP75epochteacherstudent_pretrain
resdcn1831.256.630.880--
resdcn18_swa31.156.630.480--
resdcn18_syncBN31.356.630.780--
resdcn18_imgaug29.654.728.980--
resdcn18_KD34.560.234.380resdcn50resdcn18
resdcn18_KD_woGT33.058.332.780resdcn50resdcn18
resdcn18_KD_woGT_scratch32.858.132.6140resdcn50imagenet
resdcn5035.161.235.380--

KD exp

crowd human KD

Generalization performance for Knowledge Distill

Backbonecrowd mAPcoco_person mAPepochteacherstudent_pretraintrain_set
resdcn5035.135.780--crowd
resdcn18(baseline)31.231.280--crowd
resdcn18_KD34.534.980resdcn50resdcn18crowd
resdcn18_KD_woGT_scratch32.834.2140resdcn50imagenetcrowd
resdcn18_KD_woGT_scratch34.136.3140resdcn50imagenetcrowd+coco

multi teacher KD

BackbonemAP crowdmAP coco_carepochteacherstudent_pretraintrain_set
1.resdcn5035.1-80--crowd
2.resdcn1831.7-70--crowd
3.resdcn50-31.670--coco_car
4.resdcn18-27.870--coco_car
resdcn18_KD_woGT_scratch31.629.41401,3imagenetcrowd+coco_car
BackbonemAP crowd_humanmAP widerfaceepochteacherstudent_pretraintrain_set
1.resdcn5035.1-80--crowd
2.resdcn1831.7-70--crowd
3.resdcn50-32.970--widerface
4.resdcn18-29.670--widerface
5.resdcn18_ignore_nolabel29.124.2140--crowd+wider
6.resdcn18_pseudo_label28.927.7140--crowd+wider
7.resdcn18_KD_woGT_scratch31.332.11401,3imagenetcrowd+wider

License

centerX is released under the Apache 2.0 license.

Acknowledgement