├── dataset ├── voc │ ├── label_list.txt │ └── download_voc.py ├── fruit │ ├── label_list.txt │ └── download_fruit.py ├── wider_face │ └── download.sh ├── fddb │ └── download.sh └── coco │ └── download_coco.py ├── dygraph ├── ppdet │ ├── model_zoo │ │ ├── .gitignore │ │ └── __init__.py │ ├── py_op │ │ └── __init__.py │ ├── modeling │ │ ├── proposal_generator │ │ │ └── __init__.py │ │ ├── backbones │ │ │ └── __init__.py │ │ ├── __init__.py │ │ ├── tests │ │ │ └── __init__.py │ │ ├── utils │ │ │ └── __init__.py │ │ ├── architectures │ │ │ ├── __init__.py │ │ │ └── meta_arch.py │ │ ├── necks │ │ │ └── __init__.py │ │ ├── losses │ │ │ └── __init__.py │ │ └── heads │ │ │ └── __init__.py │ ├── utils │ │ └── __init__.py │ ├── core │ │ ├── config │ │ │ └── __init__.py │ │ └── __init__.py │ ├── slim │ │ └── __init__.py │ ├── __init__.py │ ├── metrics │ │ └── __init__.py │ ├── data │ │ ├── transform │ │ │ └── __init__.py │ │ ├── __init__.py │ │ └── source │ │ │ └── __init__.py │ └── engine │ │ └── __init__.py ├── .style.yapf ├── dataset │ ├── roadsign_voc │ │ ├── label_list.txt │ │ └── download_roadsign_voc.py │ ├── voc │ │ ├── label_list.txt │ │ ├── create_list.py │ │ └── download_voc.py │ └── coco │ │ └── download_coco.py ├── configs │ ├── runtime.yml │ ├── vehicle │ │ ├── demo │ │ │ ├── 001.jpeg │ │ │ ├── 003.png │ │ │ ├── 004.png │ │ │ └── 005.png │ │ └── vehicle_yolov3_darknet.yml │ ├── pedestrian │ │ ├── demo │ │ │ ├── 001.png │ │ │ ├── 002.png │ │ │ ├── 003.png │ │ │ └── 004.png │ │ └── pedestrian_yolov3_darknet.yml │ ├── ssd │ │ ├── ssd_vgg16_300_240e_voc.yml │ │ ├── ssd_mobilenet_v1_300_120e_voc.yml │ │ ├── ssdlite_mobilenet_v1_300_coco.yml │ │ ├── ssdlite_mobilenet_v3_large_320_coco.yml │ │ ├── ssdlite_mobilenet_v3_small_320_coco.yml │ │ └── _base_ │ │ │ ├── optimizer_1700e.yml │ │ │ ├── optimizer_120e.yml │ │ │ ├── optimizer_240e.yml │ │ │ ├── ssd_vgg16_300.yml │ │ │ ├── ssdlite_mobilenet_v1_300.yml │ │ │ ├── ssd_mobilenet_v1_300.yml │ │ │ ├── ssdlite_mobilenet_v3_large_320.yml │ │ │ ├── ssdlite_mobilenet_v3_small_320.yml │ │ │ └── ssd_reader.yml │ ├── mask_rcnn │ │ ├── mask_rcnn_r50_1x_coco.yml │ │ ├── mask_rcnn_r50_fpn_1x_coco.yml │ │ ├── mask_rcnn_r50_2x_coco.yml │ │ ├── mask_rcnn_r50_fpn_2x_coco.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── mask_fpn_reader.yml │ │ ├── mask_rcnn_r101_fpn_1x_coco.yml │ │ ├── mask_rcnn_r101_vd_fpn_1x_coco.yml │ │ ├── mask_rcnn_r50_vd_fpn_1x_coco.yml │ │ ├── mask_rcnn_r50_vd_fpn_2x_coco.yml │ │ ├── mask_rcnn_x101_vd_64x4d_fpn_1x_coco.yml │ │ └── mask_rcnn_x101_vd_64x4d_fpn_2x_coco.yml │ ├── solov2 │ │ ├── solov2_r50_fpn_1x_coco.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── solov2_r50_fpn.yml │ │ └── solov2_r50_fpn_3x_coco.yml │ ├── faster_rcnn │ │ ├── faster_rcnn_r50_1x_coco.yml │ │ ├── faster_rcnn_r50_fpn_1x_coco.yml │ │ ├── faster_rcnn_r50_fpn_2x_coco.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── faster_fpn_reader.yml │ │ ├── faster_rcnn_r101_1x_coco.yml │ │ ├── faster_rcnn_r34_fpn_1x_coco.yml │ │ ├── faster_rcnn_r101_fpn_1x_coco.yml │ │ ├── faster_rcnn_r50_vd_1x_coco.yml │ │ ├── faster_rcnn_r101_vd_fpn_1x_coco.yml │ │ ├── faster_rcnn_r50_vd_fpn_1x_coco.yml │ │ ├── faster_rcnn_r34_vd_fpn_1x_coco.yml │ │ ├── faster_rcnn_x101_vd_64x4d_fpn_1x_coco.yml │ │ ├── faster_rcnn_r101_fpn_2x_coco.yml │ │ ├── faster_rcnn_r50_vd_fpn_2x_coco.yml │ │ ├── faster_rcnn_r101_vd_fpn_2x_coco.yml │ │ └── faster_rcnn_x101_vd_64x4d_fpn_2x_coco.yml │ ├── fcos │ │ ├── fcos_r50_fpn_1x_coco.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── fcos_r50_fpn.yml │ │ ├── fcos_dcn_r50_fpn_1x_coco.yml │ │ └── fcos_r50_fpn_multiscale_2x_coco.yml │ ├── ttfnet │ │ ├── ttfnet_darknet53_1x_coco.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ ├── ttfnet_darknet53.yml │ │ │ └── ttfnet_reader.yml │ │ └── README.md │ ├── cascade_rcnn │ │ ├── cascade_rcnn_r50_fpn_1x_coco.yml │ │ ├── cascade_mask_rcnn_r50_fpn_1x_coco.yml │ │ └── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── cascade_fpn_reader.yml │ ├── ppyolo │ │ ├── ppyolo_r50vd_dcn_1x_coco.yml │ │ ├── ppyolo_r50vd_dcn_2x_coco.yml │ │ ├── ppyolo_test.yml │ │ ├── _base_ │ │ │ ├── optimizer_1x.yml │ │ │ └── optimizer_2x.yml │ │ └── ppyolo_r50vd_dcn_1x_minicoco.yml │ ├── yolov3 │ │ ├── yolov3_darknet53_270e_coco.yml │ │ ├── yolov3_r50vd_dcn_270e_coco.yml │ │ ├── yolov3_mobilenet_v1_270e_coco.yml │ │ ├── yolov3_mobilenet_v3_large_270e_coco.yml │ │ └── _base_ │ │ │ ├── optimizer_270e.yml │ │ │ ├── yolov3_darknet53.yml │ │ │ ├── yolov3_mobilenet_v1.yml │ │ │ ├── yolov3_r50vd_dcn.yml │ │ │ ├── yolov3_mobilenet_v3_small.yml │ │ │ └── yolov3_mobilenet_v3_large.yml │ ├── dcn │ │ ├── faster_rcnn_dcn_r50_vd_fpn_1x_coco.yml │ │ ├── mask_rcnn_dcn_r101_vd_fpn_1x_coco.yml │ │ ├── faster_rcnn_dcn_r101_vd_fpn_1x_coco.yml │ │ ├── mask_rcnn_dcn_r50_fpn_1x_coco.yml │ │ ├── faster_rcnn_dcn_r50_fpn_1x_coco.yml │ │ ├── cascade_rcnn_dcn_r50_fpn_1x_coco.yml │ │ ├── cascade_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml │ │ ├── mask_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml │ │ ├── faster_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml │ │ ├── mask_rcnn_dcn_r50_vd_fpn_2x_coco.yml │ │ └── faster_rcnn_dcn_r50_vd_fpn_2x_coco.yml │ ├── datasets │ │ ├── coco_detection.yml │ │ ├── coco_instance.yml │ │ ├── voc.yml │ │ └── roadsign_voc.yml │ ├── slim │ │ ├── quant │ │ │ ├── yolov3_mobilenet_v1_qat.yml │ │ │ └── yolov3_mobilenet_v3_qat.yml │ │ └── prune │ │ │ ├── yolov3_prune_fpgm.yml │ │ │ └── yolov3_prune_l1_norm.yml │ ├── hrnet │ │ ├── faster_rcnn_hrnetv2p_w18_1x_coco.yml │ │ └── faster_rcnn_hrnetv2p_w18_2x_coco.yml │ └── gn │ │ ├── cascade_rcnn_r50_fpn_gn_2x.yml │ │ ├── faster_rcnn_r50_fpn_gn_2x_coco.yml │ │ └── README.md ├── demo │ ├── road554.png │ ├── orange_71.jpg │ ├── 000000014439.jpg │ ├── 000000087038.jpg │ ├── 000000570688.jpg │ └── 000000014439_640x640.jpg ├── requirements.txt ├── docs │ └── images │ │ ├── road554.png │ │ └── 000000014439.jpg ├── .pre-commit-config.yaml ├── deploy │ └── cpp │ │ └── cmake │ │ └── yaml-cpp.cmake └── .gitignore ├── deploy ├── android_demo │ ├── settings.gradle │ ├── demo │ │ ├── ppdet_app.png │ │ ├── ppdet_app_home.jpg │ │ ├── ppdet_app_camera.jpg │ │ └── ppdet_app_photo.jpg │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── assets │ │ │ │ │ ├── images │ │ │ │ │ │ ├── home.jpg │ │ │ │ │ │ └── kite.jpg │ │ │ │ │ └── labels │ │ │ │ │ │ ├── coco-labels-2014_2017.txt │ │ │ │ │ │ └── coco-labels-background.txt │ │ │ │ └── res │ │ │ │ │ ├── drawable │ │ │ │ │ ├── photo.png │ │ │ │ │ ├── camera.png │ │ │ │ │ ├── photo1.png │ │ │ │ │ ├── btn_shutter.xml │ │ │ │ │ ├── btn_switch.xml │ │ │ │ │ ├── btn_settings.xml │ │ │ │ │ ├── btn_shutter_default.xml │ │ │ │ │ └── btn_shutter_pressed.xml │ │ │ │ │ ├── drawable-v24 │ │ │ │ │ ├── camera.png │ │ │ │ │ └── photo.png │ │ │ │ │ ├── drawable-xxhdpi-v4 │ │ │ │ │ ├── photo.png │ │ │ │ │ ├── camera.png │ │ │ │ │ ├── btn_switch_default.png │ │ │ │ │ └── btn_switch_pressed.png │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── styles.xml │ │ │ │ │ └── arrays.xml │ │ │ │ │ ├── menu │ │ │ │ │ └── menu_main.xml │ │ │ │ │ └── layout │ │ │ │ │ ├── content_main.xml │ │ │ │ │ └── activity_main.xml │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── baidu │ │ │ │ │ └── paddledetection │ │ │ │ │ └── detection │ │ │ │ │ └── ExampleUnitTest.java │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── baidu │ │ │ │ └── paddledetection │ │ │ │ └── detection │ │ │ │ └── ExampleInstrumentedTest.java │ │ ├── local.properties │ │ └── proguard-rules.pro │ ├── local.properties │ ├── build.gradle │ ├── paddledetection_demo.iml │ └── gradle.properties ├── README.md └── cpp │ └── cmake │ └── yaml-cpp.cmake ├── requirements.txt ├── slim ├── nas │ └── search_space │ │ └── __init__.py ├── quantization │ └── images │ │ ├── FreezePass.png │ │ ├── TransformPass.png │ │ ├── ConvertToInt8Pass.png │ │ └── TransformForMobilePass.png └── sensitive │ └── images │ └── mobilev1_yolov3_voc_sensitives.png ├── demo ├── orange_71.jpg ├── road554.png ├── 000000014439.jpg ├── 000000087038.jpg ├── 000000570688.jpg ├── 000000014439_640x640.jpg └── infer_cfg.yml ├── ppdet ├── __pycache__ │ ├── __init__.cpython-37.pyc │ └── optimizer.cpython-37.pyc ├── utils │ ├── __pycache__ │ │ ├── cli.cpython-37.pyc │ │ ├── check.cpython-37.pyc │ │ ├── stats.cpython-37.pyc │ │ ├── __init__.cpython-37.pyc │ │ ├── coco_eval.cpython-37.pyc │ │ ├── download.cpython-37.pyc │ │ ├── map_utils.cpython-37.pyc │ │ ├── voc_eval.cpython-37.pyc │ │ ├── voc_utils.cpython-37.pyc │ │ ├── bbox_utils.cpython-37.pyc │ │ ├── checkpoint.cpython-37.pyc │ │ ├── dist_utils.cpython-37.pyc │ │ ├── eval_utils.cpython-37.pyc │ │ └── post_process.cpython-37.pyc │ └── __init__.py ├── data │ ├── __pycache__ │ │ ├── reader.cpython-37.pyc │ │ ├── __init__.cpython-37.pyc │ │ └── parallel_map.cpython-37.pyc │ ├── source │ │ ├── __pycache__ │ │ │ ├── voc.cpython-37.pyc │ │ │ ├── coco.cpython-37.pyc │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── dataset.cpython-37.pyc │ │ │ └── widerface.cpython-37.pyc │ │ └── __init__.py │ ├── shared_queue │ │ ├── __pycache__ │ │ │ ├── queue.cpython-37.pyc │ │ │ ├── __init__.cpython-37.pyc │ │ │ └── sharedmemory.cpython-37.pyc │ │ └── __init__.py │ ├── transform │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── op_helper.cpython-37.pyc │ │ │ ├── operators.cpython-37.pyc │ │ │ └── batch_operators.cpython-37.pyc │ │ └── __init__.py │ └── __init__.py ├── modeling │ ├── __pycache__ │ │ ├── ops.cpython-37.pyc │ │ ├── __init__.cpython-37.pyc │ │ └── target_assigners.cpython-37.pyc │ ├── backbones │ │ └── __pycache__ │ │ │ ├── bfp.cpython-37.pyc │ │ │ ├── fpn.cpython-37.pyc │ │ │ ├── vgg.cpython-37.pyc │ │ │ ├── acfpn.cpython-37.pyc │ │ │ ├── bifpn.cpython-37.pyc │ │ │ ├── hrfpn.cpython-37.pyc │ │ │ ├── hrnet.cpython-37.pyc │ │ │ ├── resnet.cpython-37.pyc │ │ │ ├── senet.cpython-37.pyc │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── blazenet.cpython-37.pyc │ │ │ ├── darknet.cpython-37.pyc │ │ │ ├── gc_block.cpython-37.pyc │ │ │ ├── ghostnet.cpython-37.pyc │ │ │ ├── res2net.cpython-37.pyc │ │ │ ├── resnext.cpython-37.pyc │ │ │ ├── cb_resnet.cpython-37.pyc │ │ │ ├── cspdarknet.cpython-37.pyc │ │ │ ├── faceboxnet.cpython-37.pyc │ │ │ ├── hourglass.cpython-37.pyc │ │ │ ├── mobilenet.cpython-37.pyc │ │ │ ├── efficientnet.cpython-37.pyc │ │ │ ├── mobilenet_v3.cpython-37.pyc │ │ │ ├── name_adapter.cpython-37.pyc │ │ │ └── nonlocal_helper.cpython-37.pyc │ ├── losses │ │ └── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── diou_loss.cpython-37.pyc │ │ │ ├── fcos_loss.cpython-37.pyc │ │ │ ├── giou_loss.cpython-37.pyc │ │ │ ├── iou_loss.cpython-37.pyc │ │ │ ├── yolo_loss.cpython-37.pyc │ │ │ ├── solov2_loss.cpython-37.pyc │ │ │ ├── diou_loss_yolo.cpython-37.pyc │ │ │ ├── iou_aware_loss.cpython-37.pyc │ │ │ ├── smooth_l1_loss.cpython-37.pyc │ │ │ ├── balanced_l1_loss.cpython-37.pyc │ │ │ └── ssd_with_lmk_loss.cpython-37.pyc │ ├── architectures │ │ └── __pycache__ │ │ │ ├── fcos.cpython-37.pyc │ │ │ ├── htc.cpython-37.pyc │ │ │ ├── ssd.cpython-37.pyc │ │ │ ├── yolo.cpython-37.pyc │ │ │ ├── solov2.cpython-37.pyc │ │ │ ├── ttfnet.cpython-37.pyc │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── blazeface.cpython-37.pyc │ │ │ ├── faceboxes.cpython-37.pyc │ │ │ ├── mask_rcnn.cpython-37.pyc │ │ │ ├── retinanet.cpython-37.pyc │ │ │ ├── cascade_rcnn.cpython-37.pyc │ │ │ ├── efficientdet.cpython-37.pyc │ │ │ ├── faster_rcnn.cpython-37.pyc │ │ │ ├── input_helper.cpython-37.pyc │ │ │ ├── cascade_mask_rcnn.cpython-37.pyc │ │ │ ├── cornernet_squeeze.cpython-37.pyc │ │ │ └── cascade_rcnn_cls_aware.cpython-37.pyc │ ├── mask_head │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ └── solo_mask_head.cpython-37.pyc │ │ └── __init__.py │ ├── roi_heads │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── bbox_head.cpython-37.pyc │ │ │ ├── mask_head.cpython-37.pyc │ │ │ ├── cascade_head.cpython-37.pyc │ │ │ ├── htc_bbox_head.cpython-37.pyc │ │ │ ├── htc_mask_head.cpython-37.pyc │ │ │ └── htc_semantic_head.cpython-37.pyc │ │ └── __init__.py │ ├── anchor_heads │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── rpn_head.cpython-37.pyc │ │ │ ├── ttf_head.cpython-37.pyc │ │ │ ├── fcos_head.cpython-37.pyc │ │ │ ├── iou_aware.cpython-37.pyc │ │ │ ├── yolo_head.cpython-37.pyc │ │ │ ├── corner_head.cpython-37.pyc │ │ │ ├── retina_head.cpython-37.pyc │ │ │ ├── solov2_head.cpython-37.pyc │ │ │ └── efficient_head.cpython-37.pyc │ │ └── __init__.py │ ├── roi_extractors │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ └── roi_extractor.cpython-37.pyc │ │ └── __init__.py │ ├── tests │ │ ├── __init__.py │ │ └── decorator_helper.py │ └── __init__.py ├── core │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── workspace.cpython-37.pyc │ ├── config │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-37.pyc │ │ │ ├── schema.cpython-37.pyc │ │ │ └── yaml_helpers.cpython-37.pyc │ │ └── __init__.py │ └── __init__.py ├── experimental │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── mixed_precision.cpython-37.pyc │ └── __init__.py ├── __init__.py └── ext_op │ ├── __init__.py │ └── src │ └── make.sh ├── configs ├── face_detection │ └── README.md ├── gridmask │ └── README.md ├── acfpn │ └── README.md ├── random_erasing │ └── README.md └── htc │ └── README.md └── tools └── __init__.py /dataset/voc/label_list.txt: -------------------------------------------------------------------------------- 1 | person 2 | -------------------------------------------------------------------------------- /dygraph/ppdet/model_zoo/.gitignore: -------------------------------------------------------------------------------- 1 | MODEL_ZOO 2 | -------------------------------------------------------------------------------- /deploy/android_demo/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /dataset/fruit/label_list.txt: -------------------------------------------------------------------------------- 1 | apple 2 | banana 3 | orange 4 | -------------------------------------------------------------------------------- /dygraph/ppdet/py_op/__init__.py: -------------------------------------------------------------------------------- 1 | from .post_process import * 2 | -------------------------------------------------------------------------------- /dygraph/.style.yapf: -------------------------------------------------------------------------------- 1 | [style] 2 | based_on_style = pep8 3 | column_limit = 80 4 | -------------------------------------------------------------------------------- /dygraph/dataset/roadsign_voc/label_list.txt: -------------------------------------------------------------------------------- 1 | speedlimit 2 | crosswalk 3 | trafficlight 4 | stop -------------------------------------------------------------------------------- /dygraph/configs/runtime.yml: -------------------------------------------------------------------------------- 1 | use_gpu: true 2 | log_iter: 20 3 | save_dir: output 4 | snapshot_epoch: 1 5 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/proposal_generator/__init__.py: -------------------------------------------------------------------------------- 1 | from . import rpn_head 2 | from .rpn_head import * 3 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | tqdm 2 | typeguard ; python_version >= '3.4' 3 | visualdl>=2.0.0b 4 | opencv-python 5 | PyYAML 6 | shapely 7 | -------------------------------------------------------------------------------- /slim/nas/search_space/__init__.py: -------------------------------------------------------------------------------- 1 | from .blazefacespace_nas import BlazeFaceNasSpace 2 | 3 | __all__ = ['BlazeFaceNasSpace'] 4 | -------------------------------------------------------------------------------- /demo/orange_71.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/orange_71.jpg -------------------------------------------------------------------------------- /demo/road554.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/road554.png -------------------------------------------------------------------------------- /demo/000000014439.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/000000014439.jpg -------------------------------------------------------------------------------- /demo/000000087038.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/000000087038.jpg -------------------------------------------------------------------------------- /demo/000000570688.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/000000570688.jpg -------------------------------------------------------------------------------- /dygraph/demo/road554.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/road554.png -------------------------------------------------------------------------------- /dygraph/requirements.txt: -------------------------------------------------------------------------------- 1 | tqdm 2 | typeguard ; python_version >= '3.4' 3 | visualdl>=2.0.0b 4 | opencv-python 5 | PyYAML 6 | shapely 7 | scipy 8 | -------------------------------------------------------------------------------- /dygraph/demo/orange_71.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/orange_71.jpg -------------------------------------------------------------------------------- /demo/000000014439_640x640.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/demo/000000014439_640x640.jpg -------------------------------------------------------------------------------- /dygraph/demo/000000014439.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/000000014439.jpg -------------------------------------------------------------------------------- /dygraph/demo/000000087038.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/000000087038.jpg -------------------------------------------------------------------------------- /dygraph/demo/000000570688.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/000000570688.jpg -------------------------------------------------------------------------------- /dygraph/docs/images/road554.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/docs/images/road554.png -------------------------------------------------------------------------------- /deploy/android_demo/demo/ppdet_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/demo/ppdet_app.png -------------------------------------------------------------------------------- /dygraph/configs/vehicle/demo/001.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/vehicle/demo/001.jpeg -------------------------------------------------------------------------------- /dygraph/configs/vehicle/demo/003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/vehicle/demo/003.png -------------------------------------------------------------------------------- /dygraph/configs/vehicle/demo/004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/vehicle/demo/004.png -------------------------------------------------------------------------------- /dygraph/configs/vehicle/demo/005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/vehicle/demo/005.png -------------------------------------------------------------------------------- /dygraph/demo/000000014439_640x640.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/demo/000000014439_640x640.jpg -------------------------------------------------------------------------------- /dygraph/docs/images/000000014439.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/docs/images/000000014439.jpg -------------------------------------------------------------------------------- /dygraph/configs/pedestrian/demo/001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/pedestrian/demo/001.png -------------------------------------------------------------------------------- /dygraph/configs/pedestrian/demo/002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/pedestrian/demo/002.png -------------------------------------------------------------------------------- /dygraph/configs/pedestrian/demo/003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/pedestrian/demo/003.png -------------------------------------------------------------------------------- /dygraph/configs/pedestrian/demo/004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/dygraph/configs/pedestrian/demo/004.png -------------------------------------------------------------------------------- /slim/quantization/images/FreezePass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/slim/quantization/images/FreezePass.png -------------------------------------------------------------------------------- /deploy/android_demo/demo/ppdet_app_home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/demo/ppdet_app_home.jpg -------------------------------------------------------------------------------- /ppdet/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/__pycache__/optimizer.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/__pycache__/optimizer.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/cli.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/cli.cpython-37.pyc -------------------------------------------------------------------------------- /slim/quantization/images/TransformPass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/slim/quantization/images/TransformPass.png -------------------------------------------------------------------------------- /deploy/android_demo/demo/ppdet_app_camera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/demo/ppdet_app_camera.jpg -------------------------------------------------------------------------------- /deploy/android_demo/demo/ppdet_app_photo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/demo/ppdet_app_photo.jpg -------------------------------------------------------------------------------- /ppdet/data/__pycache__/reader.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/__pycache__/reader.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/__pycache__/ops.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/__pycache__/ops.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/check.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/check.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/stats.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/stats.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/core/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/core/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/core/__pycache__/workspace.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/core/__pycache__/workspace.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/source/__pycache__/voc.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/source/__pycache__/voc.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/coco_eval.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/coco_eval.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/download.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/download.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/map_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/map_utils.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/voc_eval.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/voc_eval.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/voc_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/voc_utils.cpython-37.pyc -------------------------------------------------------------------------------- /slim/quantization/images/ConvertToInt8Pass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/slim/quantization/images/ConvertToInt8Pass.png -------------------------------------------------------------------------------- /ppdet/data/__pycache__/parallel_map.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/__pycache__/parallel_map.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/source/__pycache__/coco.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/source/__pycache__/coco.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/bbox_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/bbox_utils.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/checkpoint.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/checkpoint.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/dist_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/dist_utils.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/eval_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/eval_utils.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /ppdet/core/config/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/core/config/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/core/config/__pycache__/schema.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/core/config/__pycache__/schema.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/source/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/source/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/source/__pycache__/dataset.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/source/__pycache__/dataset.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/utils/__pycache__/post_process.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/utils/__pycache__/post_process.cpython-37.pyc -------------------------------------------------------------------------------- /slim/quantization/images/TransformForMobilePass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/slim/quantization/images/TransformForMobilePass.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/assets/images/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/assets/images/home.jpg -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/assets/images/kite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/assets/images/kite.jpg -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable/photo.png -------------------------------------------------------------------------------- /ppdet/data/source/__pycache__/widerface.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/source/__pycache__/widerface.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/experimental/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/experimental/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/bfp.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/bfp.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/fpn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/fpn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/vgg.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/vgg.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable/camera.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/photo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable/photo1.png -------------------------------------------------------------------------------- /ppdet/core/config/__pycache__/yaml_helpers.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/core/config/__pycache__/yaml_helpers.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/shared_queue/__pycache__/queue.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/shared_queue/__pycache__/queue.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/transform/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/transform/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/transform/__pycache__/op_helper.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/transform/__pycache__/op_helper.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/transform/__pycache__/operators.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/transform/__pycache__/operators.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/__pycache__/target_assigners.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/__pycache__/target_assigners.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/acfpn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/acfpn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/bifpn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/bifpn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/hrfpn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/hrfpn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/hrnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/hrnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/resnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/resnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/senet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/senet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/diou_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/diou_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/fcos_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/fcos_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/giou_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/giou_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/iou_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/iou_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/yolo_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/yolo_loss.cpython-37.pyc -------------------------------------------------------------------------------- /slim/sensitive/images/mobilev1_yolov3_voc_sensitives.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/slim/sensitive/images/mobilev1_yolov3_voc_sensitives.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-v24/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-v24/camera.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-v24/photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-v24/photo.png -------------------------------------------------------------------------------- /ppdet/data/shared_queue/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/shared_queue/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/fcos.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/fcos.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/htc.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/htc.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/ssd.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/ssd.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/yolo.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/yolo.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/blazenet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/blazenet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/darknet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/darknet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/gc_block.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/gc_block.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/ghostnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/ghostnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/res2net.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/res2net.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/resnext.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/resnext.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/solov2_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/solov2_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/mask_head/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/mask_head/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/shared_queue/__pycache__/sharedmemory.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/shared_queue/__pycache__/sharedmemory.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/data/transform/__pycache__/batch_operators.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/data/transform/__pycache__/batch_operators.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/experimental/__pycache__/mixed_precision.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/experimental/__pycache__/mixed_precision.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/rpn_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/rpn_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/ttf_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/ttf_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/solov2.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/solov2.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/ttfnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/ttfnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/cb_resnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/cb_resnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/cspdarknet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/cspdarknet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/faceboxnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/faceboxnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/hourglass.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/hourglass.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/mobilenet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/mobilenet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/diou_loss_yolo.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/diou_loss_yolo.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/iou_aware_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/iou_aware_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/smooth_l1_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/smooth_l1_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/bbox_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/bbox_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/mask_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/mask_head.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/photo.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/fcos_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/fcos_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/iou_aware.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/iou_aware.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/yolo_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/yolo_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/blazeface.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/blazeface.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/faceboxes.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/faceboxes.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/mask_rcnn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/mask_rcnn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/retinanet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/retinanet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/efficientnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/efficientnet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/mobilenet_v3.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/mobilenet_v3.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/name_adapter.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/name_adapter.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/balanced_l1_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/balanced_l1_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_extractors/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_extractors/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/cascade_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/cascade_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/htc_bbox_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/htc_bbox_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/htc_mask_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/htc_mask_head.cpython-37.pyc -------------------------------------------------------------------------------- /configs/face_detection/README.md: -------------------------------------------------------------------------------- 1 | **文档教程请参考:** [FACE_DETECTION.md](../../docs/featured_model/FACE_DETECTION.md)
2 | **English document please refer:** [FACE_DETECTION_en.md](../../docs/featured_model/FACE_DETECTION_en.md) 3 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/camera.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/corner_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/corner_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/retina_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/retina_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/solov2_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/solov2_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/cascade_rcnn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/cascade_rcnn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/efficientdet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/efficientdet.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/faster_rcnn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/faster_rcnn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/input_helper.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/input_helper.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/backbones/__pycache__/nonlocal_helper.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/backbones/__pycache__/nonlocal_helper.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/losses/__pycache__/ssd_with_lmk_loss.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/losses/__pycache__/ssd_with_lmk_loss.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/mask_head/__pycache__/solo_mask_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/mask_head/__pycache__/solo_mask_head.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ppdet/modeling/anchor_heads/__pycache__/efficient_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/anchor_heads/__pycache__/efficient_head.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_extractors/__pycache__/roi_extractor.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_extractors/__pycache__/roi_extractor.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/roi_heads/__pycache__/htc_semantic_head.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/roi_heads/__pycache__/htc_semantic_head.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/cascade_mask_rcnn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/cascade_mask_rcnn.cpython-37.pyc -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/cornernet_squeeze.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/cornernet_squeeze.cpython-37.pyc -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/btn_switch_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/btn_switch_default.png -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/btn_switch_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/deploy/android_demo/app/src/main/res/drawable-xxhdpi-v4/btn_switch_pressed.png -------------------------------------------------------------------------------- /ppdet/modeling/architectures/__pycache__/cascade_rcnn_cls_aware.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sharpiless/PaddleDetection-Pedestrians-Detection-and-Tracking/HEAD/ppdet/modeling/architectures/__pycache__/cascade_rcnn_cls_aware.cpython-37.pyc -------------------------------------------------------------------------------- /dygraph/dataset/voc/label_list.txt: -------------------------------------------------------------------------------- 1 | aeroplane 2 | bicycle 3 | bird 4 | boat 5 | bottle 6 | bus 7 | car 8 | cat 9 | chair 10 | cow 11 | diningtable 12 | dog 13 | horse 14 | motorbike 15 | person 16 | pottedplant 17 | sheep 18 | sofa 19 | train 20 | tvmonitor 21 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/ssd_vgg16_300_240e_voc.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/voc.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_240e.yml', 5 | '_base_/ssd_vgg16_300.yml', 6 | '_base_/ssd_reader.yml', 7 | ] 8 | weights: output/ssd_vgg16_300_240e_voc/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_instance.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/mask_rcnn_r50.yml', 6 | '_base_/mask_reader.yml', 7 | ] 8 | weights: output/mask_rcnn_r50_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/solov2/solov2_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_instance.yml', 3 | '../runtime.yml', 4 | '_base_/solov2_r50_fpn.yml', 5 | '_base_/optimizer_1x.yml', 6 | '_base_/solov2_reader.yml', 7 | ] 8 | weights: output/solov2_r50_fpn_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/faster_rcnn_r50.yml', 6 | '_base_/faster_reader.yml', 7 | ] 8 | weights: output/faster_rcnn_r50_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/fcos/fcos_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/fcos_r50_fpn.yml', 5 | '_base_/optimizer_1x.yml', 6 | '_base_/fcos_reader.yml', 7 | ] 8 | 9 | weights: output/fcos_r50_fpn_1x_coco/model_final 10 | -------------------------------------------------------------------------------- /dygraph/configs/ttfnet/ttfnet_darknet53_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/ttfnet_darknet53.yml', 6 | '_base_/ttfnet_reader.yml', 7 | ] 8 | weights: output/ttfnet_darknet53_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_instance.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/mask_rcnn_r50_fpn.yml', 6 | '_base_/mask_fpn_reader.yml', 7 | ] 8 | weights: output/mask_rcnn_r50_fpn_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/ssd_mobilenet_v1_300_120e_voc.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/voc.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_120e.yml', 5 | '_base_/ssd_mobilenet_v1_300.yml', 6 | '_base_/ssd_mobilenet_reader.yml', 7 | ] 8 | weights: output/ssd_mobilenet_v1_300_120e_voc/model_final 9 | -------------------------------------------------------------------------------- /deploy/android_demo/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Sep 16 11:35:24 CST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/faster_rcnn_r50_fpn.yml', 6 | '_base_/faster_fpn_reader.yml', 7 | ] 8 | weights: output/faster_rcnn_r50_fpn_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/ssdlite_mobilenet_v1_300_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1700e.yml', 5 | '_base_/ssdlite_mobilenet_v1_300.yml', 6 | '_base_/ssdlite300_reader.yml', 7 | ] 8 | weights: output/ssdlite_mobilenet_v1_300_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/cascade_rcnn/cascade_rcnn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/cascade_rcnn_r50_fpn.yml', 6 | '_base_/cascade_fpn_reader.yml', 7 | ] 8 | weights: output/cascade_rcnn_r50_fpn_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/cascade_rcnn/cascade_mask_rcnn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_instance.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1x.yml', 5 | '_base_/cascade_mask_rcnn_r50_fpn.yml', 6 | '_base_/cascade_mask_fpn_reader.yml', 7 | ] 8 | weights: output/cascade_mask_rcnn_r50_fpn_1x_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/ssdlite_mobilenet_v3_large_320_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1700e.yml', 5 | '_base_/ssdlite_mobilenet_v3_large_320.yml', 6 | '_base_/ssdlite320_reader.yml', 7 | ] 8 | weights: output/ssdlite_mobilenet_v3_large_320_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/ssdlite_mobilenet_v3_small_320_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_1700e.yml', 5 | '_base_/ssdlite_mobilenet_v3_small_320.yml', 6 | '_base_/ssdlite320_reader.yml', 7 | ] 8 | weights: output/ssdlite_mobilenet_v3_small_320_coco/model_final 9 | -------------------------------------------------------------------------------- /dygraph/configs/ppyolo/ppyolo_r50vd_dcn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | './_base_/ppyolo_r50vd_dcn.yml', 5 | './_base_/optimizer_1x.yml', 6 | './_base_/ppyolo_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 16 10 | weights: output/ppyolo_r50vd_dcn_1x_coco/model_final 11 | -------------------------------------------------------------------------------- /dygraph/configs/ppyolo/ppyolo_r50vd_dcn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | './_base_/ppyolo_r50vd_dcn.yml', 5 | './_base_/optimizer_2x.yml', 6 | './_base_/ppyolo_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 16 10 | weights: output/ppyolo_r50vd_dcn_2x_coco/model_final 11 | -------------------------------------------------------------------------------- /dygraph/configs/yolov3/yolov3_darknet53_270e_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_270e.yml', 5 | '_base_/yolov3_darknet53.yml', 6 | '_base_/yolov3_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 5 10 | weights: output/yolov3_darknet53_270e_coco/model_final 11 | -------------------------------------------------------------------------------- /dygraph/configs/yolov3/yolov3_r50vd_dcn_270e_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_270e.yml', 5 | '_base_/yolov3_r50vd_dcn.yml', 6 | '_base_/yolov3_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 5 10 | weights: output/yolov3_r50vd_dcn_270e_coco/model_final 11 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/btn_shutter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/btn_switch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dygraph/configs/yolov3/yolov3_mobilenet_v1_270e_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_270e.yml', 5 | '_base_/yolov3_mobilenet_v1.yml', 6 | '_base_/yolov3_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 5 10 | weights: output/yolov3_mobilenet_v1_270e_coco/model_final 11 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/drawable/btn_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /dygraph/configs/yolov3/yolov3_mobilenet_v3_large_270e_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/optimizer_270e.yml', 5 | '_base_/yolov3_mobilenet_v3_large.yml', 6 | '_base_/yolov3_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 5 10 | weights: output/yolov3_mobilenet_v3_large_270e_coco/model_final 11 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/backbones/__init__.py: -------------------------------------------------------------------------------- 1 | from . import vgg 2 | from . import resnet 3 | from . import darknet 4 | from . import mobilenet_v1 5 | from . import mobilenet_v3 6 | from . import hrnet 7 | 8 | from .vgg import * 9 | from .resnet import * 10 | from .darknet import * 11 | from .mobilenet_v1 import * 12 | from .mobilenet_v3 import * 13 | from .hrnet import * 14 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_1x_coco.yml', 3 | ] 4 | weights: output/mask_rcnn_r50_2x_coco/model_final 5 | 6 | epoch: 24 7 | LearningRate: 8 | base_lr: 0.01 9 | schedulers: 10 | - !PiecewiseDecay 11 | gamma: 0.1 12 | milestones: [16, 22] 13 | - !LinearWarmup 14 | start_factor: 0.3333333333333333 15 | steps: 500 16 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | weights: output/faster_rcnn_r50_fpn_2x_coco/model_final 5 | 6 | epoch: 24 7 | LearningRate: 8 | base_lr: 0.01 9 | schedulers: 10 | - !PiecewiseDecay 11 | gamma: 0.1 12 | milestones: [16, 22] 13 | - !LinearWarmup 14 | start_factor: 0.1 15 | steps: 1000 16 | -------------------------------------------------------------------------------- /deploy/android_demo/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Wed Sep 16 11:35:13 CST 2020 8 | sdk.dir=/Users/path/to/Library/Android/sdk 9 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | weights: output/mask_rcnn_r50_fpn_2x_coco/model_final 5 | 6 | epoch: 24 7 | LearningRate: 8 | base_lr: 0.01 9 | schedulers: 10 | - !PiecewiseDecay 11 | gamma: 0.1 12 | milestones: [16, 22] 13 | - !LinearWarmup 14 | start_factor: 0.3333333333333333 15 | steps: 500 16 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/_base_/optimizer_1700e.yml: -------------------------------------------------------------------------------- 1 | epoch: 1700 2 | 3 | LearningRate: 4 | base_lr: 0.4 5 | schedulers: 6 | - !CosineDecay 7 | max_epochs: 1700 8 | - !LinearWarmup 9 | start_factor: 0.3333333333333333 10 | steps: 2000 11 | 12 | OptimizerBuilder: 13 | optimizer: 14 | momentum: 0.9 15 | type: Momentum 16 | regularizer: 17 | factor: 0.0005 18 | type: L2 19 | -------------------------------------------------------------------------------- /deploy/android_demo/app/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Wed Sep 16 11:31:42 CST 2020 8 | sdk.dir=/Users/yuguanghua02/Library/Android/sdk 9 | -------------------------------------------------------------------------------- /dygraph/configs/solov2/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0. 11 | steps: 1000 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0001 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/ttfnet/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.015 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0.2 11 | steps: 500 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0004 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0.1 11 | steps: 1000 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0001 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0.001 11 | steps: 1000 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0001 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/cascade_rcnn/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0.001 11 | steps: 1000 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0001 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r101_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar 6 | weights: output/faster_rcnn_r101_1x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 101 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [2] 14 | num_stages: 3 15 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r101_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar 5 | weights: output/mask_rcnn_r101_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | norm_type: bn 11 | freeze_at: 0 12 | return_idx: [0,1,2,3] 13 | num_stages: 4 14 | -------------------------------------------------------------------------------- /dygraph/configs/ppyolo/ppyolo_test.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | './_base_/ppyolo_r50vd_dcn.yml', 5 | './_base_/ppyolo_1x.yml', 6 | './_base_/ppyolo_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 16 10 | 11 | EvalDataset: 12 | !COCODataSet 13 | image_dir: test2017 14 | anno_path: annotations/image_info_test-dev2017.json 15 | dataset_dir: dataset/coco 16 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/_base_/optimizer_120e.yml: -------------------------------------------------------------------------------- 1 | epoch: 120 2 | 3 | LearningRate: 4 | base_lr: 0.001 5 | schedulers: 6 | - !PiecewiseDecay 7 | milestones: [40, 60, 80, 100] 8 | values: [0.001, 0.0005, 0.00025, 0.0001, 0.00001] 9 | use_warmup: false 10 | 11 | OptimizerBuilder: 12 | optimizer: 13 | momentum: 0.0 14 | type: RMSProp 15 | regularizer: 16 | factor: 0.00005 17 | type: L2 18 | -------------------------------------------------------------------------------- /dygraph/configs/fcos/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 12 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: [8, 11] 9 | - !LinearWarmup 10 | start_factor: 0.3333333333333333 11 | steps: 500 12 | 13 | OptimizerBuilder: 14 | optimizer: 15 | momentum: 0.9 16 | type: Momentum 17 | regularizer: 18 | factor: 0.0001 19 | type: L2 20 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r34_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet34_pretrained.tar 6 | weights: output/faster_rcnn_r34_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 34 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r101_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar 6 | weights: output/faster_rcnn_r101_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 101 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_vd_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/faster_rcnn_r50_vd_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [2] 14 | num_stages: 3 15 | -------------------------------------------------------------------------------- /dygraph/configs/ppyolo/_base_/optimizer_1x.yml: -------------------------------------------------------------------------------- 1 | epoch: 405 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: 9 | - 243 10 | - 324 11 | - !LinearWarmup 12 | start_factor: 0. 13 | steps: 4000 14 | 15 | OptimizerBuilder: 16 | optimizer: 17 | momentum: 0.9 18 | type: Momentum 19 | regularizer: 20 | factor: 0.0005 21 | type: L2 22 | -------------------------------------------------------------------------------- /dygraph/configs/ppyolo/_base_/optimizer_2x.yml: -------------------------------------------------------------------------------- 1 | epoch: 811 2 | 3 | LearningRate: 4 | base_lr: 0.01 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: 9 | - 649 10 | - 730 11 | - !LinearWarmup 12 | start_factor: 0. 13 | steps: 4000 14 | 15 | OptimizerBuilder: 16 | optimizer: 17 | momentum: 0.9 18 | type: Momentum 19 | regularizer: 20 | factor: 0.0005 21 | type: L2 22 | -------------------------------------------------------------------------------- /dygraph/configs/yolov3/_base_/optimizer_270e.yml: -------------------------------------------------------------------------------- 1 | epoch: 270 2 | 3 | LearningRate: 4 | base_lr: 0.001 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: 9 | - 216 10 | - 243 11 | - !LinearWarmup 12 | start_factor: 0. 13 | steps: 4000 14 | 15 | OptimizerBuilder: 16 | optimizer: 17 | momentum: 0.9 18 | type: Momentum 19 | regularizer: 20 | factor: 0.0005 21 | type: L2 22 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r101_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar 5 | weights: output/mask_rcnn_r101_vd_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 6 | weights: output/mask_rcnn_r50_vd_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 50 11 | variant: d 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | -------------------------------------------------------------------------------- /dygraph/configs/ssd/_base_/optimizer_240e.yml: -------------------------------------------------------------------------------- 1 | epoch: 240 2 | 3 | LearningRate: 4 | base_lr: 0.001 5 | schedulers: 6 | - !PiecewiseDecay 7 | gamma: 0.1 8 | milestones: 9 | - 160 10 | - 200 11 | - !LinearWarmup 12 | start_factor: 0.3333333333333333 13 | steps: 500 14 | 15 | OptimizerBuilder: 16 | optimizer: 17 | momentum: 0.9 18 | type: Momentum 19 | regularizer: 20 | factor: 0.0005 21 | type: L2 22 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r101_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar 5 | weights: output/faster_rcnn_r101_vd_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/faster_rcnn_r50_vd_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r34_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet34_vd_pretrained.tar 6 | weights: output/faster_rcnn_r34_vd_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 34 11 | variant: d 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/faster_rcnn_dcn_r50_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/faster_rcnn_dcn_r50_vd_fpn_2x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | dcn_v2_stages: [1,2,3] 16 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/mask_rcnn_dcn_r101_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar 5 | weights: output/mask_rcnn_dcn_r101_vd_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | dcn_v2_stages: [1,2,3] 16 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #6200EE 4 | #3700B3 5 | #1E90FF 6 | #FF000000 7 | #00000000 8 | #00000000 9 | #FFFFFFFF 10 | 11 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/faster_rcnn_dcn_r101_vd_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar 5 | weights: output/faster_rcnn_dcn_r101_vd_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | dcn_v2_stages: [1,2,3] 16 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/mask_rcnn_dcn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_instance.yml', 3 | '../runtime.yml', 4 | '../mask_rcnn/_base_/optimizer_1x.yml', 5 | '../mask_rcnn/_base_/mask_rcnn_r50_fpn.yml', 6 | '../mask_rcnn/_base_/mask_fpn_reader.yml', 7 | ] 8 | weights: output/mask_rcnn_dcn_r50_fpn_1x_coco/model_final 9 | 10 | ResNet: 11 | depth: 50 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | dcn_v2_stages: [1,2,3] 17 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/faster_rcnn_dcn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '../faster_rcnn/_base_/optimizer_1x.yml', 5 | '../faster_rcnn/_base_/faster_rcnn_r50_fpn.yml', 6 | '../faster_rcnn/_base_/faster_fpn_reader.yml', 7 | ] 8 | weights: output/faster_rcnn_dcn_r50_fpn_1x_coco/model_final 9 | 10 | ResNet: 11 | depth: 50 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | dcn_v2_stages: [1,2,3] 17 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/cascade_rcnn_dcn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '../cascade_rcnn/_base_/optimizer_1x.yml', 5 | '../cascade_rcnn/_base_/cascade_rcnn_r50_fpn.yml', 6 | '../cascade_rcnn/_base_/cascade_fpn_reader.yml', 7 | ] 8 | weights: output/cascade_rcnn_dcn_r50_fpn_1x_coco/model_final 9 | 10 | ResNet: 11 | depth: 50 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | dcn_v2_stages: [1,2,3] 17 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/cascade_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'cascade_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 5 | weights: output/cascade_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | depth: 101 9 | groups: 64 10 | base_width: 4 11 | base_channels: 64 12 | variant: d 13 | norm_type: bn 14 | freeze_at: 0 15 | return_idx: [0,1,2,3] 16 | num_stages: 4 17 | dcn_v2_stages: [1,2,3] 18 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/test/java/com/baidu/paddledetection/detection/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.baidu.paddledetection.detection; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /dygraph/configs/datasets/coco_detection.yml: -------------------------------------------------------------------------------- 1 | metric: COCO 2 | num_classes: 80 3 | 4 | TrainDataset: 5 | !COCODataSet 6 | image_dir: train2017 7 | anno_path: annotations/instances_train2017.json 8 | dataset_dir: dataset/coco 9 | data_fields: ['image', 'gt_bbox', 'gt_class', 'is_crowd'] 10 | 11 | EvalDataset: 12 | !COCODataSet 13 | image_dir: val2017 14 | anno_path: annotations/instances_val2017.json 15 | dataset_dir: dataset/coco 16 | 17 | TestDataset: 18 | !ImageFolder 19 | anno_path: annotations/instances_val2017.json 20 | -------------------------------------------------------------------------------- /dygraph/configs/datasets/coco_instance.yml: -------------------------------------------------------------------------------- 1 | metric: COCO 2 | num_classes: 80 3 | 4 | TrainDataset: 5 | !COCODataSet 6 | image_dir: train2017 7 | anno_path: annotations/instances_train2017.json 8 | dataset_dir: dataset/coco 9 | data_fields: ['image', 'gt_bbox', 'gt_class', 'gt_poly', 'is_crowd'] 10 | 11 | EvalDataset: 12 | !COCODataSet 13 | image_dir: val2017 14 | anno_path: annotations/instances_val2017.json 15 | dataset_dir: dataset/coco 16 | 17 | TestDataset: 18 | !ImageFolder 19 | anno_path: annotations/instances_val2017.json 20 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_x101_vd_64x4d_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 6 | weights: output/faster_rcnn_x101_vd_64x4d_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # for ResNeXt: groups, base_width, base_channels 10 | depth: 101 11 | groups: 64 12 | base_width: 4 13 | base_channels: 64 14 | variant: d 15 | norm_type: bn 16 | freeze_at: 0 17 | return_idx: [0,1,2,3] 18 | num_stages: 4 19 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/mask_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 5 | weights: output/mask_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # for ResNeXt: groups, base_width, base_channels 9 | depth: 101 10 | variant: d 11 | groups: 64 12 | base_width: 4 13 | base_channels: 64 14 | norm_type: bn 15 | freeze_at: 0 16 | return_idx: [0,1,2,3] 17 | num_stages: 4 18 | dcn_v2_stages: [1,2,3] 19 | -------------------------------------------------------------------------------- /dygraph/configs/datasets/voc.yml: -------------------------------------------------------------------------------- 1 | metric: VOC 2 | map_type: 11point 3 | num_classes: 20 4 | 5 | TrainDataset: 6 | !VOCDataSet 7 | dataset_dir: dataset/voc 8 | anno_path: trainval.txt 9 | label_list: label_list.txt 10 | data_fields: ['image', 'gt_bbox', 'gt_class', 'difficult'] 11 | 12 | EvalDataset: 13 | !VOCDataSet 14 | dataset_dir: dataset/voc 15 | anno_path: test.txt 16 | label_list: label_list.txt 17 | data_fields: ['image', 'gt_bbox', 'gt_class', 'difficult'] 18 | 19 | TestDataset: 20 | !ImageFolder 21 | anno_path: dataset/voc/label_list.txt 22 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/faster_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 5 | weights: output/faster_rcnn_dcn_x101_vd_64x4d_fpn_1x_coco/model_final 6 | 7 | ResNet: 8 | # for ResNeXt: groups, base_width, base_channels 9 | depth: 101 10 | groups: 64 11 | base_width: 4 12 | base_channels: 64 13 | variant: d 14 | norm_type: bn 15 | freeze_at: 0 16 | return_idx: [0,1,2,3] 17 | num_stages: 4 18 | dcn_v2_stages: [1,2,3] 19 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/__init__.py: -------------------------------------------------------------------------------- 1 | from . import ops 2 | from . import backbones 3 | from . import necks 4 | from . import proposal_generator 5 | from . import heads 6 | from . import losses 7 | from . import architectures 8 | from . import post_process 9 | from . import layers 10 | from . import utils 11 | 12 | from .ops import * 13 | from .backbones import * 14 | from .necks import * 15 | from .proposal_generator import * 16 | from .heads import * 17 | from .losses import * 18 | from .architectures import * 19 | from .post_process import * 20 | from .layers import * 21 | from .utils import * 22 | -------------------------------------------------------------------------------- /dygraph/configs/slim/quant/yolov3_mobilenet_v1_qat.yml: -------------------------------------------------------------------------------- 1 | # Weights of yolov3_mobilenet_v1_coco 2 | pretrain_weights: https://paddlemodels.bj.bcebos.com/object_detection/dygraph/yolov3_mobilenet_v1_270e_coco.pdparams 3 | load_static_weights: False 4 | weight_type: resume 5 | slim: QAT 6 | 7 | QAT: 8 | quant_config: { 9 | 'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max', 10 | 'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9, 11 | 'quantizable_layer_type': ['Conv2D', 'Linear']} 12 | print_model: True 13 | -------------------------------------------------------------------------------- /dygraph/configs/datasets/roadsign_voc.yml: -------------------------------------------------------------------------------- 1 | metric: VOC 2 | map_type: 11point 3 | num_classes: 4 4 | 5 | TrainDataset: 6 | !VOCDataSet 7 | dataset_dir: dataset/roadsign_voc 8 | anno_path: train.txt 9 | label_list: label_list.txt 10 | data_fields: ['image', 'gt_bbox', 'gt_class', 'difficult'] 11 | 12 | EvalDataset: 13 | !VOCDataSet 14 | dataset_dir: dataset/roadsign_voc 15 | anno_path: valid.txt 16 | label_list: label_list.txt 17 | data_fields: ['image', 'gt_bbox', 'gt_class', 'difficult'] 18 | 19 | TestDataset: 20 | !ImageFolder 21 | anno_path: dataset/roadsign_voc/label_list.txt 22 | -------------------------------------------------------------------------------- /dygraph/configs/hrnet/faster_rcnn_hrnetv2p_w18_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | './_base_/faster_rcnn_hrnetv2p_w18.yml', 4 | '../faster_rcnn/_base_/optimizer_1x.yml', 5 | '../faster_rcnn/_base_/faster_fpn_reader.yml', 6 | '../runtime.yml', 7 | ] 8 | 9 | weights: output/faster_rcnn_hrnetv2p_w18_1x_coco/model_final 10 | epoch: 12 11 | 12 | LearningRate: 13 | base_lr: 0.02 14 | schedulers: 15 | - !PiecewiseDecay 16 | gamma: 0.1 17 | milestones: [8, 11] 18 | - !LinearWarmup 19 | start_factor: 0.1 20 | steps: 1000 21 | 22 | TrainReader: 23 | batch_size: 2 24 | -------------------------------------------------------------------------------- /dygraph/configs/hrnet/faster_rcnn_hrnetv2p_w18_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | './_base_/faster_rcnn_hrnetv2p_w18.yml', 4 | '../faster_rcnn/_base_/optimizer_1x.yml', 5 | '../faster_rcnn/_base_/faster_fpn_reader.yml', 6 | '../runtime.yml', 7 | ] 8 | 9 | weights: output/faster_rcnn_hrnetv2p_w18_2x_coco/model_final 10 | epoch: 24 11 | 12 | LearningRate: 13 | base_lr: 0.02 14 | schedulers: 15 | - !PiecewiseDecay 16 | gamma: 0.1 17 | milestones: [16, 22] 18 | - !LinearWarmup 19 | start_factor: 0.1 20 | steps: 1000 21 | 22 | TrainReader: 23 | batch_size: 2 24 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r101_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar 6 | weights: output/faster_rcnn_r101_fpn_2x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 101 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | 16 | epoch: 24 17 | LearningRate: 18 | base_lr: 0.01 19 | schedulers: 20 | - !PiecewiseDecay 21 | gamma: 0.1 22 | milestones: [16, 22] 23 | - !LinearWarmup 24 | start_factor: 0.1 25 | steps: 1000 26 | -------------------------------------------------------------------------------- /dygraph/configs/slim/quant/yolov3_mobilenet_v3_qat.yml: -------------------------------------------------------------------------------- 1 | # Weights of yolov3_mobilenet_v3_coco 2 | pretrain_weights: https://paddlemodels.bj.bcebos.com/object_detection/dygraph/yolov3_mobilenet_v3_large_270e_coco.pdparams 3 | load_static_weights: False 4 | weight_type: resume 5 | slim: QAT 6 | 7 | QAT: 8 | quant_config: { 9 | 'weight_preprocess_type': 'PACT', 10 | 'weight_quantize_type': 'channel_wise_abs_max', 'activation_quantize_type': 'moving_average_abs_max', 11 | 'weight_bits': 8, 'activation_bits': 8, 'dtype': 'int8', 'window_size': 10000, 'moving_rate': 0.9, 12 | 'quantizable_layer_type': ['Conv2D', 'Linear']} 13 | print_model: True 14 | -------------------------------------------------------------------------------- /ppdet/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /tools/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r50_vd_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/faster_rcnn_r50_vd_fpn_2x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | 16 | epoch: 24 17 | LearningRate: 18 | base_lr: 0.01 19 | schedulers: 20 | - !PiecewiseDecay 21 | gamma: 0.1 22 | milestones: [16, 22] 23 | - !LinearWarmup 24 | start_factor: 0.1 25 | steps: 1000 26 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_r101_vd_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar 5 | weights: output/faster_rcnn_r101_vd_fpn_2x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 101 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | 16 | epoch: 24 17 | LearningRate: 18 | base_lr: 0.01 19 | schedulers: 20 | - !PiecewiseDecay 21 | gamma: 0.1 22 | milestones: [16, 22] 23 | - !LinearWarmup 24 | start_factor: 0.1 25 | steps: 1000 26 | -------------------------------------------------------------------------------- /ppdet/utils/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_r50_vd_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 6 | weights: output/mask_rcnn_r50_vd_fpn_2x_coco/model_final 7 | 8 | ResNet: 9 | # index 0 stands for res2 10 | depth: 50 11 | variant: d 12 | norm_type: bn 13 | freeze_at: 0 14 | return_idx: [0,1,2,3] 15 | num_stages: 4 16 | 17 | epoch: 24 18 | LearningRate: 19 | base_lr: 0.01 20 | schedulers: 21 | - !PiecewiseDecay 22 | gamma: 0.1 23 | milestones: [16, 22] 24 | - !LinearWarmup 25 | start_factor: 0.3333333333333333 26 | steps: 500 27 | -------------------------------------------------------------------------------- /dygraph/ppdet/utils/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /ppdet/core/config/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /dygraph/ppdet/core/config/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /ppdet/modeling/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/mask_rcnn_dcn_r50_vd_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/mask_rcnn_dcn_r50_vd_fpn_2x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | dcn_v2_stages: [1,2,3] 16 | 17 | epoch: 24 18 | LearningRate: 19 | base_lr: 0.01 20 | schedulers: 21 | - !PiecewiseDecay 22 | gamma: 0.1 23 | milestones: [16, 22] 24 | - !LinearWarmup 25 | start_factor: 0.1 26 | steps: 1000 27 | -------------------------------------------------------------------------------- /deploy/android_demo/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.0.1' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /dygraph/configs/dcn/faster_rcnn_dcn_r50_vd_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_dcn_r50_fpn_1x_coco.yml', 3 | ] 4 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_pretrained.tar 5 | weights: output/faster_rcnn_dcn_r50_vd_fpn_2x_coco/model_final 6 | 7 | ResNet: 8 | # index 0 stands for res2 9 | depth: 50 10 | variant: d 11 | norm_type: bn 12 | freeze_at: 0 13 | return_idx: [0,1,2,3] 14 | num_stages: 4 15 | dcn_v2_stages: [1,2,3] 16 | 17 | epoch: 24 18 | LearningRate: 19 | base_lr: 0.01 20 | schedulers: 21 | - !PiecewiseDecay 22 | gamma: 0.1 23 | milestones: [16, 22] 24 | - !LinearWarmup 25 | start_factor: 0.1 26 | steps: 1000 27 | -------------------------------------------------------------------------------- /dygraph/ppdet/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import config 16 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/utils/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import bbox_util 16 | 17 | from .bbox_util import * 18 | -------------------------------------------------------------------------------- /ppdet/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import ppdet.modeling 16 | import ppdet.optimizer 17 | import ppdet.data 18 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_x101_vd_64x4d_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 6 | weights: output/mask_rcnn_x101_vd_64x4d_fpn_1x_coco/model_final 7 | 8 | ResNet: 9 | # for ResNeXt: groups, base_width, base_channels 10 | depth: 101 11 | variant: d 12 | groups: 64 13 | base_width: 4 14 | base_channels: 64 15 | norm_type: bn 16 | freeze_at: 0 17 | return_idx: [0,1,2,3] 18 | num_stages: 4 19 | 20 | epoch: 12 21 | LearningRate: 22 | base_lr: 0.01 23 | schedulers: 24 | - !PiecewiseDecay 25 | gamma: 0.1 26 | milestones: [8, 11] 27 | - !LinearWarmup 28 | start_factor: 0.1 29 | steps: 1000 30 | -------------------------------------------------------------------------------- /dygraph/configs/mask_rcnn/mask_rcnn_x101_vd_64x4d_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'mask_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 6 | weights: output/mask_rcnn_x101_vd_64x4d_fpn_2x_coco/model_final 7 | 8 | ResNet: 9 | # for ResNeXt: groups, base_width, base_channels 10 | depth: 101 11 | variant: d 12 | groups: 64 13 | base_width: 4 14 | base_channels: 64 15 | norm_type: bn 16 | freeze_at: 0 17 | return_idx: [0,1,2,3] 18 | num_stages: 4 19 | 20 | epoch: 24 21 | LearningRate: 22 | base_lr: 0.01 23 | schedulers: 24 | - !PiecewiseDecay 25 | gamma: 0.1 26 | milestones: [16, 22] 27 | - !LinearWarmup 28 | start_factor: 0.1 29 | steps: 1000 30 | -------------------------------------------------------------------------------- /dygraph/configs/faster_rcnn/faster_rcnn_x101_vd_64x4d_fpn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | 'faster_rcnn_r50_fpn_1x_coco.yml', 3 | ] 4 | 5 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar 6 | weights: output/faster_rcnn_x101_vd_64x4d_fpn_2x_coco/model_final 7 | 8 | ResNet: 9 | # for ResNeXt: groups, base_width, base_channels 10 | depth: 101 11 | groups: 64 12 | base_width: 4 13 | base_channels: 64 14 | variant: d 15 | norm_type: bn 16 | freeze_at: 0 17 | return_idx: [0,1,2,3] 18 | num_stages: 4 19 | 20 | epoch: 24 21 | LearningRate: 22 | base_lr: 0.01 23 | schedulers: 24 | - !PiecewiseDecay 25 | gamma: 0.1 26 | milestones: [16, 22] 27 | - !LinearWarmup 28 | start_factor: 0.1 29 | steps: 1000 30 | -------------------------------------------------------------------------------- /dygraph/configs/fcos/fcos_dcn_r50_fpn_1x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '_base_/fcos_r50_fpn.yml', 5 | '_base_/optimizer_1x.yml', 6 | '_base_/fcos_reader.yml', 7 | ] 8 | 9 | weights: output/fcos_dcn_r50_fpn_1x_coco/model_final 10 | 11 | ResNet: 12 | depth: 50 13 | norm_type: bn 14 | freeze_at: 0 15 | return_idx: [1,2,3] 16 | num_stages: 4 17 | dcn_v2_stages: [1,2,3] 18 | 19 | FCOSHead: 20 | fcos_feat: 21 | name: FCOSFeat 22 | feat_in: 256 23 | feat_out: 256 24 | num_convs: 4 25 | norm_type: "gn" 26 | use_dcn: true 27 | num_classes: 80 28 | fpn_stride: [8, 16, 32, 64, 128] 29 | prior_prob: 0.01 30 | fcos_loss: FCOSLoss 31 | norm_reg_targets: true 32 | centerness_on_reg: true 33 | -------------------------------------------------------------------------------- /ppdet/ext_op/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. 2 | # 3 | #Licensed under the Apache License, Version 2.0 (the "License"); 4 | #you may not use this file except in compliance with the License. 5 | #You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | #Unless required by applicable law or agreed to in writing, software 10 | #distributed under the License is distributed on an "AS IS" BASIS, 11 | #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | #See the License for the specific language governing permissions and 13 | #limitations under the License. 14 | 15 | from . import cornerpool_lib 16 | from .cornerpool_lib import * 17 | 18 | __all__ = cornerpool_lib.__all__ 19 | -------------------------------------------------------------------------------- /dygraph/ppdet/slim/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import prune 16 | from . import quant 17 | 18 | from .prune import * 19 | from .quant import * 20 | -------------------------------------------------------------------------------- /dygraph/ppdet/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import (core, data, engine, modeling, model_zoo, optimizer, metrics, 16 | py_op, utils, slim) 17 | -------------------------------------------------------------------------------- /dygraph/configs/ttfnet/_base_/ttfnet_darknet53.yml: -------------------------------------------------------------------------------- 1 | architecture: TTFNet 2 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/DarkNet53_pretrained.tar 3 | load_static_weights: True 4 | 5 | TTFNet: 6 | backbone: DarkNet 7 | neck: TTFFPN 8 | ttf_head: TTFHead 9 | post_process: BBoxPostProcess 10 | 11 | DarkNet: 12 | depth: 53 13 | freeze_at: 0 14 | return_idx: [1, 2, 3, 4] 15 | norm_type: bn 16 | norm_decay: 0.0004 17 | 18 | # use default config 19 | # TTFFPN: 20 | 21 | TTFHead: 22 | hm_loss: 23 | name: CTFocalLoss 24 | loss_weight: 1. 25 | wh_loss: 26 | name: GIoULoss 27 | loss_weight: 5. 28 | reduction: sum 29 | 30 | BBoxPostProcess: 31 | decode: 32 | name: TTFBox 33 | max_per_img: 100 34 | score_thresh: 0.01 35 | down_ratio: 4 36 | -------------------------------------------------------------------------------- /ppdet/data/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from __future__ import absolute_import 16 | 17 | from .reader import * 18 | from .source import * 19 | from .transform import * 20 | -------------------------------------------------------------------------------- /ppdet/modeling/mask_head/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from __future__ import absolute_import 16 | 17 | from . import solo_mask_head 18 | 19 | from .solo_mask_head import * 20 | -------------------------------------------------------------------------------- /ppdet/modeling/roi_extractors/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from __future__ import absolute_import 16 | 17 | from . import roi_extractor 18 | from .roi_extractor import * 19 | -------------------------------------------------------------------------------- /dygraph/ppdet/model_zoo/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import model_zoo 16 | from .model_zoo import * 17 | 18 | __all__ = model_zoo.__all__ 19 | -------------------------------------------------------------------------------- /demo/infer_cfg.yml: -------------------------------------------------------------------------------- 1 | draw_threshold: 0.5 2 | use_python_inference: false 3 | mode: fluid 4 | metric: VOC 5 | arch: YOLO 6 | min_subgraph_size: 3 7 | with_background: false 8 | Preprocess: 9 | - interp: 2 10 | max_size: 0 11 | target_size: 608 12 | type: Resize 13 | use_cv2: true 14 | - is_channel_first: false 15 | is_scale: true 16 | mean: 17 | - 0.485 18 | - 0.456 19 | - 0.406 20 | std: 21 | - 0.229 22 | - 0.224 23 | - 0.225 24 | type: Normalize 25 | - channel_first: true 26 | to_bgr: false 27 | type: Permute 28 | label_list: 29 | - aeroplane 30 | - bicycle 31 | - bird 32 | - boat 33 | - bottle 34 | - bus 35 | - car 36 | - cat 37 | - chair 38 | - cow 39 | - diningtable 40 | - dog 41 | - horse 42 | - motorbike 43 | - person 44 | - pottedplant 45 | - sheep 46 | - sofa 47 | - train 48 | - tvmonitor 49 | -------------------------------------------------------------------------------- /dataset/wider_face/download.sh: -------------------------------------------------------------------------------- 1 | # All rights `PaddleDetection` reserved 2 | # References: 3 | # @inproceedings{yang2016wider, 4 | # Author = {Yang, Shuo and Luo, Ping and Loy, Chen Change and Tang, Xiaoou}, 5 | # Booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, 6 | # Title = {WIDER FACE: A Face Detection Benchmark}, 7 | # Year = {2016}} 8 | 9 | DIR="$( cd "$(dirname "$0")" ; pwd -P )" 10 | cd "$DIR" 11 | 12 | # Download the data. 13 | echo "Downloading..." 14 | wget https://dataset.bj.bcebos.com/wider_face/WIDER_train.zip 15 | wget https://dataset.bj.bcebos.com/wider_face/WIDER_val.zip 16 | wget https://dataset.bj.bcebos.com/wider_face/wider_face_split.zip 17 | # Extract the data. 18 | echo "Extracting..." 19 | unzip -q WIDER_train.zip 20 | unzip -q WIDER_val.zip 21 | unzip -q wider_face_split.zip 22 | -------------------------------------------------------------------------------- /ppdet/data/source/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import coco 16 | from . import voc 17 | from . import widerface 18 | 19 | from .coco import * 20 | from .voc import * 21 | from .widerface import * 22 | -------------------------------------------------------------------------------- /ppdet/experimental/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from __future__ import absolute_import 16 | 17 | from .mixed_precision import * 18 | from . import mixed_precision 19 | 20 | __all__ = mixed_precision.__all__ 21 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/architectures/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | from . import meta_arch 9 | from . import faster_rcnn 10 | from . import mask_rcnn 11 | from . import yolo 12 | from . import cascade_rcnn 13 | from . import ssd 14 | from . import fcos 15 | from . import solov2 16 | from . import ttfnet 17 | 18 | from .meta_arch import * 19 | from .faster_rcnn import * 20 | from .mask_rcnn import * 21 | from .yolo import * 22 | from .cascade_rcnn import * 23 | from .ssd import * 24 | from .fcos import * 25 | from .solov2 import * 26 | from .ttfnet import * 27 | -------------------------------------------------------------------------------- /deploy/android_demo/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /dygraph/ppdet/metrics/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import metrics 16 | from .metrics import * 17 | 18 | from . import category 19 | from .category import * 20 | 21 | __all__ = metrics.__all__ \ 22 | + category.__all__ 23 | -------------------------------------------------------------------------------- /ppdet/data/transform/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import operators 16 | from . import batch_operators 17 | 18 | from .operators import * 19 | from .batch_operators import * 20 | 21 | __all__ = [] 22 | __all__ += registered_ops 23 | -------------------------------------------------------------------------------- /dygraph/ppdet/data/transform/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import operators 16 | from . import batch_operators 17 | 18 | from .operators import * 19 | from .batch_operators import * 20 | 21 | __all__ = [] 22 | __all__ += registered_ops 23 | -------------------------------------------------------------------------------- /dygraph/ppdet/data/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import source 16 | from . import transform 17 | from . import reader 18 | 19 | from .source import * 20 | from .transform import * 21 | from .reader import * 22 | -------------------------------------------------------------------------------- /dygraph/ppdet/data/source/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import coco 16 | # TODO add voc and widerface dataset 17 | from . import voc 18 | #from . import widerface 19 | 20 | from .coco import * 21 | from .voc import * 22 | #from .widerface import * 23 | -------------------------------------------------------------------------------- /dygraph/configs/gn/cascade_rcnn_r50_fpn_gn_2x.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '../cascade_rcnn/_base_/optimizer_1x.yml', 5 | '../cascade_rcnn/_base_/cascade_rcnn_r50_fpn.yml', 6 | '../cascade_rcnn/_base_/cascade_fpn_reader.yml', 7 | ] 8 | weights: output/cascade_rcnn_r50_fpn_gn_2x/model_final 9 | 10 | FPN: 11 | out_channel: 256 12 | norm_type: gn 13 | 14 | CascadeHead: 15 | head: CascadeXConvNormHead 16 | roi_extractor: 17 | resolution: 7 18 | sampling_ratio: 0 19 | aligned: True 20 | bbox_assigner: BBoxAssigner 21 | 22 | CascadeXConvNormHead: 23 | num_convs: 4 24 | mlp_dim: 1024 25 | norm_type: gn 26 | 27 | 28 | epoch: 24 29 | LearningRate: 30 | base_lr: 0.01 31 | schedulers: 32 | - !PiecewiseDecay 33 | gamma: 0.1 34 | milestones: [16, 22] 35 | - !LinearWarmup 36 | start_factor: 0.1 37 | steps: 1000 38 | -------------------------------------------------------------------------------- /dygraph/configs/pedestrian/pedestrian_yolov3_darknet.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '../yolov3/_base_/optimizer_270e.yml', 5 | '../yolov3/_base_/yolov3_darknet53.yml', 6 | '../yolov3/_base_/yolov3_reader.yml', 7 | ] 8 | 9 | snapshot_epoch: 5 10 | weights: https://paddledet.bj.bcebos.com/models/pedestrian_yolov3_darknet.pdparams 11 | 12 | num_classes: 1 13 | 14 | TrainDataset: 15 | !COCODataSet 16 | dataset_dir: dataset/pedestrian 17 | anno_path: annotations/instances_train2017.json 18 | image_dir: train2017 19 | data_fields: ['image', 'gt_bbox', 'gt_class', 'is_crowd'] 20 | 21 | EvalDataset: 22 | !COCODataSet 23 | dataset_dir: dataset/pedestrian 24 | anno_path: annotations/instances_val2017.json 25 | image_dir: val2017 26 | 27 | TestDataset: 28 | !ImageFolder 29 | anno_path: configs/pedestrian/pedestrian.json 30 | -------------------------------------------------------------------------------- /dygraph/ppdet/modeling/necks/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import fpn 16 | from . import yolo_fpn 17 | from . import hrfpn 18 | from . import ttf_fpn 19 | 20 | from .fpn import * 21 | from .yolo_fpn import * 22 | from .hrfpn import * 23 | from .ttf_fpn import * 24 | -------------------------------------------------------------------------------- /dygraph/.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | - repo: https://github.com/PaddlePaddle/mirrors-yapf.git 2 | sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37 3 | hooks: 4 | - id: yapf 5 | files: \.py$ 6 | - repo: https://github.com/pre-commit/pre-commit-hooks 7 | sha: a11d9314b22d8f8c7556443875b731ef05965464 8 | hooks: 9 | - id: check-merge-conflict 10 | - id: check-symlinks 11 | - id: detect-private-key 12 | files: (?!.*paddle)^.*$ 13 | - id: end-of-file-fixer 14 | files: \.(md|yml)$ 15 | - id: trailing-whitespace 16 | files: \.(md|yml)$ 17 | - repo: https://github.com/Lucas-C/pre-commit-hooks 18 | sha: v1.0.1 19 | hooks: 20 | - id: forbid-crlf 21 | files: \.(md|yml)$ 22 | - id: remove-crlf 23 | files: \.(md|yml)$ 24 | - id: forbid-tabs 25 | files: \.(md|yml)$ 26 | - id: remove-tabs 27 | files: \.(md|yml)$ 28 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 26dp 4 | 36dp 5 | 34dp 6 | 60dp 7 | 16dp 8 | 67dp 9 | 67dp 10 | 56dp 11 | 56dp 12 | 46dp 13 | 46dp 14 | 32dp 15 | 24dp 16 | 16dp 17 | 16dp 18 | 19 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/androidTest/java/com/baidu/paddledetection/detection/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.baidu.paddledetection.detection; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.baidu.paddle.lite.demo", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /deploy/android_demo/paddledetection_demo.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /dygraph/configs/solov2/_base_/solov2_r50_fpn.yml: -------------------------------------------------------------------------------- 1 | architecture: SOLOv2 2 | pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_cos_pretrained.tar 3 | load_static_weights: True 4 | 5 | SOLOv2: 6 | backbone: ResNet 7 | neck: FPN 8 | solov2_head: SOLOv2Head 9 | mask_head: SOLOv2MaskHead 10 | 11 | ResNet: 12 | depth: 50 13 | norm_type: bn 14 | freeze_at: 0 15 | return_idx: [0,1,2,3] 16 | num_stages: 4 17 | 18 | FPN: 19 | out_channel: 256 20 | 21 | SOLOv2Head: 22 | seg_feat_channels: 512 23 | stacked_convs: 4 24 | num_grids: [40, 36, 24, 16, 12] 25 | kernel_out_channels: 256 26 | solov2_loss: SOLOv2Loss 27 | mask_nms: MaskMatrixNMS 28 | 29 | SOLOv2MaskHead: 30 | mid_channels: 128 31 | out_channels: 256 32 | start_level: 0 33 | end_level: 3 34 | 35 | SOLOv2Loss: 36 | ins_loss_weight: 3.0 37 | focal_loss_gamma: 2.0 38 | focal_loss_alpha: 0.25 39 | 40 | MaskMatrixNMS: 41 | pre_nms_top_n: 500 42 | post_nms_top_n: 100 43 | -------------------------------------------------------------------------------- /dygraph/ppdet/engine/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from . import trainer 16 | from .trainer import * 17 | 18 | from . import callbacks 19 | from .callbacks import * 20 | 21 | from . import env 22 | from .env import * 23 | 24 | __all__ = trainer.__all__ \ 25 | + callbacks.__all__ \ 26 | + env.__all__ 27 | -------------------------------------------------------------------------------- /ppdet/ext_op/src/make.sh: -------------------------------------------------------------------------------- 1 | include_dir=$( python -c 'import paddle; print(paddle.sysconfig.get_include())' ) 2 | lib_dir=$( python -c 'import paddle; print(paddle.sysconfig.get_lib())' ) 3 | 4 | echo $include_dir 5 | echo $lib_dir 6 | 7 | OPS='bottom_pool_op top_pool_op right_pool_op left_pool_op' 8 | for op in ${OPS} 9 | do 10 | nvcc ${op}.cu -c -o ${op}.cu.o -ccbin cc -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -DPADDLE_USE_DSO -DPADDLE_WITH_MKLDNN -Xcompiler -fPIC -std=c++11 -Xcompiler -fPIC -w --expt-relaxed-constexpr -O0 -g -DNVCC \ 11 | -I ${include_dir}/third_party/ \ 12 | -I ${include_dir} 13 | done 14 | 15 | g++ bottom_pool_op.cc bottom_pool_op.cu.o top_pool_op.cc top_pool_op.cu.o right_pool_op.cc right_pool_op.cu.o left_pool_op.cc left_pool_op.cu.o -o cornerpool_lib.so -DPADDLE_WITH_MKLDNN -shared -fPIC -std=c++11 -O0 -g \ 16 | -I ${include_dir}/third_party/ \ 17 | -I ${include_dir} \ 18 | -L ${lib_dir} \ 19 | -L /usr/local/cuda/lib64 -lpaddle_framework -lcudart 20 | 21 | rm *.cu.o 22 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 19 | 20 | -------------------------------------------------------------------------------- /deploy/README.md: -------------------------------------------------------------------------------- 1 | # PaddleDetection 预测部署 2 | 3 | `PaddleDetection`目前支持: 4 | - 使用`Python`和`C++`部署在`Windows` 和`Linux` 上运行 5 | - [在线服务化部署](./serving/README.md) 6 | - [移动端部署](https://github.com/PaddlePaddle/Paddle-Lite-Demo) 7 | 8 | ## 模型导出 9 | 训练得到一个满足要求的模型后,如果想要将该模型接入到C++服务器端预测库或移动端预测库,需要通过`tools/export_model.py`导出该模型。 10 | 11 | - [导出教程](https://github.com/PaddlePaddle/PaddleDetection/blob/master/docs/advanced_tutorials/deploy/EXPORT_MODEL.md) 12 | 13 | 模型导出后, 目录结构如下(以`yolov3_darknet`为例): 14 | ``` 15 | yolov3_darknet # 模型目录 16 | ├── infer_cfg.yml # 模型配置信息 17 | ├── __model__ # 模型文件 18 | └── __params__ # 参数文件 19 | ``` 20 | 21 | 预测时,该目录所在的路径会作为程序的输入参数。 22 | 23 | ## 预测部署 24 | - [1. Python预测(支持 Linux 和 Windows)](https://github.com/PaddlePaddle/PaddleDetection/blob/master/deploy/python) 25 | - [2. C++预测(支持 Linux 和 Windows)](https://github.com/PaddlePaddle/PaddleDetection/blob/master/deploy/cpp) 26 | - [3. 在线服务化部署](./serving/README.md) 27 | - [4. 移动端部署](https://github.com/PaddlePaddle/Paddle-Lite-Demo) 28 | - [5. Jetson设备部署](./cpp/docs/Jetson_build.md) 29 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/assets/labels/coco-labels-2014_2017.txt: -------------------------------------------------------------------------------- 1 | person 2 | bicycle 3 | car 4 | motorcycle 5 | airplane 6 | bus 7 | train 8 | truck 9 | boat 10 | traffic light 11 | fire hydrant 12 | stop sign 13 | parking meter 14 | bench 15 | bird 16 | cat 17 | dog 18 | horse 19 | sheep 20 | cow 21 | elephant 22 | bear 23 | zebra 24 | giraffe 25 | backpack 26 | umbrella 27 | handbag 28 | tie 29 | suitcase 30 | frisbee 31 | skis 32 | snowboard 33 | sports ball 34 | kite 35 | baseball bat 36 | baseball glove 37 | skateboard 38 | surfboard 39 | tennis racket 40 | bottle 41 | wine glass 42 | cup 43 | fork 44 | knife 45 | spoon 46 | bowl 47 | banana 48 | apple 49 | sandwich 50 | orange 51 | broccoli 52 | carrot 53 | hot dog 54 | pizza 55 | donut 56 | cake 57 | chair 58 | couch 59 | potted plant 60 | bed 61 | dining table 62 | toilet 63 | tv 64 | laptop 65 | mouse 66 | remote 67 | keyboard 68 | cell phone 69 | microwave 70 | oven 71 | toaster 72 | sink 73 | refrigerator 74 | book 75 | clock 76 | vase 77 | scissors 78 | teddy bear 79 | hair drier 80 | toothbrush -------------------------------------------------------------------------------- /dygraph/configs/ssd/_base_/ssd_vgg16_300.yml: -------------------------------------------------------------------------------- 1 | architecture: SSD 2 | pretrain_weights: https://paddlemodels.bj.bcebos.com/object_detection/dygraph/VGG16_caffe_pretrained.pdparams 3 | 4 | # Model Achitecture 5 | SSD: 6 | # model feat info flow 7 | backbone: VGG 8 | ssd_head: SSDHead 9 | # post process 10 | post_process: BBoxPostProcess 11 | 12 | VGG: 13 | depth: 16 14 | normalizations: [20., -1, -1, -1, -1, -1] 15 | 16 | SSDHead: 17 | anchor_generator: 18 | steps: [8, 16, 32, 64, 100, 300] 19 | aspect_ratios: [[2.], [2., 3.], [2., 3.], [2., 3.], [2.], [2.]] 20 | min_ratio: 20 21 | max_ratio: 90 22 | min_sizes: [30.0, 60.0, 111.0, 162.0, 213.0, 264.0] 23 | max_sizes: [60.0, 111.0, 162.0, 213.0, 264.0, 315.0] 24 | offset: 0.5 25 | flip: true 26 | min_max_aspect_ratios_order: true 27 | 28 | BBoxPostProcess: 29 | decode: 30 | name: SSDBox 31 | nms: 32 | name: MultiClassNMS 33 | keep_top_k: 200 34 | score_threshold: 0.01 35 | nms_threshold: 0.45 36 | nms_top_k: 400 37 | nms_eta: 1.0 38 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/assets/labels/coco-labels-background.txt: -------------------------------------------------------------------------------- 1 | background 2 | person 3 | bicycle 4 | car 5 | motorcycle 6 | airplane 7 | bus 8 | train 9 | truck 10 | boat 11 | traffic light 12 | fire hydrant 13 | stop sign 14 | parking meter 15 | bench 16 | bird 17 | cat 18 | dog 19 | horse 20 | sheep 21 | cow 22 | elephant 23 | bear 24 | zebra 25 | giraffe 26 | backpack 27 | umbrella 28 | handbag 29 | tie 30 | suitcase 31 | frisbee 32 | skis 33 | snowboard 34 | sports ball 35 | kite 36 | baseball bat 37 | baseball glove 38 | skateboard 39 | surfboard 40 | tennis racket 41 | bottle 42 | wine glass 43 | cup 44 | fork 45 | knife 46 | spoon 47 | bowl 48 | banana 49 | apple 50 | sandwich 51 | orange 52 | broccoli 53 | carrot 54 | hot dog 55 | pizza 56 | donut 57 | cake 58 | chair 59 | couch 60 | potted plant 61 | bed 62 | dining table 63 | toilet 64 | tv 65 | laptop 66 | mouse 67 | remote 68 | keyboard 69 | cell phone 70 | microwave 71 | oven 72 | toaster 73 | sink 74 | refrigerator 75 | book 76 | clock 77 | vase 78 | scissors 79 | teddy bear 80 | hair drier 81 | toothbrush -------------------------------------------------------------------------------- /dygraph/configs/gn/faster_rcnn_r50_fpn_gn_2x_coco.yml: -------------------------------------------------------------------------------- 1 | _BASE_: [ 2 | '../datasets/coco_detection.yml', 3 | '../runtime.yml', 4 | '../faster_rcnn/_base_/optimizer_1x.yml', 5 | '../faster_rcnn/_base_/faster_rcnn_r50_fpn.yml', 6 | '../faster_rcnn/_base_/faster_fpn_reader.yml', 7 | ] 8 | weights: output/faster_rcnn_r50_fpn_gn_2x_coco/model_final 9 | 10 | FasterRCNN: 11 | backbone: ResNet 12 | neck: FPN 13 | rpn_head: RPNHead 14 | bbox_head: BBoxHead 15 | # post process 16 | bbox_post_process: BBoxPostProcess 17 | 18 | FPN: 19 | out_channel: 256 20 | norm_type: gn 21 | 22 | BBoxHead: 23 | head: XConvNormHead 24 | roi_extractor: 25 | resolution: 7 26 | sampling_ratio: 0 27 | aligned: True 28 | bbox_assigner: BBoxAssigner 29 | 30 | XConvNormHead: 31 | num_convs: 4 32 | mlp_dim: 1024 33 | norm_type: gn 34 | 35 | 36 | epoch: 24 37 | LearningRate: 38 | base_lr: 0.01 39 | schedulers: 40 | - !PiecewiseDecay 41 | gamma: 0.1 42 | milestones: [16, 22] 43 | - !LinearWarmup 44 | start_factor: 0.1 45 | steps: 1000 46 | -------------------------------------------------------------------------------- /deploy/android_demo/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 15 | 16 | 20 | 21 |