ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

CenterX 目标检测新网络(已开源)

2020-12-01 22:32:54  阅读:503  来源: 互联网

标签:centerX KD -- 检测 resdcn18 开源 sh CenterX coco


作者:CPFLAME
项目代码:https://github.com/CPFLAME/centerX
项目介绍:https://zhuanlan.zhihu.com/p/323814368

在这里插入图片描述

CenterX

This repo is implemented based on detectron2 and CenterNet

What’s new

  • Support imgaug data augmentation
  • Support swa
  • Support Knowledge Distill, teacher-student, designed by myself
  • Support other LR_SCHEDULER
  • Support Optimizer RangerLars, not convergence in COCO
  • We provide some examples and scripts to convert centerX to Caffe, ONNX and TensorRT format in projects/speedup

What’s comming

  • [️✔] Support simple inference
  • [✔] Support to caffe, onnx, tensorRT
  • Support keypoints

Requirements

  • Python >= 3.7
  • PyTorch >= 1.5
  • torchvision that matches the PyTorch installation.
  • OpenCV
  • pycocotools
pip install cython; pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
  • GCC >= 4.9
gcc --version
  • detectron2
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

  • optim: SGD
  • lr: 0.02
  • scheduler: WarmupMultiStepLR ,drop 0.1 in (50, 62) for 80 epoch; (90 ,120) for 140 epoch
  • train size: 512 max size
  • test size: 512 max size
  • batch size: 64
  • woGT: KD only use teacher loss
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

标签:centerX,KD,--,检测,resdcn18,开源,sh,CenterX,coco
来源: https://blog.csdn.net/weixin_47477271/article/details/110455112

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有